aboutsummaryrefslogtreecommitdiff
path: root/package/uboot-tools
diff options
context:
space:
mode:
authorGravatar Arnout Vandecappelle <arnout@mind.be>2013-11-07 00:12:35 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-11-11 00:37:03 +0100
commit13ae0075a94895c1b021d20905867ee5f354bd49 (patch)
treef0ca7caa50341ed6f4710d19412925ccd88526a6 /package/uboot-tools
parent3970ebf837aa7ac52528d3afc8c1701015a024b0 (diff)
downloadbuildroot-13ae0075a94895c1b021d20905867ee5f354bd49.tar.gz
buildroot-13ae0075a94895c1b021d20905867ee5f354bd49.tar.bz2
uboot-tools: factor out common mkimage infrastructure
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/uboot-tools')
-rw-r--r--package/uboot-tools/uboot-tools.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk
index 73e1d327d4..5c77887c8f 100644
--- a/package/uboot-tools/uboot-tools.mk
+++ b/package/uboot-tools/uboot-tools.mk
@@ -64,3 +64,20 @@ endef
$(eval $(generic-package))
$(eval $(host-generic-package))
+
+# Convenience variables for other mk files that make use of mkimage
+
+MKIMAGE = $(HOST_DIR)/usr/bin/mkimage
+
+# mkimage supports arm avr32 blackfin m68k microblaze mips mips64 nios2 powerpc ppc sh sparc sparc64 x86
+# KERNEL_ARCH can be arm64 arc arm avr32 blackfin m68k microblaze mips nios2 powerpc sh sparc i386 x86_64 xtensa
+# For arm64, arc, xtensa we'll just keep KERNEL_ARCH
+# For mips64, we'll just keep mips
+# For i386 and x86_64, we need to convert
+ifeq ($(KERNEL_ARCH),x86_64)
+MKIMAGE_ARCH = x86
+else ifeq ($(KERNEL_ARCH),i386)
+MKIMAGE_ARCH = x86
+else
+MKIMAGE_ARCH = $(KERNEL_ARCH)
+endif