summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-05-20 15:15:55 +0100
committerJoshua Lock <josh@linux.intel.com>2010-05-20 15:15:55 +0100
commit2c3437d0ae4beac017663e9e71e923e5aac14c79 (patch)
treedd200a43d60d926724d3a4f70044b14db3e76bfb /meta
parent769cf0b6b03277dd56ac03b9335e6d90e0a7261d (diff)
downloadopenembedded-core-2c3437d0ae4beac017663e9e71e923e5aac14c79.tar.gz
openembedded-core-2c3437d0ae4beac017663e9e71e923e5aac14c79.tar.bz2
openembedded-core-2c3437d0ae4beac017663e9e71e923e5aac14c79.tar.xz
openembedded-core-2c3437d0ae4beac017663e9e71e923e5aac14c79.zip
kernel-arch.bbclass: merge improved arch detection from OE.dev
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel-arch.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index 35c26b89f..8894fa554 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -32,8 +32,10 @@ def map_kernel_arch(a, d):
export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
def map_uboot_arch(a, d):
- if a == "powerpc":
- return "ppc"
+ import re
+
+ if re.match('powerpc$', a): return 'ppc'
+ elif re.match('i.86$', a): return 'x86'
return a
export UBOOT_ARCH = "${@map_uboot_arch(bb.data.getVar('ARCH', d, 1), d)}"