1roms = [] 2if unpack_edk2_blobs 3 fds = [ 4 'edk2-aarch64-code.fd', 5 'edk2-arm-code.fd', 6 'edk2-arm-vars.fd', 7 'edk2-riscv-code.fd', 8 'edk2-riscv-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 'edk2-loongarch64-code.fd', 15 'edk2-loongarch64-vars.fd', 16 ] 17 18 foreach f : fds 19 roms += custom_target(f, 20 build_by_default: have_system, 21 output: f, 22 input: files('@0@.bz2'.format(f)), 23 capture: true, 24 install: get_option('install_blobs'), 25 install_dir: qemu_datadir, 26 command: [ bzip2, '-dc', '@INPUT0@' ]) 27 endforeach 28endif 29 30blobs = [ 31 'bios.bin', 32 'bios-256k.bin', 33 'bios-microvm.bin', 34 'qboot.rom', 35 'vgabios.bin', 36 'vgabios-cirrus.bin', 37 'vgabios-stdvga.bin', 38 'vgabios-vmware.bin', 39 'vgabios-qxl.bin', 40 'vgabios-virtio.bin', 41 'vgabios-ramfb.bin', 42 'vgabios-bochs-display.bin', 43 'vgabios-ati.bin', 44 'openbios-sparc32', 45 'openbios-sparc64', 46 'openbios-ppc', 47 'QEMU,tcx.bin', 48 'QEMU,cgthree.bin', 49 'pxe-e1000.rom', 50 'pxe-eepro100.rom', 51 'pxe-ne2k_pci.rom', 52 'pxe-pcnet.rom', 53 'pxe-rtl8139.rom', 54 'pxe-virtio.rom', 55 'efi-e1000.rom', 56 'efi-eepro100.rom', 57 'efi-ne2k_pci.rom', 58 'efi-pcnet.rom', 59 'efi-rtl8139.rom', 60 'efi-virtio.rom', 61 'efi-e1000e.rom', 62 'efi-vmxnet3.rom', 63 'qemu-nsis.bmp', 64 'multiboot.bin', 65 'multiboot_dma.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 'hppa-firmware64.img', 81 'opensbi-riscv32-generic-fw_dynamic.bin', 82 'opensbi-riscv64-generic-fw_dynamic.bin', 83 'npcm7xx_bootrom.bin', 84 'vof.bin', 85 'vof-nvram.bin', 86] 87 88dtc = find_program('dtc', required: false) 89foreach f : [ 90 'bamboo.dts', 91 'canyonlands.dts', 92 'petalogix-s3adsp1800.dts', 93 'petalogix-ml605.dts', 94] 95 out = fs.replace_suffix(f, '.dtb') 96 if dtc.found() 97 custom_target(f, 98 build_by_default: have_system, 99 input: files(f), 100 output: out, 101 install: get_option('install_blobs'), 102 install_dir: qemu_datadir, 103 command: [ dtc, '-I', 'dts', '-O', 'dtb', '-o', '@OUTPUT@', '@INPUT0@' ]) 104 else 105 blobs += out 106 endif 107endforeach 108 109if get_option('install_blobs') 110 install_data(blobs, install_dir: qemu_datadir) 111endif 112 113subdir('descriptors') 114subdir('keymaps') 115