Bug 5861 - SDKMACHINE can't be set in the distro config
Summary: SDKMACHINE can't be set in the distro config
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5.1
Hardware: All Multiple
: Medium normal
Target Milestone: 1.6
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard: 02 April 2014: Doc flag set to "Done."
Depends on:
Blocks:
 
Reported: 2014-02-21 10:04 UTC by Paul Eggleton
Modified: 2014-04-02 12:16 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Done (doc changes complete)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-02-21 10:04:28 UTC
If you set SDKMACHINE in the distro config it will not have any effect; this is because of the ordering in meta/conf/bitbake.conf:

...
include conf/machine-sdk/${SDKMACHINE}.conf
include conf/distro/${DISTRO}.conf
...

The value won't get set until after the line where its value would have any effect has been parsed. Assuming we can't reorder the includes in bitbake.conf, I think we should add a check in sanity.bbclass to see if the include actually happened assuming SDKMACHINE has a value. This should be a simple matter of checking BBINCLUDED.
Comment 1 Paul Eggleton 2014-03-31 23:24:13 UTC
Added a check in sanity.bbclass to determine if the SDKMACHINE value has really taken effect; this has now been merged:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=49f2bc450c1dd969eba30287050e25030116b714

We need to note in the manual that SDKMACHINE cannot be set in the distro config.
Comment 2 Scott Rifenbark 2014-04-02 12:16:46 UTC
See http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#var-SDKMACHINE for the note that takes care of this doc part.

I have run the changes by Paul and he approved them.

Setting the documentation flag to "Done."

Scott