xref: /qemu/pc-bios/meson.build (revision 7c58bb76)
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: config_host['qemu_datadir'],
23                  command: [ bzip2, '-dc', '@INPUT0@' ])
24  endforeach
25endif
26
27subdir('descriptors')
28