meson: convert pc-bios/keymaps/Makefile
[qemu/ar7.git] / pc-bios / meson.build
blobb6389f5148d20bb6c46781f47b2847b9e4182b66
1 bzip2 = find_program('bzip2')
3 install_blobs = 'INSTALL_BLOBS' in config_host
4 if '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   ]
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
25 endif
27 subdir('descriptors')
28 subdir('keymaps')