All of lore.kernel.org
 help / color / mirror / Atom feed
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 v4 2/4] package/xen: add custom version support
Date: Mon, 3 Aug 2026 15:51:42 +0100	[thread overview]
Message-ID: <20260803145152.102135-2-neal.frager@amd.com> (raw)
In-Reply-To: <20260803145152.102135-1-neal.frager@amd.com>

Add the ability to configure specific Xen versions while leaving the default
version unchanged to avoid breaking any builds already using Xen 4.21.1.

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

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>

---
V1->V2:
- rebased to updated master branch
- removed the line move of the XEN_SITE definition
V2->V4:
- merged into new patch series as the second patch
---
 package/xen/Config.in | 25 +++++++++++++++++++++++++
 package/xen/xen.mk    |  2 +-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/package/xen/Config.in b/package/xen/Config.in
index d63a3f6002..e50b232f0a 100644
--- a/package/xen/Config.in
+++ b/package/xen/Config.in
@@ -10,6 +10,31 @@ config BR2_PACKAGE_XEN
 
 if BR2_PACKAGE_XEN
 
+choice
+	prompt "Xen Version"
+	help
+	  Select the specific Xen version you want to use
+
+config BR2_PACKAGE_XEN_LATEST_VERSION
+	bool "4.21.1"
+
+config BR2_PACKAGE_XEN_CUSTOM_VERSION
+	bool "Custom version"
+	help
+	  This option allows to use a specific official version
+
+endchoice
+
+config BR2_PACKAGE_XEN_CUSTOM_VERSION_VALUE
+	string "Xen version"
+	depends on BR2_PACKAGE_XEN_CUSTOM_VERSION
+
+config BR2_PACKAGE_XEN_VERSION
+	string
+	default "4.21.1"	if BR2_PACKAGE_XEN_LATEST_VERSION
+	default BR2_PACKAGE_XEN_CUSTOM_VERSION_VALUE \
+				if BR2_PACKAGE_XEN_CUSTOM_VERSION
+
 config BR2_PACKAGE_XEN_HYPERVISOR
 	bool "Xen hypervisor"
 	help
diff --git a/package/xen/xen.mk b/package/xen/xen.mk
index 75252d1123..51d51333ac 100644
--- a/package/xen/xen.mk
+++ b/package/xen/xen.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-XEN_VERSION = 4.21.1
+XEN_VERSION = $(call qstrip,$(BR2_PACKAGE_XEN_VERSION))
 XEN_SITE = https://downloads.xenproject.org/release/xen/$(XEN_VERSION)
 XEN_SELINUX_MODULES = systemd udev xen
 XEN_LICENSE = GPL-2.0
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-08-03 14:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-03 14:51 [Buildroot] [PATCH v4 1/4] package/xen: fix build error when BR2_PACKAGE_XEN_TOOLS not enabled Neal Frager via buildroot
2026-08-03 14:51 ` Neal Frager via buildroot [this message]
2026-08-03 15:21   ` [Buildroot] [EXTERNAL] [PATCH v4 2/4] package/xen: add custom version support Weber (US), Matthew L via buildroot
2026-08-03 15:39     ` Frager, Neal via buildroot
2026-08-03 16:52       ` Weber (US), Matthew L via buildroot
2026-08-24 12:41   ` [Buildroot] " Stewart Hildebrand via buildroot
2026-08-24 13:15     ` Frager, Neal via buildroot
2026-08-03 14:51 ` [Buildroot] [PATCH v4 3/4] package/xen: add custom tarball support Neal Frager via buildroot
2026-08-25  8:37   ` Stewart Hildebrand via buildroot
2026-08-26  6:19     ` Frager, Neal via buildroot
2026-08-03 14:51 ` [Buildroot] [PATCH v4 4/4] package/xen: add custom git support Neal Frager via buildroot
2026-08-25 14:20   ` Stewart Hildebrand via buildroot
2026-08-24 10:41 ` [Buildroot] [PATCH v4 1/4] package/xen: fix build error when BR2_PACKAGE_XEN_TOOLS not enabled Stewart Hildebrand via buildroot
2026-08-26  5:14   ` Frager, Neal 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=20260803145152.102135-2-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 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.