diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel-arch.bbclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass index 9208c3507a..2ce0f9727d 100644 --- a/meta/classes/kernel-arch.bbclass +++ b/meta/classes/kernel-arch.bbclass | |||
@@ -5,7 +5,7 @@ | |||
5 | # | 5 | # |
6 | 6 | ||
7 | valid_archs = "alpha cris ia64 \ | 7 | valid_archs = "alpha cris ia64 \ |
8 | x86_64,i386 \ | 8 | x86_64 i386 x86 \ |
9 | m68knommu m68k ppc powerpc ppc64 \ | 9 | m68knommu m68k ppc powerpc ppc64 \ |
10 | sparc sparc64 \ | 10 | sparc sparc64 \ |
11 | arm arm26 \ | 11 | arm arm26 \ |
@@ -30,3 +30,11 @@ def map_kernel_arch(a, d): | |||
30 | bb.error("cannot map '%s' to a linux kernel architecture" % a) | 30 | bb.error("cannot map '%s' to a linux kernel architecture" % a) |
31 | 31 | ||
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 | |||
34 | def map_uboot_arch(a, d): | ||
35 | if a == "powerpc": | ||
36 | return "ppc" | ||
37 | return a | ||
38 | |||
39 | export UBOOT_ARCH = "${@map_uboot_arch(bb.data.getVar('ARCH', d, 1), d)}" | ||
40 | |||