cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
150 Views
Registered: ‎12-21-2018

How to prevent GTK/X11/Wayland packages to be built (for image size reduction)

Hi guys,

I would like to optimize the rootFS size for my custom board. Is there an easy way to get the list of "atomic" packages using petalinux-config -c rootfs, and their corresponding dependencies ? When I build petalinux image, I can see that some graphical packages are built while not expected, and I would like to know where they come from.

Thanks !

0 Kudos
1 Reply
Highlighted
Contributor
Contributor
103 Views
Registered: ‎12-21-2018

For anybody whos wants to reduce the produced iamge size by removing any graphical package.

I've added X11 to the list of yocto DISTRO_FEATURES I want to remove from my build :
in file ./project-spec/meta-user/conf/petalinuxbsp.conf, I've added the follwing line :

 

DISTRO_FEATURES_remove = " x11"

 

I've relaunched a build and here is what I get :

 

WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.

 

 Somewhere, meta-gnome layer is selected. I've found this AR from Xilinx :

https://www.xilinx.com/support/answers/72139.html

--> meta-gnome seems to be selected because X11 is the default mali-backend even if X11 distro feature is removed : https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841928/Xilinx+Arm+Mali-400+Driver

So I've removed everything graphical

 

DISTRO_FEATURES_remove = " ipv6 ssh-server-dropbear x11 wayland mali fbdev opengl bluetooth"
MALI_BACKEND_DEFAULT = "fbdev"

 

... but I'm still building Gnome packages...

0 Kudos