summaryrefslogtreecommitdiff
path: root/classes/kernel-arch.bbclass
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-03-28 17:58:27 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-03-28 17:58:27 +0000
commit333f21244423f90d12facbb34376b2a6a4ec125f (patch)
tree2cb567bbba7e10f348885c4018a8d1c5c95484d2 /classes/kernel-arch.bbclass
parente71991698d74fe738094be8f9a4a73b4e5cd8c51 (diff)
kernel.bbclass: fix generation of uImage on powerpc platforms
* add a map_uboot_arch function to kernel.bbclass which changes "powerpc" to "ppc" and export UBOOT_ARCH * pass -A ${UBOOT_ARCH} instead of -A ${ARCH} to mkimage in kernel.bbclass
Diffstat (limited to 'classes/kernel-arch.bbclass')
-rw-r--r--classes/kernel-arch.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/kernel-arch.bbclass b/classes/kernel-arch.bbclass
index 5e5d9a94a8..2ce0f9727d 100644
--- a/classes/kernel-arch.bbclass
+++ b/classes/kernel-arch.bbclass
@@ -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)}"
+