| 1 | roms = [] |
| 2 | if unpack_edk2_blobs |
| 3 | fds = [ |
| 4 | 'edk2-aarch64-code.fd', |
| 5 | 'edk2-aarch64-vars.fd', |
| 6 | 'edk2-riscv64-code.fd', |
| 7 | 'edk2-riscv64-vars.fd', |
| 8 | 'edk2-x86_64-code.fd', |
| 9 | 'edk2-x86_64-secure-code.fd', |
| 10 | 'edk2-loongarch64-code.fd', |
| 11 | 'edk2-loongarch64-vars.fd', |
| 12 | ] |
| 13 | |
| 14 | foreach f : fds |
| 15 | roms += custom_target(f, |
| 16 | build_by_default: have_system, |
| 17 | output: f, |
| 18 | input: files('@0@.bz2'.format(f)), |
| 19 | capture: true, |
| 20 | install: get_option('install_blobs'), |
| 21 | install_dir: qemu_datadir, |
| 22 | command: [ bzip2, '-dc', '@INPUT0@' ]) |
| 23 | endforeach |
| 24 | endif |
| 25 | |
| 26 | blobs = [ |
| 27 | 'ast27x0_bootrom.bin', |
| 28 | 'bios.bin', |
| 29 | 'bios-256k.bin', |
| 30 | 'bios-microvm.bin', |
| 31 | 'qboot.rom', |
| 32 | 'vgabios.bin', |
| 33 | 'vgabios-cirrus.bin', |
| 34 | 'vgabios-stdvga.bin', |
| 35 | 'vgabios-vmware.bin', |
| 36 | 'vgabios-qxl.bin', |
| 37 | 'vgabios-virtio.bin', |
| 38 | 'vgabios-ramfb.bin', |
| 39 | 'vgabios-bochs-display.bin', |
| 40 | 'vgabios-ati.bin', |
| 41 | 'openbios-sparc32', |
| 42 | 'openbios-sparc64', |
| 43 | 'openbios-ppc', |
| 44 | 'QEMU,tcx.bin', |
| 45 | 'QEMU,cgthree.bin', |
| 46 | 'pxe-e1000.rom', |
| 47 | 'pxe-eepro100.rom', |
| 48 | 'pxe-ne2k_pci.rom', |
| 49 | 'pxe-pcnet.rom', |
| 50 | 'pxe-rtl8139.rom', |
| 51 | 'pxe-virtio.rom', |
| 52 | 'efi-e1000.rom', |
| 53 | 'efi-eepro100.rom', |
| 54 | 'efi-ne2k_pci.rom', |
| 55 | 'efi-pcnet.rom', |
| 56 | 'efi-rtl8139.rom', |
| 57 | 'efi-virtio.rom', |
| 58 | 'efi-e1000e.rom', |
| 59 | 'efi-vmxnet3.rom', |
| 60 | 'qemu-nsis.bmp', |
| 61 | 'multiboot_dma.bin', |
| 62 | 'linuxboot_dma.bin', |
| 63 | 'kvmvapic.bin', |
| 64 | 'pvh.bin', |
| 65 | 's390-ccw.img', |
| 66 | 'slof.bin', |
| 67 | 'skiboot.lid', |
| 68 | 'pnv-pnor.bin', |
| 69 | 'palcode-clipper', |
| 70 | 'u-boot.e500', |
| 71 | 'u-boot-sam460.bin', |
| 72 | 'qemu_vga.ndrv', |
| 73 | 'edk2-licenses.txt', |
| 74 | 'hppa-firmware.img', |
| 75 | 'hppa-firmware64.img', |
| 76 | 'opensbi-riscv32-generic-fw_dynamic.bin', |
| 77 | 'opensbi-riscv64-generic-fw_dynamic.bin', |
| 78 | 'npcm7xx_bootrom.bin', |
| 79 | 'npcm8xx_bootrom.bin', |
| 80 | 'vof.bin', |
| 81 | 'vof-nvram.bin', |
| 82 | ] |
| 83 | |
| 84 | if get_option('install_blobs') |
| 85 | install_data(blobs, install_dir: qemu_datadir, install_mode: 'rw-r--r--') |
| 86 | endif |
| 87 | |
| 88 | subdir('descriptors') |
| 89 | subdir('dtb') |
| 90 | subdir('keymaps') |