other place except core-image-base.bb to enable tools

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

other place except core-image-base.bb to enable tools

856 Views
stevenyu
Contributor III

Hi Expert, 

Because we don't include many tools/packages in core-image-base.bb, but the rootfs is quite large. 

As I know, we need to add module name to this file to enable specific function, e.g. dhcp, but I have still seen lots of tools be enabled by default. Would you please advise where these tools are enabled ?

FILE: sources/poky/meta/recipes-core/images/core-image-base.bb

SUMMARY = "A console-only image that fully supports the target device \
hardware."

#IMAGE_FEATURES += "splash"

LICENSE = "MIT"

inherit core-image

IMAGE_INSTALL += "dhcp"

Regards,

Steven Yu

Labels (1)
0 Kudos
2 Replies

687 Views
radhikasomaiya
Senior Contributor II

Hi stevenyu ,

For default enabled tools you can refer .bbclass file of core-image (FILE: sources/poky/meta/classes/core-image.bbclass). As core-image class is inherited from core-image-base.bb. 

 

Regards,

Radhika Somaiya.

0 Kudos

687 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi steven,

     You only need to configure build/conf/local.conf, like below:

(1) adding packages

# for example, add perl

... ...

IMAGE_INSTALL_append = " \
perl \
perl-module-base \
perl-module-findbin"

......

(2) deleting packages

......

PACKAGE_EXCLUDE = "package_name1 package_name2 package_name3 ..."

......

In addition, on how to add / delete packages in Yocto, you can find many documents from internet.

Have a nice day!

BR,

weidong

0 Kudos