2021-09-23 13:55:29 +03:00
|
|
|
roms = []
|
2021-09-23 13:55:28 +03:00
|
|
|
if unpack_edk2_blobs
|
2019-07-15 20:22:31 +03:00
|
|
|
fds = [
|
|
|
|
'edk2-aarch64-code.fd',
|
|
|
|
'edk2-arm-code.fd',
|
|
|
|
'edk2-arm-vars.fd',
|
|
|
|
'edk2-i386-code.fd',
|
|
|
|
'edk2-i386-secure-code.fd',
|
|
|
|
'edk2-i386-vars.fd',
|
|
|
|
'edk2-x86_64-code.fd',
|
|
|
|
'edk2-x86_64-secure-code.fd',
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach f : fds
|
2021-09-23 13:55:29 +03:00
|
|
|
roms += custom_target(f,
|
2021-01-22 23:44:32 +03:00
|
|
|
build_by_default: have_system,
|
2019-07-15 20:22:31 +03:00
|
|
|
output: f,
|
2021-11-08 12:45:30 +03:00
|
|
|
input: files('@0@.bz2'.format(f)),
|
2019-07-15 20:22:31 +03:00
|
|
|
capture: true,
|
2020-10-16 10:32:52 +03:00
|
|
|
install: get_option('install_blobs'),
|
2020-08-26 14:04:16 +03:00
|
|
|
install_dir: qemu_datadir,
|
2019-07-15 20:22:31 +03:00
|
|
|
command: [ bzip2, '-dc', '@INPUT0@' ])
|
|
|
|
endforeach
|
|
|
|
endif
|
|
|
|
|
2022-05-27 18:35:46 +03:00
|
|
|
blobs = [
|
2020-08-26 16:06:17 +03:00
|
|
|
'bios.bin',
|
|
|
|
'bios-256k.bin',
|
2020-09-15 15:08:51 +03:00
|
|
|
'bios-microvm.bin',
|
2020-09-15 15:08:49 +03:00
|
|
|
'qboot.rom',
|
2020-08-26 16:06:17 +03:00
|
|
|
'vgabios.bin',
|
|
|
|
'vgabios-cirrus.bin',
|
|
|
|
'vgabios-stdvga.bin',
|
|
|
|
'vgabios-vmware.bin',
|
|
|
|
'vgabios-qxl.bin',
|
|
|
|
'vgabios-virtio.bin',
|
|
|
|
'vgabios-ramfb.bin',
|
|
|
|
'vgabios-bochs-display.bin',
|
|
|
|
'vgabios-ati.bin',
|
|
|
|
'openbios-sparc32',
|
|
|
|
'openbios-sparc64',
|
|
|
|
'openbios-ppc',
|
|
|
|
'QEMU,tcx.bin',
|
|
|
|
'QEMU,cgthree.bin',
|
|
|
|
'pxe-e1000.rom',
|
|
|
|
'pxe-eepro100.rom',
|
|
|
|
'pxe-ne2k_pci.rom',
|
|
|
|
'pxe-pcnet.rom',
|
|
|
|
'pxe-rtl8139.rom',
|
|
|
|
'pxe-virtio.rom',
|
|
|
|
'efi-e1000.rom',
|
|
|
|
'efi-eepro100.rom',
|
|
|
|
'efi-ne2k_pci.rom',
|
|
|
|
'efi-pcnet.rom',
|
|
|
|
'efi-rtl8139.rom',
|
|
|
|
'efi-virtio.rom',
|
|
|
|
'efi-e1000e.rom',
|
|
|
|
'efi-vmxnet3.rom',
|
|
|
|
'qemu-nsis.bmp',
|
|
|
|
'multiboot.bin',
|
2021-10-20 15:55:04 +03:00
|
|
|
'multiboot_dma.bin',
|
2020-08-26 16:06:17 +03:00
|
|
|
'linuxboot.bin',
|
|
|
|
'linuxboot_dma.bin',
|
|
|
|
'kvmvapic.bin',
|
|
|
|
'pvh.bin',
|
|
|
|
's390-ccw.img',
|
|
|
|
's390-netboot.img',
|
|
|
|
'slof.bin',
|
|
|
|
'skiboot.lid',
|
|
|
|
'palcode-clipper',
|
|
|
|
'u-boot.e500',
|
|
|
|
'u-boot-sam460-20100605.bin',
|
|
|
|
'qemu_vga.ndrv',
|
|
|
|
'edk2-licenses.txt',
|
|
|
|
'hppa-firmware.img',
|
2024-03-03 00:27:01 +03:00
|
|
|
'hppa-firmware64.img',
|
2020-08-26 16:06:17 +03:00
|
|
|
'opensbi-riscv32-generic-fw_dynamic.bin',
|
|
|
|
'opensbi-riscv64-generic-fw_dynamic.bin',
|
2020-09-11 08:20:53 +03:00
|
|
|
'npcm7xx_bootrom.bin',
|
2022-02-09 11:08:56 +03:00
|
|
|
'vof.bin',
|
|
|
|
'vof-nvram.bin',
|
2022-05-27 18:35:46 +03:00
|
|
|
]
|
2020-08-26 16:06:17 +03:00
|
|
|
|
2023-08-28 12:43:06 +03:00
|
|
|
dtc = find_program('dtc', required: false)
|
|
|
|
foreach f : [
|
|
|
|
'bamboo.dts',
|
|
|
|
'canyonlands.dts',
|
|
|
|
'petalogix-s3adsp1800.dts',
|
|
|
|
'petalogix-ml605.dts',
|
|
|
|
]
|
|
|
|
out = fs.replace_suffix(f, '.dtb')
|
|
|
|
if dtc.found()
|
|
|
|
custom_target(f,
|
|
|
|
build_by_default: have_system,
|
|
|
|
input: files(f),
|
|
|
|
output: out,
|
|
|
|
install: get_option('install_blobs'),
|
|
|
|
install_dir: qemu_datadir,
|
|
|
|
command: [ dtc, '-I', 'dts', '-O', 'dtb', '-o', '@OUTPUT@', '@INPUT0@' ])
|
|
|
|
else
|
|
|
|
blobs += out
|
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
2022-06-24 17:50:38 +03:00
|
|
|
if get_option('install_blobs')
|
|
|
|
install_data(blobs, install_dir: qemu_datadir)
|
|
|
|
endif
|
2020-08-26 16:06:17 +03:00
|
|
|
|
2019-07-15 20:22:31 +03:00
|
|
|
subdir('descriptors')
|
2019-09-19 19:24:43 +03:00
|
|
|
subdir('keymaps')
|