Add gcc, g++ to custom minimal image

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

Add gcc, g++ to custom minimal image

跳至解决方案
20,794 次查看
markofrelih
Contributor III

How to add gcc and g++ to custom minimal image, I've tried to add:

IMAGE_INSTALL_append = " sqlite3 gcc g++ make"

into local.conf. Make is found, however, gcc and g++ are not, why?

Here is also bblayers.conf:

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/poky/meta \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/poky/meta-yocto \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/poky/meta-yocto-bsp \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-oe \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-networking \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-perl \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-python \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/meta-ruby \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-openembedded/toolchain-layer \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale-internal \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale-extra \
  "
BBLAYERS_NON_REMOVABLE ?= " \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/poky/meta \
  /home/testuser/QorIQ-SDK-V1.9-20151210-yocto/sources/poky/meta-yocto \
  "

标签 (1)
1 解答
11,680 次查看
yipingwang
NXP TechSupport
NXP TechSupport

The toolchain runs on target board, which is the same exact version as the cross tools in this SDK, is only included in
fsl-image-full rootfs, if you want to add toolchain into other rootfs images, do the following:
1. Edit fsl-image-minimal.bb/fsl-image-core.bb to add packagegroup-core-buildessential in the IMAGE_INSTALL
variable.

2. $ bitbake <rootfs-target>.

Please try the following:

Please add "IMAGE_INSTALL +=packagegroup-core-buildessential" in sources/meta-freescale/recipes-fsl/images/fsl-image-minimal.bb, and rebuild minimal rootfs filesytem with "$bitbake fsl-image-minimal"


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
11,681 次查看
yipingwang
NXP TechSupport
NXP TechSupport

The toolchain runs on target board, which is the same exact version as the cross tools in this SDK, is only included in
fsl-image-full rootfs, if you want to add toolchain into other rootfs images, do the following:
1. Edit fsl-image-minimal.bb/fsl-image-core.bb to add packagegroup-core-buildessential in the IMAGE_INSTALL
variable.

2. $ bitbake <rootfs-target>.

Please try the following:

Please add "IMAGE_INSTALL +=packagegroup-core-buildessential" in sources/meta-freescale/recipes-fsl/images/fsl-image-minimal.bb, and rebuild minimal rootfs filesytem with "$bitbake fsl-image-minimal"


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------