Bug 10757 - multiconfig MACHINE ignored
Summary: multiconfig MACHINE ignored
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: High major
Target Milestone: 2.3 M2
Assignee: Juro Bystricky
QA Contact: Juan Ramos
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-12-01 23:08 UTC by Juro Bystricky
Modified: 2017-04-19 20:56 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juro Bystricky 2016-12-01 23:08:22 UTC
I have this setup:
poky: commit 9e63f81c78e284c9b325fe04a1b59e61c7ad8a1a

local.conf:
MACHINE="qemux86-64"
BBMULTICONFIG = "qemuarm-tmp qemux86-tmp"

qemuarm-tmp.conf:
MACHINE="qemuarm"
TMPDIR="${TOPDIR}/tmp-qemuarm"

qemux86-tmp:
MACHINE="qemux86"
TMPDIR="${TOPDIR}/tmp-qemux86"

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 "deploy" 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
Comment 1 Juro Bystricky 2016-12-08 15:54:23 UTC
seems MACHINE is overwritten in cookerdata.py parseConfigurationFiles
by this (it is correct before and incorrect after):
 data = parse_config_file(os.path.join("conf", "bitbake.conf"), data)
Comment 2 Juro Bystricky 2016-12-21 01:32:32 UTC
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&id=eadd0e26b5281730215965b0729d42d0cc7f28e0
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=rpurdie/wip-temp&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 "pseudo", subject to different bug reports).

Also, more testing needs to be done before this bug is marked as resolved.
Comment 4 Juan Ramos 2017-04-19 20:56:00 UTC
Verified, tested in commit def638ebd69cef217ca567352bc08920b79ca03d and the expected images are present.