From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@buildroot.org
Cc: "Dick Olsson" <hi@senzilla.io>,
"Vincent Stehlé" <vincent.stehle@arm.com>,
"Cheng Yang" <yangcheng.work@foxmail.com>
Subject: [Buildroot] [PATCH v2 3/3] package/edk2-non-osi: add custom version option
Date: Sat, 21 Nov 2026 22:51:47 +0100 [thread overview]
Message-ID: <20261121215147.4121-3-angelo.compagnucci@gmail.com> (raw)
In-Reply-To: <20261121215147.4121-1-angelo.compagnucci@gmail.com>
From: Vincent Stehlé <vincent.stehle@arm.com>
Add a custom version option, to enable easily specifying an official EDK
II Non-OSI platforms version to use. This is similar to what is done in
other packages, such as linux, uboot, optee_os or arm-trusted-firmware.
Move the default version definition from edk2-non-osi makefile to the
config menu to support that. Also, we need to make edk2-non-osi appear
in the menu to allow selecting the version. We keep the same latest
version by default to preserve current behaviour.
Also, add a check of the custom version option validity in edk2-non-osi
makefile.
Skip the hash check for custom versions: the hash file only covers the
default version. optee-os and uboot do the same.
Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
Co-authored-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Tested-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
Changes v1 -> v2:
- rebase on master: the default version is now the edk2-non-osi
commit 7ac12d81e02b ("Remove Intel Platform and Silicon Packages"),
set by 2260627613cb ("boot/edk2: bump to version
edk2-stable202608")
- skip the hash check for custom versions, otherwise the download
fails with "No hash found"
Supersedes v1: https://patchwork.buildroot.org/project/buildroot/patch/20250411172944.1379043-4-vincent.stehle@arm.com/
package/edk2-non-osi/Config.in | 36 +++++++++++++++++++++++++++-
package/edk2-non-osi/edk2-non-osi.mk | 21 ++++++++++++++--
2 files changed, 54 insertions(+), 3 deletions(-)
diff --git a/package/edk2-non-osi/Config.in b/package/edk2-non-osi/Config.in
index 6c540c8a40..38467d63ba 100644
--- a/package/edk2-non-osi/Config.in
+++ b/package/edk2-non-osi/Config.in
@@ -1,5 +1,5 @@
config BR2_PACKAGE_EDK2_NON_OSI
- bool
+ bool "EDK2 Non-OSI platforms"
help
EDK2 description files for additional platforms, not
compatible with the normal licensing requirements.
@@ -9,3 +9,37 @@ config BR2_PACKAGE_EDK2_NON_OSI
Only the Marvell Armada files are copied at this point.
https://github.com/tianocore/edk2-non-osi
+
+if BR2_PACKAGE_EDK2_NON_OSI
+
+choice
+ prompt "EDK2 Non-OSI platforms version"
+ default BR2_PACKAGE_EDK2_NON_OSI_LATEST
+ help
+ Select the specific EDK2 Non-OSI platforms version you want
+ to use
+
+config BR2_PACKAGE_EDK2_NON_OSI_LATEST
+ # Keep in sync with latest commit as of the release date for boot/edk2
+ bool "7ac12d81e02b323bffdf1ef3c188ea33c2185c91"
+
+config BR2_PACKAGE_EDK2_NON_OSI_CUSTOM_VERSION
+ bool "Custom version"
+ help
+ This option allows to use a specific official version
+
+endchoice
+
+config BR2_PACKAGE_EDK2_NON_OSI_CUSTOM_VERSION_VALUE
+ string "EDK2 Non-OSI platforms version"
+ depends on BR2_PACKAGE_EDK2_NON_OSI_CUSTOM_VERSION
+
+config BR2_PACKAGE_EDK2_NON_OSI_VERSION
+ string
+ # Keep in sync with latest commit as of the release date for boot/edk2
+ default "7ac12d81e02b323bffdf1ef3c188ea33c2185c91" \
+ if BR2_PACKAGE_EDK2_NON_OSI_LATEST
+ default BR2_PACKAGE_EDK2_NON_OSI_CUSTOM_VERSION_VALUE \
+ if BR2_PACKAGE_EDK2_NON_OSI_CUSTOM_VERSION
+
+endif
diff --git a/package/edk2-non-osi/edk2-non-osi.mk b/package/edk2-non-osi/edk2-non-osi.mk
index 48b34bcdcd..26414f3e0d 100644
--- a/package/edk2-non-osi/edk2-non-osi.mk
+++ b/package/edk2-non-osi/edk2-non-osi.mk
@@ -4,12 +4,15 @@
#
################################################################################
-# Keep in sync with latest commit as of the release date for boot/edk2
-EDK2_NON_OSI_VERSION = 7ac12d81e02b323bffdf1ef3c188ea33c2185c91
+EDK2_NON_OSI_VERSION = $(call qstrip,$(BR2_PACKAGE_EDK2_NON_OSI_VERSION))
EDK2_NON_OSI_SITE = $(call github,tianocore,edk2-non-osi,$(EDK2_NON_OSI_VERSION))
EDK2_NON_OSI_INSTALL_TARGET = NO
EDK2_NON_OSI_INSTALL_STAGING = YES
+ifeq ($(BR2_PACKAGE_EDK2_NON_OSI):$(BR2_PACKAGE_EDK2_NON_OSI_LATEST),y:)
+BR_NO_CHECK_HASH_FOR += $(EDK2_NON_OSI_SOURCE)
+endif
+
# Copy Marvell Armada files
EDK2_NON_OSI_LICENSE += BSD-2-Clause-Patent (Marvell Armada)
EDK2_NON_OSI_LICENSE_FILES += Silicon/Marvell/Armada7k8k/DeviceTree/Armada80x0McBin.inf
@@ -24,4 +27,18 @@ define EDK2_NON_OSI_INSTALL_STAGING_CMDS
)
endef
+ifeq ($(BR2_PACKAGE_EDK2_NON_OSI)$(BR_BUILDING),yy)
+
+#
+# Check custom version option
+#
+ifeq ($(BR2_PACKAGE_EDK2_NON_OSI_CUSTOM_VERSION),y)
+ifeq ($(call qstrip,$(BR2_PACKAGE_EDK2_NON_OSI_CUSTOM_VERSION_VALUE)),)
+$(error No custom edk2-non-osi version specified. \
+ Check your BR2_PACKAGE_EDK2_NON_OSI_CUSTOM_VERSION_VALUE setting)
+endif
+endif
+
+endif # BR2_PACKAGE_EDK2_NON_OSI and BR_BUILDING
+
$(eval $(generic-package))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2026-11-21 21:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-11 17:29 [Buildroot] [PATCH 0/3] add custom version options for all three edk2 packages Vincent Stehlé
2025-04-11 17:29 ` [Buildroot] [PATCH 1/3] boot/edk2: add custom version option Vincent Stehlé
2025-04-11 17:29 ` [Buildroot] [PATCH 2/3] package/edk2-platforms: " Vincent Stehlé
2025-04-11 17:29 ` [Buildroot] [PATCH 3/3] package/edk2-non-osi: " Vincent Stehlé
2026-11-21 21:51 ` [Buildroot] [PATCH v2 1/3] boot/edk2: " Angelo Compagnucci
2026-11-21 21:51 ` [Buildroot] [PATCH v2 2/3] package/edk2-platforms: " Angelo Compagnucci
2026-11-21 21:51 ` Angelo Compagnucci [this message]
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=20261121215147.4121-3-angelo.compagnucci@gmail.com \
--to=angelo.compagnucci@gmail.com \
--cc=buildroot@buildroot.org \
--cc=hi@senzilla.io \
--cc=vincent.stehle@arm.com \
--cc=yangcheng.work@foxmail.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