summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-07-10 20:11:09 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-07-10 20:11:09 (GMT)
commitbd40fcec77c8977730013e84538221a5cc32f910 (patch)
treeddd20b3de7980ed0f6255cddbe59ab41871818a0
parent7b819c32f8830676433764eb2fd7af6851bb5034 (diff)
downloadbuildroot-bd40fcec77c8977730013e84538221a5cc32f910.tar.gz
buildroot-bd40fcec77c8977730013e84538221a5cc32f910.tar.bz2
uboot-mkimage: add target support
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/uboot-mkimage/Config.in7
-rw-r--r--package/uboot-mkimage/uboot-mkimage.mk14
3 files changed, 22 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 09aa76a..9a73998 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -206,6 +206,7 @@ source "package/sredird/Config.in"
source "package/sshfs/Config.in"
source "package/statserial/Config.in"
source "package/sysstat/Config.in"
+source "package/uboot-mkimage/Config.in"
source "package/udev/Config.in"
source "package/usb_modeswitch/Config.in"
source "package/usbmount/Config.in"
diff --git a/package/uboot-mkimage/Config.in b/package/uboot-mkimage/Config.in
new file mode 100644
index 0000000..e1dec53
--- /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 b8f2ee5..d8a8fbb 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))