]> git.proxmox.com Git - mirror_qemu.git/blobdiff - pc-bios/meson.build
hw/char: riscv_htif: Drop {to, from}host_size in HTIFState
[mirror_qemu.git] / pc-bios / meson.build
index b6389f5148d20bb6c46781f47b2847b9e4182b66..388e0db6e4035192bd2439ca2195b27efc3a8f71 100644 (file)
@@ -1,7 +1,5 @@
-bzip2 = find_program('bzip2')
-
-install_blobs = 'INSTALL_BLOBS' in config_host
-if 'DECOMPRESS_EDK2_BLOBS' in config_host
+roms = []
+if unpack_edk2_blobs
   fds = [
     'edk2-aarch64-code.fd',
     'edk2-arm-code.fd',
@@ -14,15 +12,82 @@ if 'DECOMPRESS_EDK2_BLOBS' in config_host
   ]
 
   foreach f : fds
-    custom_target(f,
+    roms += custom_target(f,
+                  build_by_default: have_system,
                   output: f,
-                  input: '@0@.bz2'.format(f),
+                  input: files('@0@.bz2'.format(f)),
                   capture: true,
-                  install: install_blobs,
-                  install_dir: config_host['qemu_datadir'],
+                  install: get_option('install_blobs'),
+                  install_dir: qemu_datadir,
                   command: [ bzip2, '-dc', '@INPUT0@' ])
   endforeach
 endif
 
+blobs = [
+  'bios.bin',
+  'bios-256k.bin',
+  'bios-microvm.bin',
+  'qboot.rom',
+  'sgabios.bin',
+  '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',
+  'bamboo.dtb',
+  'canyonlands.dtb',
+  'petalogix-s3adsp1800.dtb',
+  'petalogix-ml605.dtb',
+  'multiboot.bin',
+  'multiboot_dma.bin',
+  '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',
+  'opensbi-riscv32-generic-fw_dynamic.bin',
+  'opensbi-riscv64-generic-fw_dynamic.bin',
+  'npcm7xx_bootrom.bin',
+  'vof.bin',
+  'vof-nvram.bin',
+]
+
+if get_option('install_blobs')
+  install_data(blobs, install_dir: qemu_datadir)
+endif
+
 subdir('descriptors')
 subdir('keymaps')