<?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>6678</bug_id>
          
          <creation_ts>2014-09-03 17:59:23 +0000</creation_ts>
          <short_desc>populate_sdk_image function removed in Yocto1.6.1</short_desc>
          <delta_ts>2014-11-11 15:25:51 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.6.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yang">yang.y.wang</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45377</commentid>
    <comment_count>0</comment_count>
    <who name="Yang">yang.y.wang</who>
    <bug_when>2014-09-03 17:59:23 +0000</bug_when>
    <thetext>I got an issue for the secondary toolchain support with Yocto 1.6.1. In the previous version, e.g. Yocto1.5 poky-dora, I has the function to overwrite the environment script:

populate_sdk_image_append() {
         toolchain_create_sdk_env_script_alt ${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS}
}

The function populate_sdk_image is defined in the meta/classes/populate_sdk_base.bbclass
This works well for Yocto 1.5

However in the Yocto 1.6, the function populate_sdk_image was removed from populate_sdk_base.bbclass.
So the populate_sdk_image_append() won’t work for my class and my environment scripts will not be generated.
Is this expected changes in the Yocto1.6? In Yocto1.6, which function can I use with append() to generate my environment file? I checked populate_sdk_append() but seems not work.

Could you please advice how can I implement the similar populate_sdk_image_append() function in Yocto 1.6.1?
Thank you.
-Yang</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45395</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-09-04 14:43:09 +0000</bug_when>
    <thetext>The change happened in http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/classes/populate_sdk_base.bbclass?id=039ba41ecc1a441f3978d990aac795a92138fc94 and was intended, its not a bug. I&apos;d suggest adding a function to SDK_POSTPROCESS_COMMAND which is the better way to handle issues like this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46917</commentid>
    <comment_count>2</comment_count>
    <who name="Yang">yang.y.wang</who>
    <bug_when>2014-11-11 15:25:51 +0000</bug_when>
    <thetext>Thank you Richard. Regarding SDK_POSTPROCESS_COMMAND, I have several questions:
1. In my .bbclass, should I just add 
        SDK_POSTPROCESS_COMMAND += toolchain_create_sdk_env_script_alt;
to make sure the function toolchain_create_sdk_env_script_alt can be invoked?
I would expect this function to be invoked when we build the SDK such as bitbake meta-toolchain or bitbake core-image-sato -c populate_sdk
2. Is this SDK_POSTPROCESS_COMMAND valid for the old yocto release such as Yocto1.5 or older?

thanks.
-Yang

(In reply to comment #1)
&gt; The change happened in
&gt; http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/classes/
&gt; populate_sdk_base.bbclass?id=039ba41ecc1a441f3978d990aac795a92138fc94 and
&gt; was intended, its not a bug. I&apos;d suggest adding a function to
&gt; SDK_POSTPROCESS_COMMAND which is the better way to handle issues like this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>