git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a61075e
)
kernel-arch.bbclass: fix map_uboot_arch for x86
author
Jeremy Laine
<jeremy.laine@m4x.org>
Mon, 26 May 2008 12:13:57 +0000
(12:13 +0000)
committer
Jeremy Laine
<jeremy.laine@m4x.org>
Mon, 26 May 2008 12:13:57 +0000
(12:13 +0000)
classes/kernel-arch.bbclass
patch
|
blob
|
history
diff --git
a/classes/kernel-arch.bbclass
b/classes/kernel-arch.bbclass
index
2ce0f97
..
65d2200
100644
(file)
--- 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)}"