Skip to contentSkip to conversation

package/bootgen: bump to xilinx_v2025.2

PATCH In review Neal Frager via buildroot 2 participants 2 messages Nov 25, 2025 – Nov 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/bootgen: bump to xilinx_v2025.2

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.

Upstream: submitted to Xilinx bootgen repo with CR-1256741

---
V1->V2:
- Added patch for fixing missing stdio.h header file.

---
 ...x-build-on-machines-with-modern-flex.patch | 72 -------------------
 ...sigs-hss_param.c-add-stdio.h-include.patch | 50 +++++++++++++
 package/bootgen/bootgen.hash                  |  2 +-
 package/bootgen/bootgen.mk                    |  2 +-
 4 files changed, 52 insertions(+), 74 deletions(-)
 delete mode 100644 package/bootgen/0001-bisonflex-Fix-build-on-machines-with-modern-flex.patch
 create mode 100644 package/bootgen/0001-lms-hash-sigs-hss_param.c-add-stdio.h-include.patch
package/bootgen/0001-bisonflex-Fix-build-on-machines-with-modern-flex.patch deleted +0 -72
deleted file mode 100644
index 817fee195e..0000000000
@@ -1,72 +0,0 @@
-From e7e341b7ba6fa9fb875718e8740b03c2041278e8 Mon Sep 17 00:00:00 2001
-From: Neal Frager <[email protected]>
-Date: Mon, 2 Jun 2025 12:09:13 +0100
-Subject: [PATCH] bisonflex: Fix build on machines with modern flex
-
-With bootgen 2025.1, the directory structure was re-done.  In the process of
-doing this, the source files in the bisonflex directory lost the fix below
-which had been applied on an earlier version of bootgen:
-
-Bootgen embeds an old version of flex, but uses the system include syntax
-(#include <>) to reference it, causing conflicts on systems with the
-development headers for a modern flex version installed, leading to build
-issues like:
-
-../bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()':
-../bisonflex/bif.yy.cpp:1608:18: error: no match for 'operator=' (operand types are 'std::istream' {aka 'std::basic_istream'} and 'std::istream*' {aka 'std::basic_istream*'})
-
-Fix it by using normal local #include statements by:
-
-sed -i 's/<FlexLexer.h>/"../win_include/FlexLexer.h"/g' *
-
-Upstream: submitted to AMD internal jira process
-
-Signed-off-by: Neal Frager <[email protected]>
----
- bisonflex/bif.yy.cpp        | 2 +-
- bisonflex/cmdoptions.yy.cpp | 2 +-
- bisonflex/reginit.yy.cpp    | 2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/bisonflex/bif.yy.cpp b/bisonflex/bif.yy.cpp
-index 8d4d364..35f0aa5 100755
---- a/bisonflex/bif.yy.cpp
-+++ b/bisonflex/bif.yy.cpp
-@@ -379,7 +379,7 @@ typedef unsigned char YY_CHAR;
- 
- #define yytext_ptr yytext
- 
--#include <FlexLexer.h>
-+#include "../win_include/FlexLexer.h"
- 
- int yyFlexLexer::yywrap() { return 1; }
- int yyFlexLexer::yylex()
-diff --git a/bisonflex/cmdoptions.yy.cpp b/bisonflex/cmdoptions.yy.cpp
-index 661d7f3..a76ac81 100755
---- a/bisonflex/cmdoptions.yy.cpp
-+++ b/bisonflex/cmdoptions.yy.cpp
-@@ -379,7 +379,7 @@ typedef unsigned char YY_CHAR;
- 
- #define yytext_ptr yytext
- 
--#include <FlexLexer.h>
-+#include "../win_include/FlexLexer.h"
- 
- int yyFlexLexer::yywrap() { return 1; }
- int yyFlexLexer::yylex()
-diff --git a/bisonflex/reginit.yy.cpp b/bisonflex/reginit.yy.cpp
-index d830734..dede473 100755
---- a/bisonflex/reginit.yy.cpp
-+++ b/bisonflex/reginit.yy.cpp
-@@ -379,7 +379,7 @@ typedef unsigned char YY_CHAR;
- 
- #define yytext_ptr yytext
- 
--#include <FlexLexer.h>
-+#include "../win_include/FlexLexer.h"
- 
- int yyFlexLexer::yywrap() { return 1; }
- int yyFlexLexer::yylex()
--- 
-2.25.1
-
package/bootgen/0001-lms-hash-sigs-hss_param.c-add-stdio.h-include.patch new file +50 -0

50 lines not on this page · raw message

package/bootgen/bootgen.hash +1 -1
index 7670a5d1ee..995074c591 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  3de43a331e10b2a8079d4681ad72cef4884bc3a09250d3d80811d677f3ffe560  bootgen-xilinx_v2025.1.tar.gz
+sha256  c92d9be48fabc943c4addd9b12beced6671f5547b4f6dc01e7ccf0f274dbef66  bootgen-xilinx_v2025.2.tar.gz
 sha256  36e278ff2cc9ef95154a923bf4a9450414f358779045ae4f863c8d77fb18dbdb  LICENSE
package/bootgen/bootgen.mk +1 -1
index 939872b29c..e5cfee18d9 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-BOOTGEN_VERSION = xilinx_v2025.1
+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
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 33 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Neal" == Neal Frager <[email protected]> writes:

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.

Quoted 7 lines

Upstream: submitted to Xilinx bootgen repo with CR-1256741

---
V1-> V2:
- Added patch for fixing missing stdio.h header file.

Committed to next after adding the Upstream: tag to the patch file itself to make check-package happy, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot