nsis: Install *.elf images
PATCH 1/1 nsis: Install *.elf images
As of today, the QEMU Windows installer does not include the following two RISC-V BIOS images:
- opensbi-riscv64-generic-fw_dynamic.elf
- opensbi-riscv32-generic-fw_dynamic.elf
Update the installer script to include them.
---
Based on:
https://repo.or.cz/qemu/ar7.git/commit/657a6a90b69da971afdc71501c30275ba307ff6c
The above commit does not land on QEMU master. I am not sure what the process is, sending it here for comments.
qemu.nsi | 2 ++ 1 file changed, 2 insertions(+)
qemu.nsi +2 -0
@@ -142,6 +142,7 @@ Section "${PRODUCT}" QEMU_System_File_Section_Description File "${DATADIR}\*.bin" File "${DATADIR}\*.dtb" + File "${DATADIR}\*.elf" File "${DATADIR}\*.fd" File "${DATADIR}\*.img" File "${DATADIR}\*.lid"
@@ -258,6 +259,7 @@ Section "Uninstall" Uninstall_Section_Description Delete "$INSTDIR\*.bin" Delete "$INSTDIR\*.dll" Delete "$INSTDIR\*.dtb" + Delete "$INSTDIR\*.elf" Delete "$INSTDIR\*.fd" Delete "$INSTDIR\*.img" Delete "$INSTDIR\*.lid"
Signature · 1 line
2.25.1
Quoted 9 lines · Bin Meng
As of today, the QEMU Windows installer does not include the following two RISC-V BIOS images:
- opensbi-riscv64-generic-fw_dynamic.elf
- opensbi-riscv32-generic-fw_dynamic.elfUpdate the installer script to include them.
Signed-off-by Bin Meng <[email protected]>
Following this series' idea:
https://www.mail-archive.com/[email protected]/msg794466.html
"blobs: Only install required (system emulation) files"
Maybe we can use meson + cpp with C #ifdef'ry (including config-host.h + meson definitions) to generate qemu.nsi with only required blobs?
Quoted 31 lines
---
Based on:
https://repo.or.cz/qemu/ar7.git/commit/657a6a90b69da971afdc71501c30275ba307ff6cThe above commit does not land on QEMU master. I am not sure what the process is, sending it here for comments.
qemu.nsi | 2 ++ 1 file changed, 2 insertions(+)qemu.nsi +2
-0@@ -142,6 +142,7 @@ Section "${PRODUCT}" QEMU_System_File_Section_Description File "${DATADIR}\*.bin" File "${DATADIR}\*.dtb" + File "${DATADIR}\*.elf" File "${DATADIR}\*.fd" File "${DATADIR}\*.img" File "${DATADIR}\*.lid"@@ -258,6 +259,7 @@ Section "Uninstall" Uninstall_Section_Description Delete "$INSTDIR\*.bin" Delete "$INSTDIR\*.dll" Delete "$INSTDIR\*.dtb" + Delete "$INSTDIR\*.elf" Delete "$INSTDIR\*.fd" Delete "$INSTDIR\*.img" Delete "$INSTDIR\*.lid"
Quoted 10 lines · Bin Meng
As of today, the QEMU Windows installer does not include the following two RISC-V BIOS images:
- opensbi-riscv64-generic-fw_dynamic.elf
- opensbi-riscv32-generic-fw_dynamic.elfUpdate the installer script to include them.
Signed-off-by Bin Meng <[email protected]>
Alistair
Quoted 35 lines
---
Based on:
https://repo.or.cz/qemu/ar7.git/commit/657a6a90b69da971afdc71501c30275ba307ff6cThe above commit does not land on QEMU master. I am not sure what the process is, sending it here for comments.
qemu.nsi | 2 ++ 1 file changed, 2 insertions(+)qemu.nsi +2
-1@@ -142,6 +142,7 @@ Section "${PRODUCT}" QEMU_System_File_Section_Description File "${DATADIR}\*.bin" File "${DATADIR}\*.dtb" + File "${DATADIR}\*.elf" File "${DATADIR}\*.fd" File "${DATADIR}\*.img" File "${DATADIR}\*.lid"@@ -258,6 +259,7 @@ Section "Uninstall" Uninstall_Section_Description Delete "$INSTDIR\*.bin" Delete "$INSTDIR\*.dll" Delete "$INSTDIR\*.dtb" + Delete "$INSTDIR\*.elf" Delete "$INSTDIR\*.fd" Delete "$INSTDIR\*.img" Delete "$INSTDIR\*.lid" --2.25.1
Quoted 15 lines · Bin Meng
As of today, the QEMU Windows installer does not include the following two RISC-V BIOS images:
- opensbi-riscv64-generic-fw_dynamic.elf
- opensbi-riscv32-generic-fw_dynamic.elfUpdate the installer script to include them.
Signed-off-by Bin Meng <[email protected]>---
Based on:
https://repo.or.cz/qemu/ar7.git/commit/657a6a90b69da971afdc71501c30275ba307ff6c
Quoted 5 lines
The above commit does not land on QEMU master. I am not sure what the process is, sending it here for comments.
qemu.nsi | 2 ++ 1 file changed, 2 insertions(+)
Ping?
Stefan Weil
Reviewed-byAm 06.04.21 um 11:04 schrieb Bin Meng:
Quoted 15 lines · Bin Meng
Quoted 14 lines
As of today, the QEMU Windows installer does not include the following two RISC-V BIOS images:
- opensbi-riscv64-generic-fw_dynamic.elf
- opensbi-riscv32-generic-fw_dynamic.elfUpdate the installer script to include them.
Signed-off-by Bin Meng <[email protected]>---
Based on:
https://repo.or.cz/qemu/ar7.git/commit/657a6a90b69da971afdc71501c30275ba307ff6c
Quoted 6 lines
Quoted 5 lines
The above commit does not land on QEMU master. I am not sure what the process is, sending it here for comments.
qemu.nsi | 2 ++ 1 file changed, 2 insertions(+)Ping?
This is a small uncritical fix which can be merged via QEMU trivial.
As Philippe already mentioned, a more advanced solution would only install the required binaries, but typically the NSIS installer is built with all system emulations, so it requires all available blobs. Thererfore the current solution is fine for now.
Regards,
Stefan
Le 06/04/2021 à 11:28, Stefan Weil a écrit :
Quoted 20 lines
Am 06.04.21 um 11:04 schrieb Bin Meng:
Quoted 18 lines · Bin Meng
Quoted 17 lines
As of today, the QEMU Windows installer does not include the following two RISC-V BIOS images:
- opensbi-riscv64-generic-fw_dynamic.elf
- opensbi-riscv32-generic-fw_dynamic.elfUpdate the installer script to include them.
Signed-off-by Bin Meng <[email protected]>---
Based on:
https://repo.or.cz/qemu/ar7.git/commit/657a6a90b69da971afdc71501c30275ba307ff6cThe above commit does not land on QEMU master. I am not sure what the process is, sending it here for comments.
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines
qemu.nsi | 2 ++
1 file changed, 2 insertions(+)Ping?
Reviewed-by Stefan Weil <[email protected]>This is a small uncritical fix which can be merged via QEMU trivial.
If it is merged via QEMU trivial, it will be after the 6.0 release. If it's needed for 6.0 it's better to go via the maintainer tree (W32,W64) [1]
Thanks,
Laurent
[1] the reason is: even a trivial change can break something, I don't like to break QEMU during RC phase, so going via the maintainer tree helps to have tests more relevant to the area that is modified.
Hi Stefan,
Quoted 27 lines · Laurent Vivier
Quoted 25 lines · Stefan Weil
Am 06.04.21 um 11:04 schrieb Bin Meng:
Quoted 21 lines · Bin Meng
Quoted 14 lines
As of today, the QEMU Windows installer does not include the following two RISC-V BIOS images:
- opensbi-riscv64-generic-fw_dynamic.elf
- opensbi-riscv32-generic-fw_dynamic.elfUpdate the installer script to include them.
Signed-off-by Bin Meng <[email protected]>---
Based on:
https://repo.or.cz/qemu/ar7.git/commit/657a6a90b69da971afdc71501c30275ba307ff6cQuoted 5 lines
The above commit does not land on QEMU master. I am not sure what the process is, sending it here for comments.
qemu.nsi | 2 ++ 1 file changed, 2 insertions(+)Ping?
Quoted 6 lines
Quoted 3 lines
Reviewed-by Stefan Weil <[email protected]>This is a small uncritical fix which can be merged via QEMU trivial.
If it is merged via QEMU trivial, it will be after the 6.0 release. If it's needed for 6.0 it's better to go via the maintainer tree (W32,W64) [1]
I think this should go in 6.0.
But as I mentioned that the patch is based on
https://repo.or.cz/qemu/ar7.git/commit/657a6a90b69da971afdc71501c30275ba307ff6c
which is not in the QEMU mainline yet.
Is QEMU Windows installer fork (https://repo.or.cz/qemu/ar7.git/) not supposed to merge back to QEMU mainline?
Regards,
Bin