Skip to main content
LLorr.1
Visitor II
March 31, 2022
Question

Reduce image size with Yocto

  • March 31, 2022
  • 2 replies
  • 1651 views

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?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 31, 2022

.

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

Hi @LLorr.1​ 

I would try the following change:

MACHINE_features_remove = "alsa"

Best regards,

--JM