From abc39863de55eb592c80d336f4de5c37111ddca0 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 13 Jan 2023 06:23:00 +0100 Subject: [PATCH] set release date --- edk2.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/edk2.spec b/edk2.spec index 92e5522..6242f59 100644 --- a/edk2.spec +++ b/edk2.spec @@ -8,7 +8,7 @@ # (such as ppc), so lets limit things to the known-good ones. ExclusiveArch: x86_64 aarch64 -# edk2-stable202205 +# edk2-stable202211 %define GITDATE 20221117 %define GITCOMMIT fff6d81270b5 %define TOOLCHAIN GCC5 @@ -309,13 +309,14 @@ build_iso() { export EXTRA_OPTFLAGS="%{optflags}" export EXTRA_LDFLAGS="%{__global_ldflags}" +export RELEASE_DATE="$(echo %{GITDATE} | sed -e 's|\(....\)\(..\)\(..\)|\2/\3/\1|')" touch OvmfPkg/AmdSev/Grub/grub.efi # dummy %if %{build_ovmf} %if %{defined rhel} -./edk2-build.py --config edk2-build.rhel-9 -m ovmf +./edk2-build.py --config edk2-build.rhel-9 --release-date "$RELEASE_DATE" -m ovmf virt-fw-vars --input RHEL-9/ovmf/OVMF_VARS.fd \ --output RHEL-9/ovmf/OVMF_VARS.secboot.fd \ --set-dbx DBXUpdate-20200729.x64.bin \ @@ -324,7 +325,7 @@ build_iso RHEL-9/ovmf %else -./edk2-build.py --config edk2-build.fedora -m ovmf +./edk2-build.py --config edk2-build.fedora --release-date "$RELEASE_DATE" -m ovmf virt-fw-vars --input Fedora/ovmf/OVMF_VARS.fd \ --output Fedora/ovmf/OVMF_VARS.secboot.fd \ --set-dbx DBXUpdate-20200729.x64.bin \ @@ -351,9 +352,9 @@ virt-fw-vars --input Fedora/experimental/OVMF.stateless.fd \ %if %{build_aarch64} %if %{defined rhel} -./edk2-build.py --config edk2-build.rhel-9 -m armvirt +./edk2-build.py --config edk2-build.rhel-9 --release-date "$RELEASE_DATE" -m armvirt %else -./edk2-build.py --config edk2-build.fedora -m armvirt +./edk2-build.py --config edk2-build.fedora --release-date "$RELEASE_DATE" -m armvirt %endif for raw in */aarch64/*.raw; do qcow2="${raw%.raw}.qcow2"