summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2011-01-14 00:33:26 -0500
committerSaul Wold <sgw@linux.intel.com>2011-01-19 11:36:27 -0800
commit432e7619a7bd0c6a2075a618e5b17100fe459085 (patch)
treea1833661d9ae555ffb17431d11fd922d449be462 /meta/classes
parent37c4345197461500e85612a3d25628c62ac620b8 (diff)
downloadast2050-yocto-poky-432e7619a7bd0c6a2075a618e5b17100fe459085.zip
ast2050-yocto-poky-432e7619a7bd0c6a2075a618e5b17100fe459085.tar.gz
linux-yocto: streamline new BSP creation
By setting BOOTSTRAP to the branch that should be used for a currently undefined BSP a build can be completed and an environment for streamlining the BSP created. With the appropriate machine.conf, and a defconfig any MACHINE can be built against and inherit the configuration of the standard yocto kernel. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-yocto.bbclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index df2a8a4..88dcf32 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -24,7 +24,7 @@ python __anonymous () {
bb.data.setVar("KMACHINE", "${MACHINE}", d)
# track the global configuration on a bootstrapped BSP
bb.data.setVar("SRCREV_machine", "${SRCREV_meta}", d)
- bb.data.setVar("BOOTSTRAP", "t", d)
+ bb.data.setVar("BOOTSTRAP", bb.data.expand("${MACHINE}",d) + "-standard", d)
else:
# The branch for a build is:
# yocto/<kernel type>/${KMACHINE} or
@@ -44,10 +44,10 @@ python __anonymous () {
bb.data.setVar('KMACHINE_' + bb.data.expand("${MACHINE}",d), kmachine, d)
if mach == "UNDEFINED":
- bb.data.setVar("KBRANCH", "yocto/standard/base", d)
bb.data.setVar('KMACHINE_' + bb.data.expand("${MACHINE}",d), bb.data.expand("${MACHINE}",d), d)
+ bb.data.setVar("KBRANCH", "yocto/standard/base", d)
bb.data.setVar("SRCREV_machine", "standard", d)
- bb.data.setVar("BOOTSTRAP", "t", d)
+ bb.data.setVar("BOOTSTRAP", "yocto/standard/" + bb.data.expand("${MACHINE}",d), d)
}
do_patch() {
@@ -57,6 +57,11 @@ do_patch() {
fi
kbranch=${KBRANCH}
+ if [ -n "${BOOTSTRAP}" ]; then
+ # switch from a generic to a specific branch
+ kbranch=${BOOTSTRAP}
+ fi
+
# simply ensures that a branch of the right name has been created
createme ${ARCH} ${kbranch} ${defconfig}
OpenPOWER on IntegriCloud