From 1803f03b912675ea218da2f73db8adda09448b83 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 8 Apr 2008 15:37:41 +0000 Subject: kernel-arch.bbclass: Sync with OE.dev git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4210 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/classes/kernel-arch.bbclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'meta') 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)}" + -- cgit v1.2.3