xref: /openbmc/qemu/pc-bios/meson.build (revision 8cbb4fc1)
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  ]
15
16  foreach f : fds
17    roms += custom_target(f,
18                  build_by_default: have_system,
19                  output: f,
20                  input: files('@0@.bz2'.format(f)),
21                  capture: true,
22                  install: get_option('install_blobs'),
23                  install_dir: qemu_datadir,
24                  command: [ bzip2, '-dc', '@INPUT0@' ])
25  endforeach
26endif
27
28blobs = [
29  'bios.bin',
30  'bios-256k.bin',
31  'bios-microvm.bin',
32  'qboot.rom',
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  'multiboot.bin',
63  'multiboot_dma.bin',
64  'linuxboot.bin',
65  'linuxboot_dma.bin',
66  'kvmvapic.bin',
67  'pvh.bin',
68  's390-ccw.img',
69  's390-netboot.img',
70  'slof.bin',
71  'skiboot.lid',
72  'palcode-clipper',
73  'u-boot.e500',
74  'u-boot-sam460-20100605.bin',
75  'qemu_vga.ndrv',
76  'edk2-licenses.txt',
77  'hppa-firmware.img',
78  'hppa-firmware64.img',
79  'opensbi-riscv32-generic-fw_dynamic.bin',
80  'opensbi-riscv64-generic-fw_dynamic.bin',
81  'npcm7xx_bootrom.bin',
82  'vof.bin',
83  'vof-nvram.bin',
84]
85
86dtc = find_program('dtc', required: false)
87foreach f : [
88  'bamboo.dts',
89  'canyonlands.dts',
90  'petalogix-s3adsp1800.dts',
91  'petalogix-ml605.dts',
92]
93  out = fs.replace_suffix(f, '.dtb')
94  if dtc.found()
95    custom_target(f,
96        build_by_default: have_system,
97        input: files(f),
98        output: out,
99        install: get_option('install_blobs'),
100        install_dir: qemu_datadir,
101        command: [ dtc, '-I', 'dts', '-O', 'dtb', '-o', '@OUTPUT@', '@INPUT0@' ])
102  else
103    blobs += out
104  endif
105endforeach
106
107if get_option('install_blobs')
108  install_data(blobs, install_dir: qemu_datadir)
109endif
110
111subdir('descriptors')
112subdir('keymaps')
113