]> code.ossystems Code Review - openembedded-core.git/commit
yocto-kernel: fix kmachine to deal with overrides
authorBruce Ashfield <bruce.ashfield@windriver.com>
Wed, 22 Dec 2010 21:29:28 +0000 (16:29 -0500)
committerSaul Wold <sgw@linux.intel.com>
Wed, 29 Dec 2010 06:47:52 +0000 (22:47 -0800)
commit54d4b8e861d161fa050d918d70572c744c4a0289
treeb3c842f1c6b8eb6448a581d928a774684c8a004d
parent22cf272eb67e7a5596c157aeed9df64bc7b414c5
yocto-kernel: fix kmachine to deal with overrides

BSPs are built from a particular branch of the kernel repository
which is specfied via the mapping of MACHINE to KMACHINE. Unless
a global branch is being forced (like libc headers), KMACHINE
is an override on a per machine basis.

Because KMACHINE is typically override we must first try the
most specific variant KMACHINE_<machine> and if that is undefined
look for a fallack default. This allows any combination of
variables to work (and at the time the anonymous python
executes) safely and get us a properly defined branch for the
fetcher and build.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/classes/kernel-yocto.bbclass