4a23826f48
Bump bootgen to xilinx_v2025.2 version. The 0001-bisonflex-Fix-build-on-machines-with-modern-flex.patch is no longer needed because it has been committed upstream and included with the xilinx_v2025.2 version. https://github.com/Xilinx/bootgen/commit/0471f084b05769143ea9e73f9c44b075fe40c801 The 0001-lms-hash-sigs-hss_param.c-add-stdio.h-include.patch has now been added to the package to fix the following potential build error: The lms-hash-sigs/hss_param.c is missing an include of stdio.h. Without it, the following build error can occur: hss_param.c: In function ‘hss_get_parameter_set’: hss_param.c:157:13: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 157 | printf("Private key expired\n"); | ^~~~~~ hss_param.c:7:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ 6 | #include "lm_common.h" +++ |+#include <stdio.h> 7 | hss_param.c:157:13: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] 157 | printf("Private key expired\n"); | ^~~~~~ hss_param.c:157:13: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ make[3]: *** [Makefile:38: hss_param.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:84: build/bin/bootgen] Error 2 The above error was reported on Debian 13 / gcc 14.2.0. Reported-by: Peter Korsgaard <peter@korsgaard.com> Upstream: submitted to Xilinx bootgen repo with CR-1256741 Signed-off-by: Neal Frager <neal.frager@amd.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
26 lines
829 B
Makefile
26 lines
829 B
Makefile
################################################################################
|
|
#
|
|
# bootgen
|
|
#
|
|
################################################################################
|
|
|
|
BOOTGEN_VERSION = xilinx_v2025.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)/build/bin/bootgen $(HOST_DIR)/bin/bootgen
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|