Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a specific package from yocto

Tags:

yocto

imx6

I am building yocto for a specific hardware (imx6 saber-sdb from nxp). I want to remove a particular (chromium) package from the build process. so that chromium package will not be downloaded, compiled and will not be part of the target image as well.

Can some body suggest me how to do this?

Thanks and Regards, Giri

like image 917
Giridhara Kalkere Avatar asked Mar 05 '17 12:03

Giridhara Kalkere


2 Answers

Below is how you can remove chromium package from your image.

IMAGE_INSTALL_remove += "chromium"

The other way is PACKAGE_EXCLUDE. Have a look here

like image 136
john madieu Avatar answered Oct 06 '22 00:10

john madieu


You can edit image recipe and remove (comment out) line that should be located there:

IMAGE_INSTALL_append = “ chromium”

(it could be also in IMAGE_INSTALL += ), take a look here.

The image recipe file is bitbake file with the name that you use to build your image, you should be able to find it in some meta folder, e.g. meta-<>/meta-fsl-demos/recipes-fsl/images/fsl-image-gui-sdk.bb.

Note that IMAGE_INSTALL is not recommended when used in build directory conf/local.conf (and it looks it just doesn't work as far as I have seen). That is why the recommended way is to either modify existing image recipe or clone/modify it.

like image 38
pmod Avatar answered Oct 05 '22 23:10

pmod