summaryrefslogtreecommitdiff
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)
downloadopenembedded-core-1803f03b912675ea218da2f73db8adda09448b83.tar.gz
openembedded-core-1803f03b912675ea218da2f73db8adda09448b83.tar.bz2
openembedded-core-1803f03b912675ea218da2f73db8adda09448b83.zip
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 @@
#
valid_archs = "alpha cris ia64 \
- x86_64,i386 \
+ x86_64 i386 x86 \
m68knommu m68k ppc powerpc ppc64 \
sparc sparc64 \
arm arm26 \
@@ -30,3 +30,11 @@ def map_kernel_arch(a, d):
bb.error("cannot map '%s' to a linux kernel architecture" % a)
export ARCH = "${@map_kernel_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
+
+def map_uboot_arch(a, d):
+ if a == "powerpc":
+ return "ppc"
+ return a
+
+export UBOOT_ARCH = "${@map_uboot_arch(bb.data.getVar('ARCH', d, 1), d)}"
+