kumquat-buildroot/package/mkpimage/mkpimage.mk
Jan Viktorin ea9797c846 mkpimage: new host package
The tool helps to create a working SPL to boot Altera SoC FPGA boards.

The code of mkpimage is integrated directly from the Barebox repository
as stated in the 'mkpimage.mk' file.

This tool is *NOT* necessary for any other boards so far.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Tested-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-03-22 23:41:40 +01:00

23 lines
699 B
Makefile

################################################################################
#
# mkpimage
#
################################################################################
# source included in the package
# came from barebox's repository:
# http://git.pengutronix.de/?p=barebox.git;a=blob;f=scripts/socfpga_mkimage.c;h=1a7a66d98841e9f52c3ea49c651286aa1412c9a5;hb=HEAD
HOST_MKPIMAGE_SOURCE =
HOST_MKPIMAGE_LICENSE = GPLv2
define HOST_MKPIMAGE_BUILD_CMDS
$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \
package/mkpimage/mkpimage.c -o $(@D)/mkpimage
endef
define HOST_MKPIMAGE_INSTALL_CMDS
$(INSTALL) -D -m 0755 $(@D)/mkpimage $(HOST_DIR)/usr/bin/mkpimage
endef
$(eval $(host-generic-package))