diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index df2a8a43bc..88dcf32a06 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -24,7 +24,7 @@ python __anonymous () { | |||
24 | bb.data.setVar("KMACHINE", "${MACHINE}", d) | 24 | bb.data.setVar("KMACHINE", "${MACHINE}", d) |
25 | # track the global configuration on a bootstrapped BSP | 25 | # track the global configuration on a bootstrapped BSP |
26 | bb.data.setVar("SRCREV_machine", "${SRCREV_meta}", d) | 26 | bb.data.setVar("SRCREV_machine", "${SRCREV_meta}", d) |
27 | bb.data.setVar("BOOTSTRAP", "t", d) | 27 | bb.data.setVar("BOOTSTRAP", bb.data.expand("${MACHINE}",d) + "-standard", d) |
28 | else: | 28 | else: |
29 | # The branch for a build is: | 29 | # The branch for a build is: |
30 | # yocto/<kernel type>/${KMACHINE} or | 30 | # yocto/<kernel type>/${KMACHINE} or |
@@ -44,10 +44,10 @@ python __anonymous () { | |||
44 | bb.data.setVar('KMACHINE_' + bb.data.expand("${MACHINE}",d), kmachine, d) | 44 | bb.data.setVar('KMACHINE_' + bb.data.expand("${MACHINE}",d), kmachine, d) |
45 | 45 | ||
46 | if mach == "UNDEFINED": | 46 | if mach == "UNDEFINED": |
47 | bb.data.setVar("KBRANCH", "yocto/standard/base", d) | ||
48 | bb.data.setVar('KMACHINE_' + bb.data.expand("${MACHINE}",d), bb.data.expand("${MACHINE}",d), d) | 47 | bb.data.setVar('KMACHINE_' + bb.data.expand("${MACHINE}",d), bb.data.expand("${MACHINE}",d), d) |
48 | bb.data.setVar("KBRANCH", "yocto/standard/base", d) | ||
49 | bb.data.setVar("SRCREV_machine", "standard", d) | 49 | bb.data.setVar("SRCREV_machine", "standard", d) |
50 | bb.data.setVar("BOOTSTRAP", "t", d) | 50 | bb.data.setVar("BOOTSTRAP", "yocto/standard/" + bb.data.expand("${MACHINE}",d), d) |
51 | } | 51 | } |
52 | 52 | ||
53 | do_patch() { | 53 | do_patch() { |
@@ -57,6 +57,11 @@ do_patch() { | |||
57 | fi | 57 | fi |
58 | 58 | ||
59 | kbranch=${KBRANCH} | 59 | kbranch=${KBRANCH} |
60 | if [ -n "${BOOTSTRAP}" ]; then | ||
61 | # switch from a generic to a specific branch | ||
62 | kbranch=${BOOTSTRAP} | ||
63 | fi | ||
64 | |||
60 | 65 | ||
61 | # simply ensures that a branch of the right name has been created | 66 | # simply ensures that a branch of the right name has been created |
62 | createme ${ARCH} ${kbranch} ${defconfig} | 67 | createme ${ARCH} ${kbranch} ${defconfig} |