Bug 7616

Summary: Extensible SDK: doing IMAGE_INSTALL_append from local.conf does not make it into the SDK
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: devtools / tool chainAssignee: Chen Qi <Qi.Chen>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, meta.mr.watcher, meta.watcher, Qi.Chen
Version: 1.8   
Target Milestone: 1.9 M3   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2015-04-16 10:47:05 UTC
If you do IMAGE_INSTALL_append in local.conf (or indeed CORE_IMAGE_EXTRA_INSTALL += or _append) to add something to an image, then run bitbake -c populate_sdk_ext imagename, you won't get those items in the SDK once installed. They do get built correctly, but because these variable changes aren't allowed through into the SDK's generated configuration, they aren't present at SDK installation time.
Comment 1 Chen Qi 2015-04-29 02:29:22 UTC
Hi Paul,

How about just copying the contents of local.conf in TOPDIR into the final local.conf?

The final local.conf looks like below.

<start of local.conf>
<contents from local.conf in TOPDIR>
<contents generated which are specific for extensible SDK>
<end of local.conf>

In this way, other custom settings are also made into the final local.conf like DISTRO_FEATURES, VIRTUAL-RUNTIME_xxxx, etc.

I think the only problem for the above approach is that some custom settings should not take effect in the final local.conf. SSTATE_DIR is absolutely one of them. I think we can make a blacklist, so that these variable don't get into the final local.conf.

//Chen Qi
Comment 2 Paul Eggleton 2015-06-16 10:27:52 UTC
An update on status for everyone else's benefit: Qi is working on this - there have been a couple of rounds of review on the mailing list, hopefully the next version should be the final version.
Comment 3 Chen Qi 2015-09-15 02:25:25 UTC
Module: openembedded-core.git
Branch: master
Commit: 0dda443bfa5c42f327d8d0ed7b23af11c156a60e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0dda443bfa5c42f327d8d0ed7b23af11c156a60e

Author: Qi.Chen@windriver.com <Qi.Chen@windriver.com>
Date:   Mon Sep  7 13:42:23 2015 +0100
Comment 4 Alexandru Georgescu 2015-11-03 08:09:25 UTC
Verified with jethro:e1aa897beb33171bc902207b98c8f666b9e97ad3


Steps:
1. build the sdk and add mc to the SDK using INSTALL_IMAGE_append = " mc" in conf/local.conf
2. build the SDK:
  $ bitbake core-image-sato -c populate_sdk_ext
3. extract the sdk
4. in the new shell, source the extracted sdk env and build an image:
$ devtool build-image core-image-sato

5. in a new shell, source a new poky to run the qemu image, log into it and search for mc:

root@qemux86-64:~# which mc
/usr/bin/mc