2015-10-20 13:32:19 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# mkpimage
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-03-30 15:43:32 +02:00
|
|
|
HOST_MKPIMAGE_LICENSE = GPL-2.0
|
2015-10-20 13:32:19 +02:00
|
|
|
|
2017-01-30 11:33:25 +01:00
|
|
|
# source included in the package
|
|
|
|
# came from barebox's repository:
|
|
|
|
# https://git.pengutronix.de/cgit/barebox/tree/scripts/socfpga_mkimage.c?id=55d29525146dcd280987dfd565bfd34f08858fb3
|
2015-10-20 13:32:19 +02:00
|
|
|
define HOST_MKPIMAGE_BUILD_CMDS
|
|
|
|
$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \
|
|
|
|
package/mkpimage/mkpimage.c -o $(@D)/mkpimage
|
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_MKPIMAGE_INSTALL_CMDS
|
2017-07-05 13:14:19 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/mkpimage $(HOST_DIR)/bin/mkpimage
|
2015-10-20 13:32:19 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-generic-package))
|