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 /meta/classes/kernel-arch.bbclass | |
parent | 769cf0b6b03277dd56ac03b9335e6d90e0a7261d (diff) | |
download | poky-2c3437d0ae4beac017663e9e71e923e5aac14c79.tar.gz |
kernel-arch.bbclass: merge improved arch detection from OE.dev
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/classes/kernel-arch.bbclass')
-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): | |||
32 | export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}" | 32 | export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}" |
33 | 33 | ||
34 | def map_uboot_arch(a, d): | 34 | def map_uboot_arch(a, d): |
35 | if a == "powerpc": | 35 | import re |
36 | return "ppc" | 36 | |
37 | if re.match('powerpc$', a): return 'ppc' | ||
38 | elif re.match('i.86$', a): return 'x86' | ||
37 | return a | 39 | return a |
38 | 40 | ||
39 | export UBOOT_ARCH = "${@map_uboot_arch(bb.data.getVar('ARCH', d, 1), d)}" | 41 | export UBOOT_ARCH = "${@map_uboot_arch(bb.data.getVar('ARCH', d, 1), d)}" |