1roms = [] 2if unpack_edk2_blobs 3 fds = [ 4 'edk2-aarch64-code.fd', 5 'edk2-arm-code.fd', 6 'edk2-arm-vars.fd', 7 'edk2-i386-code.fd', 8 'edk2-i386-secure-code.fd', 9 'edk2-i386-vars.fd', 10 'edk2-x86_64-code.fd', 11 'edk2-x86_64-secure-code.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 24endif 25 26blobs = [ 27 'bios.bin', 28 'bios-256k.bin', 29 'bios-microvm.bin', 30 'qboot.rom', 31 'vgabios.bin', 32 'vgabios-cirrus.bin', 33 'vgabios-stdvga.bin', 34 'vgabios-vmware.bin', 35 'vgabios-qxl.bin', 36 'vgabios-virtio.bin', 37 'vgabios-ramfb.bin', 38 'vgabios-bochs-display.bin', 39 'vgabios-ati.bin', 40 'openbios-sparc32', 41 'openbios-sparc64', 42 'openbios-ppc', 43 'QEMU,tcx.bin', 44 'QEMU,cgthree.bin', 45 'pxe-e1000.rom', 46 'pxe-eepro100.rom', 47 'pxe-ne2k_pci.rom', 48 'pxe-pcnet.rom', 49 'pxe-rtl8139.rom', 50 'pxe-virtio.rom', 51 'efi-e1000.rom', 52 'efi-eepro100.rom', 53 'efi-ne2k_pci.rom', 54 'efi-pcnet.rom', 55 'efi-rtl8139.rom', 56 'efi-virtio.rom', 57 'efi-e1000e.rom', 58 'efi-vmxnet3.rom', 59 'qemu-nsis.bmp', 60 'multiboot.bin', 61 'multiboot_dma.bin', 62 'linuxboot.bin', 63 'linuxboot_dma.bin', 64 'kvmvapic.bin', 65 'pvh.bin', 66 's390-ccw.img', 67 's390-netboot.img', 68 'slof.bin', 69 'skiboot.lid', 70 'palcode-clipper', 71 'u-boot.e500', 72 'u-boot-sam460-20100605.bin', 73 'qemu_vga.ndrv', 74 'edk2-licenses.txt', 75 'hppa-firmware.img', 76 'hppa-firmware64.img', 77 'opensbi-riscv32-generic-fw_dynamic.bin', 78 'opensbi-riscv64-generic-fw_dynamic.bin', 79 'npcm7xx_bootrom.bin', 80 'vof.bin', 81 'vof-nvram.bin', 82] 83 84dtc = find_program('dtc', required: false) 85foreach f : [ 86 'bamboo.dts', 87 'canyonlands.dts', 88 'petalogix-s3adsp1800.dts', 89 'petalogix-ml605.dts', 90] 91 out = fs.replace_suffix(f, '.dtb') 92 if dtc.found() 93 custom_target(f, 94 build_by_default: have_system, 95 input: files(f), 96 output: out, 97 install: get_option('install_blobs'), 98 install_dir: qemu_datadir, 99 command: [ dtc, '-I', 'dts', '-O', 'dtb', '-o', '@OUTPUT@', '@INPUT0@' ]) 100 else 101 blobs += out 102 endif 103endforeach 104 105if get_option('install_blobs') 106 install_data(blobs, install_dir: qemu_datadir) 107endif 108 109subdir('descriptors') 110subdir('keymaps') 111