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