[Buildroot] [PATCH v2 1/1] boot/xilinx-prebuilt: simplify family logic

Luca Ceresoli luca.ceresoli at bootlin.com
Tue Sep 30 16:33:59 UTC 2025


On Tue, 30 Sep 2025 13:58:23 +0100
Neal Frager <neal.frager at amd.com> wrote:

> Currently, the xilinx-prebuilt package uses an if-then-else statement for
> deciding which files need to be installed from the xilinx-prebuilt repo. This
> works fine for now because there are really only two options, either versal or
> zynqmp/kria.
> 
> Starting with the xilinx_v2025.2 release, the versal2 family along with the
> vek385 board will be added to Buildroot and thus the xilinx-prebuilt package
> as well. In the future, additional families will also probably be added to
> this package.
> 
> To avoid creating a long if-then-else-then-else statement which will only grow
> in complexity over time, simplify the logic of the xilinx-prebuilt package by
> giving each xilinx family its own if statement. In the long term, this will
> make the xilinx-prebuilt package easier to understand and maintain.
> 
> For this reason, this patch moves the zynqmp/kria families from the "else"
> statement to having an if statement separate from the versal family.
> 
> Signed-off-by: Neal Frager <neal.frager at amd.com>

Reviewed-by: Luca Ceresoli <luca.ceresoli at bootlin.com>

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list