summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-05-26 12:13:57 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-05-26 12:13:57 +0000
commit81920b835e3cc8b87f27d3989627cce477ff23c5 (patch)
tree05835c87e6e44dcfd6d9bebde5927daca8f67243 /classes
parenta61075e60e196d55d3e1f98b9f1e96a9ae8bef25 (diff)
kernel-arch.bbclass: fix map_uboot_arch for x86
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel-arch.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/kernel-arch.bbclass b/classes/kernel-arch.bbclass
index 2ce0f9727d..65d220063e 100644
--- a/classes/kernel-arch.bbclass
+++ b/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)}"