diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-05-20 15:15:55 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-05-20 15:15:55 +0100 |
commit | 2c3437d0ae4beac017663e9e71e923e5aac14c79 (patch) | |
tree | dd200a43d60d926724d3a4f70044b14db3e76bfb | |
parent | 769cf0b6b03277dd56ac03b9335e6d90e0a7261d (diff) | |
download | openembedded-core-2c3437d0ae4beac017663e9e71e923e5aac14c79.tar.gz openembedded-core-2c3437d0ae4beac017663e9e71e923e5aac14c79.tar.bz2 openembedded-core-2c3437d0ae4beac017663e9e71e923e5aac14c79.zip |
kernel-arch.bbclass: merge improved arch detection from OE.dev
Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r-- | meta/classes/kernel-arch.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index 35c26b89ff..8894fa554c 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)}" |