* [Buildroot] [PATCH v2 1/1] boot/xilinx-prebuilt: add local versal xsa support
@ 2025-10-27 13:18 Neal Frager via buildroot
2025-10-28 8:05 ` Luca Ceresoli via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Neal Frager via buildroot @ 2025-10-27 13:18 UTC (permalink / raw)
To: buildroot
Cc: ibai.erkiaga-elorza, luca.ceresoli, yann.morin, brandon.maier,
ju.o, Neal Frager, thomas.petazzoni, romain.naour, michal.simek,
romain.naour
Most of the time, users will be running Vivado on their local host machine,
and will generate a XSA (Xilinx Shell Archive) locally.
Instead of requiring users to create a URL location for their XSA file,
this patch improves ease of use by allowing users to work directly with
just a path on the local host machine.
BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA_LOCATION can thus be defined as either
a simple local location or a URL location for the XSA file.
In either case, a hash for the XSA file needs to be added to the
boot/xilinx-prebuilt/xilinx-prebuilt.hash when using this option.
Signed-off-by: Neal Frager <neal.frager@amd.com>
---
V1->V2:
- updated help text for using a simple local path
---
boot/xilinx-prebuilt/Config.in | 6 +++---
boot/xilinx-prebuilt/xilinx-prebuilt.mk | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/boot/xilinx-prebuilt/Config.in b/boot/xilinx-prebuilt/Config.in
index b218458ba5..1ca0cb06f9 100644
--- a/boot/xilinx-prebuilt/Config.in
+++ b/boot/xilinx-prebuilt/Config.in
@@ -60,9 +60,9 @@ config BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA_LOCATION
file. This URL can use any protocol recognized by Buildroot,
like http://, ftp://, file:// or scp://.
- When pointing to a local XSA using file://, you may want to
- use a make variable like $(TOPDIR) to reference the root of
- the Buildroot tree.
+ When pointing to a local XSA using file:// or simply the
+ local path, you may want to use a make variable like
+ $(TOPDIR) to reference the root of the Buildroot tree.
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
diff --git a/boot/xilinx-prebuilt/xilinx-prebuilt.mk b/boot/xilinx-prebuilt/xilinx-prebuilt.mk
index 95b656cdde..a7ec9abff5 100644
--- a/boot/xilinx-prebuilt/xilinx-prebuilt.mk
+++ b/boot/xilinx-prebuilt/xilinx-prebuilt.mk
@@ -10,6 +10,9 @@ ifeq ($(BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA),y)
XILINX_PREBUILT_FILE = $(call qstrip,$(BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA_LOCATION))
XILINX_PREBUILT_SITE = $(patsubst %/,%,$(dir $(XILINX_PREBUILT_FILE)))
XILINX_PREBUILT_SOURCE = $(notdir $(XILINX_PREBUILT_FILE))
+ifeq ($(findstring ://,$(XILINX_PREBUILT_FILE)),)
+XILINX_PREBUILT_SITE_METHOD = file
+endif
define XILINX_PREBUILT_EXTRACT_CMDS
$(UNZIP) $(XILINX_PREBUILT_DL_DIR)/$(XILINX_PREBUILT_SOURCE) -d $(@D)
endef
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] boot/xilinx-prebuilt: add local versal xsa support
2025-10-27 13:18 [Buildroot] [PATCH v2 1/1] boot/xilinx-prebuilt: add local versal xsa support Neal Frager via buildroot
@ 2025-10-28 8:05 ` Luca Ceresoli via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Luca Ceresoli via buildroot @ 2025-10-28 8:05 UTC (permalink / raw)
To: Neal Frager, buildroot
Cc: ibai.erkiaga-elorza, yann.morin, brandon.maier, ju.o,
thomas.petazzoni, romain.naour, michal.simek, romain.naour
On Mon Oct 27, 2025 at 2:18 PM CET, Neal Frager wrote:
> Most of the time, users will be running Vivado on their local host machine,
> and will generate a XSA (Xilinx Shell Archive) locally.
>
> Instead of requiring users to create a URL location for their XSA file,
> this patch improves ease of use by allowing users to work directly with
> just a path on the local host machine.
>
> BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA_LOCATION can thus be defined as either
> a simple local location or a URL location for the XSA file.
>
> In either case, a hash for the XSA file needs to be added to the
> boot/xilinx-prebuilt/xilinx-prebuilt.hash when using this option.
>
> Signed-off-by: Neal Frager <neal.frager@amd.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-28 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 13:18 [Buildroot] [PATCH v2 1/1] boot/xilinx-prebuilt: add local versal xsa support Neal Frager via buildroot
2025-10-28 8:05 ` Luca Ceresoli via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.