kumquat-buildroot/package/bootgen/bootgen.mk
Neal Frager 08a0dea25f package/bootgen: add bootgen host package
This patch adds Xilinx bootgen as a host package to buildroot.
bootgen is a required utility for generating a boot.bin for
Xilinx versal products.

In addition, for developers who wish to use secure boot with
Xilinx SoC products such as zynq and zynqmp, bootgen has a
more complete offering in secure boot features than the u-boot
mkimage utility.

https://github.com/Xilinx/bootgen

Signed-off-by: Neal Frager <neal.frager@amd.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-10-23 19:21:12 +02:00

26 lines
819 B
Makefile

################################################################################
#
# bootgen
#
################################################################################
BOOTGEN_VERSION = xilinx_v2022.2
BOOTGEN_SITE = $(call github,Xilinx,bootgen,$(BOOTGEN_VERSION))
HOST_BOOTGEN_DEPENDENCIES = host-openssl host-pkgconf
BOOTGEN_LICENSE = Apache-2.0
BOOTGEN_LICENSE_FILES = LICENSE
define HOST_BOOTGEN_BUILD_CMDS
$(MAKE) $(HOST_CONFIGURE_OPTS) \
LIBS="`$(HOST_MAKE_ENV) $(PKG_CONFIG_HOST_BINARY) --libs libssl libcrypto`" \
INCLUDE_USER="`$(HOST_MAKE_ENV) $(PKG_CONFIG_HOST_BINARY) --cflags libssl libcrypto`" \
CXXFLAGS="$(HOST_CXXFLAGS) -std=c++0x" \
-C $(@D)
endef
define HOST_BOOTGEN_INSTALL_CMDS
$(INSTALL) -m 0755 -D $(@D)/bootgen $(HOST_DIR)/bin/bootgen
endef
$(eval $(host-generic-package))