xref: /openbmc/qemu/pc-bios/meson.build (revision 700784bf)
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  'slof.bin',
72  'skiboot.lid',
73  'palcode-clipper',
74  'u-boot.e500',
75  'u-boot-sam460-20100605.bin',
76  'qemu_vga.ndrv',
77  'edk2-licenses.txt',
78  'hppa-firmware.img',
79  'hppa-firmware64.img',
80  'opensbi-riscv32-generic-fw_dynamic.bin',
81  'opensbi-riscv64-generic-fw_dynamic.bin',
82  'npcm7xx_bootrom.bin',
83  'vof.bin',
84  'vof-nvram.bin',
85]
86
87dtc = find_program('dtc', required: false)
88foreach f : [
89  'bamboo.dts',
90  'canyonlands.dts',
91  'petalogix-s3adsp1800.dts',
92  'petalogix-ml605.dts',
93]
94  out = fs.replace_suffix(f, '.dtb')
95  if dtc.found()
96    custom_target(f,
97        build_by_default: have_system,
98        input: files(f),
99        output: out,
100        install: get_option('install_blobs'),
101        install_dir: qemu_datadir,
102        command: [ dtc, '-I', 'dts', '-O', 'dtb', '-o', '@OUTPUT@', '@INPUT0@' ])
103  else
104    blobs += out
105  endif
106endforeach
107
108if get_option('install_blobs')
109  install_data(blobs, install_dir: qemu_datadir)
110endif
111
112subdir('descriptors')
113subdir('keymaps')
114