set release date
This commit is contained in:
parent
e70e465253
commit
abc39863de
11
edk2.spec
11
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"
|
||||
|
Loading…
Reference in New Issue
Block a user