Make "%define build_ovmf 0" works on Fedora when testing
This commit is contained in:
parent
4f0dc9a19d
commit
6e680c0edf
11
edk2.spec
11
edk2.spec
@ -412,6 +412,7 @@ build ${CC_FLAGS} -a AARCH64 \
|
|||||||
|
|
||||||
|
|
||||||
%if %{defined fedora}
|
%if %{defined fedora}
|
||||||
|
%if %{build_ovmf}
|
||||||
# build microvm
|
# build microvm
|
||||||
build ${OVMF_FLAGS} -a X64 -p OvmfPkg/Microvm/MicrovmX64.dsc
|
build ${OVMF_FLAGS} -a X64 -p OvmfPkg/Microvm/MicrovmX64.dsc
|
||||||
|
|
||||||
@ -432,7 +433,8 @@ build_iso Build/OvmfIa32/DEBUG_%{TOOLCHAIN}/IA32
|
|||||||
mv Build/OvmfIa32/DEBUG_%{TOOLCHAIN}/IA32/UefiShell.iso ovmf-ia32
|
mv Build/OvmfIa32/DEBUG_%{TOOLCHAIN}/IA32/UefiShell.iso ovmf-ia32
|
||||||
cp -a Build/OvmfIa32/DEBUG_%{TOOLCHAIN}/IA32/Shell.efi ovmf-ia32
|
cp -a Build/OvmfIa32/DEBUG_%{TOOLCHAIN}/IA32/Shell.efi ovmf-ia32
|
||||||
cp -a Build/OvmfIa32/DEBUG_%{TOOLCHAIN}/IA32/EnrollDefaultKeys.efi ovmf-ia32
|
cp -a Build/OvmfIa32/DEBUG_%{TOOLCHAIN}/IA32/EnrollDefaultKeys.efi ovmf-ia32
|
||||||
|
# endif build_ovmf
|
||||||
|
%endif
|
||||||
|
|
||||||
# build ARMv7 firmware
|
# build ARMv7 firmware
|
||||||
mkdir -p arm
|
mkdir -p arm
|
||||||
@ -555,6 +557,7 @@ install -m 0644 edk2-aarch64-verbose.json \
|
|||||||
|
|
||||||
|
|
||||||
%if %{defined fedora}
|
%if %{defined fedora}
|
||||||
|
%if %{build_ovmf}
|
||||||
# install microvm
|
# install microvm
|
||||||
install -m 0644 Build/MicrovmX64/DEBUG_%{TOOLCHAIN}/FV/MICROVM.fd \
|
install -m 0644 Build/MicrovmX64/DEBUG_%{TOOLCHAIN}/FV/MICROVM.fd \
|
||||||
%{buildroot}%{_datadir}/%{name}/ovmf/MICROVM.fd
|
%{buildroot}%{_datadir}/%{name}/ovmf/MICROVM.fd
|
||||||
@ -572,7 +575,8 @@ cp -a ovmf-ia32 %{buildroot}%{_datadir}/%{name}
|
|||||||
for f in %{_sourcedir}/*edk2-ovmf-ia32*.json; do
|
for f in %{_sourcedir}/*edk2-ovmf-ia32*.json; do
|
||||||
install -pm 644 $f %{buildroot}/%{_datadir}/qemu/firmware
|
install -pm 644 $f %{buildroot}/%{_datadir}/qemu/firmware
|
||||||
done
|
done
|
||||||
|
# endif build_ovmf
|
||||||
|
%endif
|
||||||
|
|
||||||
# install arm32
|
# install arm32
|
||||||
cp -a arm %{buildroot}%{_datadir}/%{name}
|
cp -a arm %{buildroot}%{_datadir}/%{name}
|
||||||
@ -708,6 +712,7 @@ KERNEL_IMG=$(rpm -q -l $KERNEL_PKG | egrep '^/lib/modules/[^/]+/vmlinuz$')
|
|||||||
|
|
||||||
|
|
||||||
%if %{defined fedora}
|
%if %{defined fedora}
|
||||||
|
%if %{build_ovmf}
|
||||||
%files ovmf-ia32
|
%files ovmf-ia32
|
||||||
%common_files
|
%common_files
|
||||||
%dir %{_datadir}/%{name}/ovmf-ia32
|
%dir %{_datadir}/%{name}/ovmf-ia32
|
||||||
@ -722,7 +727,7 @@ KERNEL_IMG=$(rpm -q -l $KERNEL_PKG | egrep '^/lib/modules/[^/]+/vmlinuz$')
|
|||||||
%{_datadir}/qemu/firmware/40-edk2-ovmf-ia32-sb-enrolled.json
|
%{_datadir}/qemu/firmware/40-edk2-ovmf-ia32-sb-enrolled.json
|
||||||
%{_datadir}/qemu/firmware/50-edk2-ovmf-ia32-sb.json
|
%{_datadir}/qemu/firmware/50-edk2-ovmf-ia32-sb.json
|
||||||
%{_datadir}/qemu/firmware/60-edk2-ovmf-ia32.json
|
%{_datadir}/qemu/firmware/60-edk2-ovmf-ia32.json
|
||||||
|
%endif
|
||||||
|
|
||||||
%files arm
|
%files arm
|
||||||
%common_files
|
%common_files
|
||||||
|
Loading…
Reference in New Issue
Block a user