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