From: Neal Frager via buildroot <buildroot@buildroot.org>
To: <buildroot@buildroot.org>
Cc: alistair@alistair23.me, stefano.stabellini@amd.com,
ibai.erkiaga-elorza@amd.com, luca.ceresoli@bootlin.com,
micheal.saleab@amd.com, yann.morin@orange.com,
matthew.l.weber3@boeing.com,
Matthew Weber <mathew.l.weber3@boeing.com>,
brandon.maier@collins.com, john.ernberg@actia.se,
brian.j.wood2@boeing.com, ju.o@free.fr,
stewart.hildebrand@amd.com, thomas.petazzoni@bootlin.com,
romain.naour@smile.fr, michal.simek@amd.com,
romain.naour@gmail.com, Neal Frager <neal.frager@amd.com>
Subject: [Buildroot] [PATCH v5 4/4] package/xen: add custom git support
Date: Wed, 26 Aug 2026 07:46:49 +0100 [thread overview]
Message-ID: <20260826064649.292291-4-neal.frager@amd.com> (raw)
In-Reply-To: <20260826064649.292291-1-neal.frager@amd.com>
For completeness, add custom git support to match the capabilities of other
packages such as Linux, uboot or ATF.
To test this feature, use the following configs to test latest release of the
Xilinx Xen vendor tree.
To test:
BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y
BR2_PACKAGE_XEN=y
BR2_PACKAGE_XEN_CUSTOM_GIT=y
BR2_PACKAGE_XEN_CUSTOM_REPO_URL="https://github.com/Xilinx/xen.git"
BR2_PACKAGE_XEN_CUSTOM_REPO_VERSION="xlnx-rebase-v4.21_2026.1"
Add to package/xen/xen.hash:
sha256 e8016e81627fe3b4fca5463723428606cd3750c7fd76a3cfaa0b0d0e7cd9b32b xen-xlnx-rebase-v4.21_2026.1-git4.tar.gz
Signed-off-by: Neal Frager <neal.frager@amd.com>
Tested-by: Matthew Weber <mathew.l.weber3@boeing.com>
Prior test details: https://gist.github.com/matthew-l-weber/c17f14a3793ccee440a383e4177ff3db
Reviewed-by: John Ernberg <john.ernberg@actia.se>
Reviewed-by: Stewart Hildebrand <stewart.hildebrand@amd.com>
Tested-by: Stewart Hildebrand <stewart.hildebrand@amd.com>
Tested on VEK385 Evaluation Board
---
V1->V2:
- rebased to updated master branch
V2->V4:
- merged into new patch series as the fourth patch
V4->V5:
- updated commit message to use release tag name for test
- added error message in case no version specified
---
package/xen/Config.in | 18 ++++++++++++++++++
package/xen/xen.mk | 12 ++++++++++++
2 files changed, 30 insertions(+)
diff --git a/package/xen/Config.in b/package/xen/Config.in
index 3726504334..eb58c6928f 100644
--- a/package/xen/Config.in
+++ b/package/xen/Config.in
@@ -26,6 +26,9 @@ config BR2_PACKAGE_XEN_CUSTOM_VERSION
config BR2_PACKAGE_XEN_CUSTOM_TARBALL
bool "Custom tarball"
+config BR2_PACKAGE_XEN_CUSTOM_GIT
+ bool "Custom Git repository"
+
endchoice
if BR2_PACKAGE_XEN_CUSTOM_TARBALL
@@ -45,6 +48,21 @@ config BR2_PACKAGE_XEN_VERSION
default BR2_PACKAGE_XEN_CUSTOM_VERSION_VALUE \
if BR2_PACKAGE_XEN_CUSTOM_VERSION
default "custom" if BR2_PACKAGE_XEN_CUSTOM_TARBALL
+ default BR2_PACKAGE_XEN_CUSTOM_REPO_VERSION \
+ if BR2_PACKAGE_XEN_CUSTOM_GIT
+
+if BR2_PACKAGE_XEN_CUSTOM_GIT
+
+config BR2_PACKAGE_XEN_CUSTOM_REPO_URL
+ string "URL of custom repository"
+
+config BR2_PACKAGE_XEN_CUSTOM_REPO_VERSION
+ string "Custom repository version"
+ help
+ Revision to use in the typical format used by Git
+ E.G. a sha id, a tag, ..
+
+endif
config BR2_PACKAGE_XEN_HYPERVISOR
bool "Xen hypervisor"
diff --git a/package/xen/xen.mk b/package/xen/xen.mk
index 473f0e23fa..4ecf56ab49 100644
--- a/package/xen/xen.mk
+++ b/package/xen/xen.mk
@@ -23,6 +23,9 @@ ifeq ($(BR2_PACKAGE_XEN_CUSTOM_TARBALL),y)
XEN_TARBALL = $(call qstrip,$(BR2_PACKAGE_XEN_CUSTOM_TARBALL_LOCATION))
XEN_SITE = $(patsubst %/,%,$(dir $(XEN_TARBALL)))
XEN_SOURCE = $(notdir $(XEN_TARBALL))
+else ifeq ($(BR2_PACKAGE_XEN_CUSTOM_GIT),y)
+XEN_SITE = $(call qstrip,$(BR2_PACKAGE_XEN_CUSTOM_REPO_URL))
+XEN_SITE_METHOD = git
else
# Handle stable official Xen versions
XEN_SITE = https://downloads.xenproject.org/release/xen/$(XEN_VERSION)
@@ -106,4 +109,13 @@ $(error No tarball location specified. Please check BR2_PACKAGE_XEN_CUSTOM_TARBA
endif
endif
+ifeq ($(BR2_PACKAGE_XEN_CUSTOM_GIT),y)
+ifeq ($(call qstrip,$(BR2_PACKAGE_XEN_CUSTOM_REPO_URL)),)
+$(error No repository specified. Please check BR2_PACKAGE_XEN_CUSTOM_REPO_URL)
+endif
+ifeq ($(call qstrip,$(BR2_PACKAGE_XEN_CUSTOM_REPO_VERSION)),)
+$(error No version specified. Please check BR2_PACKAGE_XEN_CUSTOM_REPO_VERSION)
+endif
+endif
+
$(eval $(autotools-package))
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-08-26 6:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 6:46 [Buildroot] [PATCH v5 1/4] package/xen: fix build error when BR2_PACKAGE_XEN_TOOLS not enabled Neal Frager via buildroot
2026-08-26 6:46 ` [Buildroot] [PATCH v5 2/4] package/xen: add custom version support Neal Frager via buildroot
2026-08-27 0:45 ` Matthew Weber
2026-08-26 6:46 ` [Buildroot] [PATCH v5 3/4] package/xen: add custom tarball support Neal Frager via buildroot
2026-08-27 0:46 ` Matthew Weber
2026-08-28 10:45 ` Stewart Hildebrand via buildroot
2026-08-26 6:46 ` Neal Frager via buildroot [this message]
2026-08-27 0:47 ` [Buildroot] [PATCH v5 4/4] package/xen: add custom git support Matthew Weber
2026-08-27 0:43 ` [Buildroot] [PATCH v5 1/4] package/xen: fix build error when BR2_PACKAGE_XEN_TOOLS not enabled Matthew Weber
2026-08-28 10:36 ` Stewart Hildebrand via buildroot
2026-09-11 5:21 ` Frager, Neal via buildroot
2026-09-16 6:51 ` Peter Korsgaard
2026-09-25 14:43 ` Raphaël Mélotte via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260826064649.292291-4-neal.frager@amd.com \
--to=buildroot@buildroot.org \
--cc=alistair@alistair23.me \
--cc=brandon.maier@collins.com \
--cc=brian.j.wood2@boeing.com \
--cc=ibai.erkiaga-elorza@amd.com \
--cc=john.ernberg@actia.se \
--cc=ju.o@free.fr \
--cc=luca.ceresoli@bootlin.com \
--cc=mathew.l.weber3@boeing.com \
--cc=matthew.l.weber3@boeing.com \
--cc=michal.simek@amd.com \
--cc=micheal.saleab@amd.com \
--cc=neal.frager@amd.com \
--cc=romain.naour@gmail.com \
--cc=romain.naour@smile.fr \
--cc=stefano.stabellini@amd.com \
--cc=stewart.hildebrand@amd.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin@orange.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox