blob: d8a8fbbe9c0b7de1a0f159327aa616aa35e84611 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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)" \
HOSTCFLAGS="$(HOST_CFLAGS)" \
HOSTLDFLAGS="$(HOST_LDFLAGS)" \
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))
$(eval $(call GENTARGETS,package,uboot-mkimage,host))
|