Re: [Buildroot] [PATCH v1 1/1] package/bootgen: fix build issue if host-flex already built

Frager, Neal via buildroot
2026-03-18T16:12:28Z

[AMD Official Use Only - AMD Internal Distribution Only]

> Fix a silent build issue with the host-bootgen package if host-flex is already
> built. The host-flex package will install a version of the flexlexer.h header
> file that is not compatible with the version embedded in bootgen.

> While the build will still 'succeed', the binary will not be correct. This
> can be seen by just running the binary that is built. By default, running
> bootgen without any parameters should print the help menu, but if the wrong
> version of flexlexer.h is used, it will print the following instead:

> $ output/host/bin/bootgen

> ****** Bootgen v2025.1-Merged
> **** Build date : Mar 18 2026-07:08:01
> ** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved.
> ** Copyright 2022-2025 Advanced Micro Devices, Inc. All Rights Reserved.

> ERROR: syntax error
> -h

> Add a patch to the bootgen package that corrects the issue.

> Upstream: CR to AMD jira

> Signed-off-by: Neal Frager <neal.frager@amd.com>

Hey Neal.

That fixes it. Nice job. Please add my Tested-by if you wish.

-Steve

Tested-by: Steven J. Hill steven.hill@collins.com