[Buildroot] [PATCH v2 2/3] board/versal: change pdi filename to boot.pdi

Neal Frager neal.frager at amd.com
Mon Apr 7 15:29:10 UTC 2025


With the Segmented Configuration, the Versal PDI files will have new names:
<design>_boot.pdi - Minimal DDR and PS config for booting
<design>_pld.pdi - Remainder of FPGA design to be loaded at run-time

Since this will be the new default, this patch aligns the Buildroot file
naming by replacing the obscure vpl_gen_fixed.pdi filename with a simpler
boot.pdi filename.

Signed-off-by: Neal Frager <neal.frager at amd.com>
---
V1->V2:
- rebased due to changes in first patch of series
---
 board/versal/post-image.sh              |  2 +-
 boot/xilinx-prebuilt/xilinx-prebuilt.mk | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/board/versal/post-image.sh b/board/versal/post-image.sh
index 22367d5028..b5ce2e3f0c 100755
--- a/board/versal/post-image.sh
+++ b/board/versal/post-image.sh
@@ -17,7 +17,7 @@ cat <<-__HEADER_EOF > "${BINARIES_DIR}/bootgen.bif"
 	the_ROM_image:
 	{
 	  image {
-	    { type=bootimage, file=${BINARIES_DIR}/vpl_gen_fixed.pdi }
+	    { type=bootimage, file=${BINARIES_DIR}/boot.pdi }
 	    { type=bootloader, file=${BINARIES_DIR}/plm.elf }
 	    { core=psm, file=${BINARIES_DIR}/psmfw.elf }
 	  }
diff --git a/boot/xilinx-prebuilt/xilinx-prebuilt.mk b/boot/xilinx-prebuilt/xilinx-prebuilt.mk
index 448c71a3fb..e6817f4bd7 100644
--- a/boot/xilinx-prebuilt/xilinx-prebuilt.mk
+++ b/boot/xilinx-prebuilt/xilinx-prebuilt.mk
@@ -37,30 +37,30 @@ XILINX_PREBUILT_PLM = $(@D)/pdi_files/gen_files/plm.elf
 # psm*fw.elf is used.
 XILINX_PREBUILT_PSMFW = $(@D)/pdi_files/static_files/psm*fw.elf
 # We need the *.pdi glob, because the file has different names for the
-# different boards, and it has to be named vpl_gen_fixed.pdi when installed.
+# different boards, and it has to be named boot.pdi when installed.
 # If Segmented Configuration is used, there will be two pdi files and we need
 # the file that has "boot" in the filename.
 define XILINX_PREBUILT_INSTALL_VERSAL_XSA_BOOT_PDI
 	$(if $(wildcard $(@D)/*boot*.pdi),
 		$(INSTALL) -D -m 0755 $(@D)/*boot*.pdi \
-			$(BINARIES_DIR)/vpl_gen_fixed.pdi,
+			$(BINARIES_DIR)/boot.pdi,
 		$(INSTALL) -D -m 0755 $(@D)/*.pdi \
-			$(BINARIES_DIR)/vpl_gen_fixed.pdi
+			$(BINARIES_DIR)/boot.pdi
 	)
 endef
 else # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
 XILINX_PREBUILT_PLM = $(XILINX_PREBUILT_BOARD_DIR)/plm.elf
 XILINX_PREBUILT_PSMFW = $(XILINX_PREBUILT_BOARD_DIR)/psmfw.elf
 # We need the *.pdi glob, because the file has different names for the
-# different boards, and it has to be named vpl_gen_fixed.pdi when installed.
+# different boards, and it has to be named boot.pdi when installed.
 # If Segmented Configuration is used, there will be two pdi files and we need
 # the file that has "boot" in the filename.
 define XILINX_PREBUILT_INSTALL_VERSAL_BOOT_PDI
 	$(if $(wildcard $(XILINX_PREBUILT_BOARD_DIR)/*boot*.pdi),
 		$(INSTALL) -D -m 0755 $(XILINX_PREBUILT_BOARD_DIR)/*boot*.pdi \
-			$(BINARIES_DIR)/vpl_gen_fixed.pdi,
+			$(BINARIES_DIR)/boot.pdi,
 		$(INSTALL) -D -m 0755 $(XILINX_PREBUILT_BOARD_DIR)/*.pdi \
-			$(BINARIES_DIR)/vpl_gen_fixed.pdi
+			$(BINARIES_DIR)/boot.pdi
 	)
 endef
 endif # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
-- 
2.25.1



More information about the buildroot mailing list