cancel
Showing results for 
Search instead for 
Did you mean: 

Remove a package (eg:- ALSA package) which is not required to free up the memory in STM32MP135F-DK using yocto

Ezvan
Associate II

Hello, 

I'm trying to remove the packages which is not required to free up the memory.
I tried modifying the layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb file with the below code, But it couldn't help.

Here i tried to remove the alsa packag.

#To Disable the ALSA Package
IMAGE_INSTALL:remove = "\
alsa-conf \
alsa-plugins \
alsa-state \
alsa-state-script \
alsa-state-stm32mp1 \
alsa-states \
alsa-topology-conf \
alsa-ucm-conf \
alsa-utils \
alsa-utils-aconnect \
alsa-utils-alsabat \
alsa-utils-alsactl \
alsa-utils-alsaloop \
alsa-utils-alsamixer \
alsa-utils-alsatplg \
alsa-utils-alsaucm \
alsa-utils-amixer \
alsa-utils-aplay \
alsa-utils-aseqdump \
alsa-utils-aseqnet \
alsa-utils-iecset \
alsa-utils-midi \
alsa-utils-scripts \
alsa-utils-speakertest \
"

How can I remove the package.

 

Thanks and Regards,

Ezvan.

 

 

1 REPLY 1
mmichala
Associate II

Doing a grep:

 

grep -r alsa meta-st-stm32mp/

 

I can see that alsa is added to MACHINE_FEATURES in this file:
meta-st-stm32mp/conf/machine/include/st-machine-common-stm32mp.inc
in line:
MACHINE_FEATURES = "usbhost usbgadget alsa screen ext2 pci"

Maybe try removing it from here.

What is more, you shouldn't directly modify ST layer, the preffered way is to modify that MACHINE_FEATURES variable from your custom layer.

If that won't help, you can investigate it further using grep along with bitbake -e option, like that:

bitbake -e <your-image-name> | grep <what_to_search_for>