summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-04-08 15:37:41 +0000
committerRichard Purdie <richard@openedhand.com>2008-04-08 15:37:41 +0000
commit1803f03b912675ea218da2f73db8adda09448b83 (patch)
tree61b70cc6583cc0544c070a467fad8c689ee2e620 /meta
parent30f83b301c66e71fea73d877b01c3f185312182e (diff)
downloadpoky-1803f03b912675ea218da2f73db8adda09448b83.tar.gz
kernel-arch.bbclass: Sync with OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4210 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel-arch.bbclass10
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
7valid_archs = "alpha cris ia64 \ 7valid_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
32export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}" 32export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
33
34def map_uboot_arch(a, d):
35 if a == "powerpc":
36 return "ppc"
37 return a
38
39export UBOOT_ARCH = "${@map_uboot_arch(bb.data.getVar('ARCH', d, 1), d)}"
40