Marc-André Lureau | bdcbea7 | 2019-07-15 21:22:31 +0400 | [diff] [blame] | 1 | bzip2 = find_program('bzip2') |
| 2 | |
| 3 | install_blobs = 'INSTALL_BLOBS' in config_host |
| 4 | if 'DECOMPRESS_EDK2_BLOBS' in config_host |
| 5 | fds = [ |
| 6 | 'edk2-aarch64-code.fd', |
| 7 | 'edk2-arm-code.fd', |
| 8 | 'edk2-arm-vars.fd', |
| 9 | 'edk2-i386-code.fd', |
| 10 | 'edk2-i386-secure-code.fd', |
| 11 | 'edk2-i386-vars.fd', |
| 12 | 'edk2-x86_64-code.fd', |
| 13 | 'edk2-x86_64-secure-code.fd', |
| 14 | ] |
| 15 | |
| 16 | foreach f : fds |
| 17 | custom_target(f, |
| 18 | output: f, |
| 19 | input: '@0@.bz2'.format(f), |
| 20 | capture: true, |
| 21 | install: install_blobs, |
Marc-André Lureau | ab4c099 | 2020-08-26 15:04:16 +0400 | [diff] [blame] | 22 | install_dir: qemu_datadir, |
Marc-André Lureau | bdcbea7 | 2019-07-15 21:22:31 +0400 | [diff] [blame] | 23 | command: [ bzip2, '-dc', '@INPUT0@' ]) |
| 24 | endforeach |
| 25 | endif |
| 26 | |
Marc-André Lureau | b17cf89 | 2020-08-26 17:06:17 +0400 | [diff] [blame] | 27 | blobs = files( |
| 28 | 'bios.bin', |
| 29 | 'bios-256k.bin', |
| 30 | 'bios-microvm.bin', |
| 31 | 'sgabios.bin', |
| 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 | 'bamboo.dtb', |
| 62 | 'canyonlands.dtb', |
| 63 | 'petalogix-s3adsp1800.dtb', |
| 64 | 'petalogix-ml605.dtb', |
| 65 | 'multiboot.bin', |
| 66 | 'linuxboot.bin', |
| 67 | 'linuxboot_dma.bin', |
| 68 | 'kvmvapic.bin', |
| 69 | 'pvh.bin', |
| 70 | 's390-ccw.img', |
| 71 | 's390-netboot.img', |
| 72 | 'slof.bin', |
| 73 | 'skiboot.lid', |
| 74 | 'palcode-clipper', |
| 75 | 'u-boot.e500', |
| 76 | 'u-boot-sam460-20100605.bin', |
| 77 | 'qemu_vga.ndrv', |
| 78 | 'edk2-licenses.txt', |
| 79 | 'hppa-firmware.img', |
| 80 | 'opensbi-riscv32-generic-fw_dynamic.bin', |
| 81 | 'opensbi-riscv64-generic-fw_dynamic.bin', |
| 82 | 'opensbi-riscv32-generic-fw_dynamic.elf', |
| 83 | 'opensbi-riscv64-generic-fw_dynamic.elf', |
Havard Skinnemoen | d1cb5ed | 2020-09-10 22:20:53 -0700 | [diff] [blame] | 84 | 'npcm7xx_bootrom.bin', |
Marc-André Lureau | b17cf89 | 2020-08-26 17:06:17 +0400 | [diff] [blame] | 85 | ) |
| 86 | |
| 87 | if install_blobs |
| 88 | install_data(blobs, install_dir: config_host['qemu_datadir']) |
| 89 | endif |
| 90 | |
Marc-André Lureau | bdcbea7 | 2019-07-15 21:22:31 +0400 | [diff] [blame] | 91 | subdir('descriptors') |
Marc-André Lureau | 2874246 | 2019-09-19 20:24:43 +0400 | [diff] [blame] | 92 | subdir('keymaps') |