<?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>10757</bug_id>
          
          <creation_ts>2016-12-01 23:08:22 +0000</creation_ts>
          <short_desc>multiconfig MACHINE ignored</short_desc>
          <delta_ts>2017-04-19 20:56:00 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.2</version>
          <rep_platform>x86</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Juan Ramos">juan.fernandox.ramos.frayle</qa_contact>
          <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>68801</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-12-01 23:08:22 +0000</bug_when>
    <thetext>I have this setup:
poky: commit 9e63f81c78e284c9b325fe04a1b59e61c7ad8a1a

local.conf:
MACHINE=&quot;qemux86-64&quot;
BBMULTICONFIG = &quot;qemuarm-tmp qemux86-tmp&quot;

qemuarm-tmp.conf:
MACHINE=&quot;qemuarm&quot;
TMPDIR=&quot;${TOPDIR}/tmp-qemuarm&quot;

qemux86-tmp:
MACHINE=&quot;qemux86&quot;
TMPDIR=&quot;${TOPDIR}/tmp-qemux86&quot;

I ran this:
bitbake multiconfig:qemux86-tmp:core-image-minimal multiconfig:qemuarm-tmp:core-image-minimal core-image-minimal

The build finished without errors.

However, looking in the individual &quot;deploy&quot; folders, they all contained:
deploy/images/qemux86-64/core-image-minimal-qemux86-64.ext4

but not the expected images such as:

core-image-minimal-qemux86.ext4
core-image-minimal-qemuarm.ext4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68944</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-12-08 15:54:23 +0000</bug_when>
    <thetext>seems MACHINE is overwritten in cookerdata.py parseConfigurationFiles
by this (it is correct before and incorrect after):
 data = parse_config_file(os.path.join(&quot;conf&quot;, &quot;bitbake.conf&quot;), data)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69255</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-12-21 01:32:32 +0000</bug_when>
    <thetext>These two patches by RP seem to have fixed the problem nicely:
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip-temp&amp;id=eadd0e26b5281730215965b0729d42d0cc7f28e0
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip-temp&amp;id=e7d8b8edb348a5ca131081c79ec944f507bf28f6

I was able to run the commend:
$ bitbake multiconfig:qemux86-tmp:core-image-minimal multiconfig:qemuarm-tmp:core-image-minimal core-image-minimal

and ended up correctly with three different images.

There are still some problems when building from scratch (after wiping tmp),
but that is not related to this bug. (This may expose some races or problems with &quot;pseudo&quot;, subject to different bug reports).

Also, more testing needs to be done before this bug is marked as resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69314</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-12-22 14:43:52 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d8d2f421d673d9988d6db017d0e5c0e9e6b63396</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72676</commentid>
    <comment_count>4</comment_count>
    <who name="Juan Ramos">juan.fernandox.ramos.frayle</who>
    <bug_when>2017-04-19 20:56:00 +0000</bug_when>
    <thetext>Verified, tested in commit def638ebd69cef217ca567352bc08920b79ca03d and the expected images are present.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>