cancel
Showing results for 
Search instead for 
Did you mean: 

Reduce image size with Yocto

LLorr.1
Associate

Hello, I've got a board with an STM32 MP CPU and I have to reduce the size of the final image to leave enough space on the NAND memory for a dual rootfs setup. The idea is to remove the alsa layer because I don't need the audio part. I tried to add the following lines inside the local.conf on the build folder of the Yocto project:

DISTRO_FEATURES_remove += "alsa"

DISTRO_FEATURES_remove += "pulseaudio"

PACKAGECONFIG_remove += "alsa-lib \

alsa-state \

alsa-topology-conf \

alsa-ucm-conf \

alsa-utils \

"

but It doesn't work as expected and most of the alsa packages are still there.

How can I completely remove the alsa layer from the Yocto project?

2 REPLIES 2

.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Jean-Marc B
ST Employee

Hi @LLorr.1​ 

I would try the following change:

MACHINE_features_remove =  "alsa"

Best regards,

--JM