diff options
Diffstat (limited to 'meta')
-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)}" |