split code/vars builds for riscv

This commit is contained in:
Gerd Hoffmann 2023-09-05 13:41:15 +02:00
parent 1f9774d792
commit 05b86525bb
2 changed files with 12 additions and 4 deletions

View File

@ -196,9 +196,12 @@ conf = OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc
arch = RISCV64 arch = RISCV64
plat = RiscVVirtQemu plat = RiscVVirtQemu
dest = Fedora/riscv dest = Fedora/riscv
cpy1 = FV/RISCV_VIRT.fd cpy1 = FV/RISCV_VIRT_CODE.fd
cpy2 = FV/RISCV_VIRT.fd RISCV_VIRT.raw cpy2 = FV/RISCV_VIRT_CODE.fd RISCV_VIRT_CODE.raw
pad1 = RISCV_VIRT.raw 32m cpy3 = FV/RISCV_VIRT_VARS.fd
cpy4 = FV/RISCV_VIRT_VARS.fd RISCV_VIRT_VARS.raw
pad1 = RISCV_VIRT_CODE.raw 32m
pad2 = RISCV_VIRT_VARS.raw 32m
##################################################################### #####################################################################

View File

@ -426,6 +426,11 @@ done
%if %{build_riscv64} %if %{build_riscv64}
./edk2-build.py --config edk2-build.fedora --silent --release-date "$RELEASE_DATE" -m riscv ./edk2-build.py --config edk2-build.fedora --silent --release-date "$RELEASE_DATE" -m riscv
./edk2-build.py --config edk2-build.fedora.platforms --silent -m riscv ./edk2-build.py --config edk2-build.fedora.platforms --silent -m riscv
for raw in */riscv/*.raw; do
qcow2="${raw%.raw}.qcow2"
qemu-img convert -f raw -O qcow2 -o cluster_size=4096 -S 4096 "$raw" "$qcow2"
rm -f "$raw"
done
%endif %endif
%install %install
@ -688,7 +693,7 @@ done
%files riscv64 %files riscv64
%common_files %common_files
%{_datadir}/%{name}/riscv/*.fd %{_datadir}/%{name}/riscv/*.fd
%{_datadir}/%{name}/riscv/*.raw %{_datadir}/%{name}/riscv/*.qcow2
%files ext4 %files ext4
%common_files %common_files