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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,123 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

954 次查看
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 项奖励
回复

954 次查看
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 项奖励
回复