How to prevent GTK/X11/Wayland packages to be built (for image size reduction)
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.
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 :