uboot-mkimage: add target support

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2011-07-10 22:11:09 +02:00
parent 7b819c32f8
commit bd40fcec77
3 changed files with 22 additions and 0 deletions

View File

@ -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"

View File

@ -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

View File

@ -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))