Rename them to match what qemu expects
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Jun 2023 15:16:17 +0000 (16:16 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 6 Jun 2023 15:16:17 +0000 (16:16 +0100)
qemu is expecting names like 'opensbi-riscv64-generic-fw_dynamic.bin'
so if we're going to rename them, might as well use the name that qemu
expects.

opensbi/opensbi.spec

index 8fe7739..1ec15cb 100644 (file)
@@ -73,7 +73,7 @@ mkdir build32 build64
   INSTALL_FIRMWARE_PATH=%{_datadir}/%{name}
 pushd %{buildroot}%{_datadir}/%{name}/generic/firmware
 for f in fw_*.bin fw_*.elf; do
-  mv $f riscv32_$f
+  mv $f opensbi-riscv32-generic-$f
 done
 popd
 
@@ -87,7 +87,7 @@ popd
   INSTALL_FIRMWARE_PATH=%{_datadir}/%{name}
 pushd %{buildroot}%{_datadir}/%{name}/generic/firmware
 for f in fw_*.bin fw_*.elf; do
-  mv $f riscv64_$f
+  mv $f opensbi-riscv64-generic-$f
 done
 popd