summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2008-05-26 12:28:09 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2008-05-26 12:28:09 +0000
commite76451904db72c3c11570d43f74bc056e71ef5f7 (patch)
treed5e85c2c80ec2a34cf3431bdfbf752bd505e16b3 /classes
parent7ec7a16d70b3b4ae5cfd7d65f93119a5e6ae4a84 (diff)
parent81920b835e3cc8b87f27d3989627cce477ff23c5 (diff)
merge of '7dac65b6187ea9281e5a7ff6b68e832c04a92af8'
and '9dce9395fcd011a1d238dcb5a559a08d851dc80e'
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)}"