diff options
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index f5418782b0..7ebe5d69aa 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -29,10 +29,13 @@ python __anonymous () { | |||
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 |
31 | # yocto/<kernel type>/${KMACHINE}/base | 31 | # yocto/<kernel type>/${KMACHINE}/base |
32 | bb.data.setVar("KBRANCH", bb.data.expand("${KMACHINE}",d), d) | 32 | mach = bb.data.getVar("KMACHINE_" + bb.data.expand("${MACHINE}",d), d, 1) |
33 | if mach == None: | ||
34 | mach = bb.data.getVar("KMACHINE", d, 1) | ||
35 | |||
36 | bb.data.setVar("KBRANCH", mach, d) | ||
33 | bb.data.setVar("KMETA", "meta", d) | 37 | bb.data.setVar("KMETA", "meta", d) |
34 | 38 | ||
35 | mach = bb.data.getVar("KMACHINE", d, 1) | ||
36 | # drop the "/base" if it was on the KMACHINE | 39 | # drop the "/base" if it was on the KMACHINE |
37 | kmachine = mach.replace('/base','') | 40 | kmachine = mach.replace('/base','') |
38 | # drop everything but the last segment | 41 | # drop everything but the last segment |