From bd40fcec77c8977730013e84538221a5cc32f910 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sun, 10 Jul 2011 22:11:09 +0200 Subject: uboot-mkimage: add target support Signed-off-by: Peter Korsgaard --- package/uboot-mkimage/Config.in | 7 +++++++ package/uboot-mkimage/uboot-mkimage.mk | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 package/uboot-mkimage/Config.in (limited to 'package/uboot-mkimage') diff --git a/package/uboot-mkimage/Config.in b/package/uboot-mkimage/Config.in new file mode 100644 index 000000000..e1dec5379 --- /dev/null +++ b/package/uboot-mkimage/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_UBOOT_MKIMAGE + bool "uboot-mkimage" + help + The mkimage tool from Das U-Boot bootloader, which allows + generation of U-Boot images in various formats. + + http://www.denx.de/wiki/U-Boot/WebHome diff --git a/package/uboot-mkimage/uboot-mkimage.mk b/package/uboot-mkimage/uboot-mkimage.mk index b8f2ee5de..d8a8fbbe9 100644 --- a/package/uboot-mkimage/uboot-mkimage.mk +++ b/package/uboot-mkimage/uboot-mkimage.mk @@ -2,6 +2,19 @@ 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 UBOOT_MKIMAGE_BUILD_CMDS + $(MAKE) -C $(@D) \ + HOSTCC="$(TARGET_CC)" \ + HOSTCFLAGS="$(TARGET_CFLAGS)" \ + HOSTLDFLAGS="$(TARGET_LDFLAGS)" \ + HOSTSTRIP=true \ + tools +endef + +define UBOOT_MKIMAGE_INSTALL_CMDS + install -m 0755 -D $(@D)/tools/mkimage $(TARGET_DIR)/usr/bin +endef + define HOST_UBOOT_MKIMAGE_BUILD_CMDS $(MAKE) -C $(@D) \ HOSTCC="$(HOSTCC)" \ @@ -14,4 +27,5 @@ define HOST_UBOOT_MKIMAGE_INSTALL_CMDS install -m 0755 -D $(@D)/tools/mkimage $(HOST_DIR)/usr/bin endef +$(eval $(call GENTARGETS,package,uboot-mkimage)) $(eval $(call GENTARGETS,package,uboot-mkimage,host)) -- cgit v1.2.3