Add gcc, g++ to custom minimal image

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

Add gcc, g++ to custom minimal image

Jump to solution
19,597 Views
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 \
  "

Labels (1)
1 Solution
10,483 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
10,484 Views
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!
-----------------------------------------------------------------------------------------------------------------------