<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7616</bug_id>
          
          <creation_ts>2015-04-16 10:47:05 +0000</creation_ts>
          <short_desc>Extensible SDK: doing IMAGE_INSTALL_append from local.conf does not make it into the SDK</short_desc>
          <delta_ts>2015-11-03 08:09:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.8</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50334</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-04-16 10:47:05 +0000</bug_when>
    <thetext>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&apos;t get those items in the SDK once installed. They do get built correctly, but because these variable changes aren&apos;t allowed through into the SDK&apos;s generated configuration, they aren&apos;t present at SDK installation time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50589</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-04-29 02:29:22 +0000</bug_when>
    <thetext>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.

&lt;start of local.conf&gt;
&lt;contents from local.conf in TOPDIR&gt;
&lt;contents generated which are specific for extensible SDK&gt;
&lt;end of local.conf&gt;

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&apos;t get into the final local.conf.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51730</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-06-16 10:27:52 +0000</bug_when>
    <thetext>An update on status for everyone else&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54038</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-09-15 02:25:25 +0000</bug_when>
    <thetext>Module: openembedded-core.git
Branch: master
Commit: 0dda443bfa5c42f327d8d0ed7b23af11c156a60e
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=0dda443bfa5c42f327d8d0ed7b23af11c156a60e

Author: Qi.Chen@windriver.com &lt;Qi.Chen@windriver.com&gt;
Date:   Mon Sep  7 13:42:23 2015 +0100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56118</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-11-03 08:09:25 +0000</bug_when>
    <thetext>Verified with jethro:e1aa897beb33171bc902207b98c8f666b9e97ad3


Steps:
1. build the sdk and add mc to the SDK using INSTALL_IMAGE_append = &quot; mc&quot; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>