Subject: QEMU installs 216 MiB of firmwares

From: Maxim Cournoyer <[email-masked]>
Date: Tue, 18 Mar 2025 14:58:00 +0900

Hi,

Our 'qemu' package currently bundles a vast amount of UEFI and other
firmwares (216 MiB), see:

--8<---------------cut here---------------start------------->8---
$ du -sh /gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu
 216M	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu
--8<---------------cut here---------------end--------------->8---

Ideally we should unbundle at least the EDK2 UEFI firmwares at least,
which are quite large:

--8<---------------cut here---------------start------------->8---
$ du -s /gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/* | sort -rn
65536	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/edk2-arm-code.fd
65536	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/edk2-aarch64-code.fd
32768	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/edk2-riscv-vars.fd
32768	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/edk2-riscv-code.fd
3568	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/edk2-x86_64-secure-code.fd
3568	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/edk2-x86_64-code.fd
3568	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/edk2-i386-secure-code.fd
3568	/gnu/store/zgyb8wa7ac1s3m9fprcm3qgfklam7ify-qemu-9.1.3/share/qemu/edk2-i386-code.fd
--8<---------------cut here---------------end--------------->8---

-- 
Thanks,
Maxim