<?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>12538</bug_id>
          
          <creation_ts>2018-02-08 02:09:34 +0000</creation_ts>
          <short_desc>Using += with SDKIMAGE_FEATURES overrides the value of variable</short_desc>
          <delta_ts>2018-02-08 16:10:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>2.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anuj Mittal">anuj.mittal</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>ross.burton</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>79380</commentid>
    <comment_count>0</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-02-08 02:09:34 +0000</bug_when>
    <thetext>Added this to local.conf:

SDKIMAGE_FEATURES += &quot;staticdev-pkgs&quot;

After that:

$ bitbake -c populate_sdk core-image-minimal -e | grep SDKIMAGE
# $SDKIMAGE_FEATURES [3 operations]
SDKIMAGE_FEATURES=&quot; staticdev-pkgs&quot;
# $SDKIMAGE_INSTALL_COMPLEMENTARY
#     &quot;${@complementary_globs(&quot;SDKIMAGE_FEATURES&quot;, d)}&quot;
SDKIMAGE_INSTALL_COMPLEMENTARY=&quot;*-staticdev&quot;
    variables = [&apos;BUILD_IMAGES_FROM_FEEDS&apos;,&apos;SDK_OS&apos;,&apos;SDK_OUTPUT&apos;,&apos;SDKPATHNATIVE&apos;,&apos;SDKTARGETSYSROOT&apos;,&apos;SDK_DIR&apos;,&apos;SDK_VENDOR&apos;,&apos;SDKIMAGE_INSTALL_COMPLEMENTARY&apos;,&apos;SDK_PACKAGE_ARCHS&apos;,&apos;SDK_OUTPUT&apos;,

Using _append works fine. Is this expected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79395</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-08 16:10:15 +0000</bug_when>
    <thetext>Don&apos;t use grep and you&apos;ll see the full context:

# $SDKIMAGE_FEATURES [3 operations]
#   append /home/ross/Yocto/poky/build/conf/local.conf:439
#     &quot;staticdev-pkgs&quot;
#   set /home/ross/Yocto/poky/meta/conf/documentation.conf:372
#     [doc] &quot;Equivalent to IMAGE_FEATURES. However, this variable applies to the SDK generated from an image using the command &apos;bitbake -c populate_sdk imagename&apos;.&quot;
#   set /home/ross/Yocto/poky/meta/classes/populate_sdk_base.bbclass:20
#     [_defaultval] &quot;dev-pkgs dbg-pkgs ${@bb.utils.contains(&apos;DISTRO_FEATURES&apos;, &apos;api-documentation&apos;, &apos;doc-pkgs&apos;, &apos;&apos;, d)}&quot;

The defaultval from populate_sdk_base is only used if there isn&apos;t a value set as it uses ??=.

So yes, it&apos;s by design that in local.conf you&apos;ll need to use _append.

(the same reasoning applies to DISTRO_FEATURES, IMAGE_FEATURES, and more)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>