summaryrefslogtreecommitdiffstats
path: root/package/uboot-mkimage/uboot-mkimage.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/uboot-mkimage/uboot-mkimage.mk')
-rw-r--r--package/uboot-mkimage/uboot-mkimage.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/uboot-mkimage/uboot-mkimage.mk b/package/uboot-mkimage/uboot-mkimage.mk
new file mode 100644
index 000000000..055348c3c
--- /dev/null
+++ b/package/uboot-mkimage/uboot-mkimage.mk
@@ -0,0 +1,16 @@
+UBOOT_MKIMAGE_VERSION = 2011.03
+UBOOT_MKIMAGE_SOURCE = u-boot-$(UBOOT_MKIMAGE_VERSION).tar.bz2
+UBOOT_MKIMAGE_SITE = ftp://ftp.denx.de/pub/u-boot
+
+define HOST_UBOOT_MKIMAGE_BUILD_CMDS
+ $(MAKE) -C $(@D) \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
+ ARCH=$(U_BOOT_ARCH) \
+ tools
+endef
+
+define HOST_UBOOT_MKIMAGE_INSTALL_CMDS
+ install -m 0755 -D $(@D)/tools/mkimage $(HOST_DIR)/usr/bin
+endef
+
+$(eval $(call GENTARGETS,package,uboot-mkimage,host))