aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/meson.build
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-07-15 21:22:31 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 06:30:14 -0400
commitbdcbea7ae5cf04733465a900a3356ff998e965e3 (patch)
tree81ca17b7aaa00b0c04566aa24d95436d02e62a3a /pc-bios/meson.build
parent3f88565997791aa8de21c030bd2a391edfbd8d87 (diff)
downloadqemu-bdcbea7ae5cf04733465a900a3356ff998e965e3.zip
qemu-bdcbea7ae5cf04733465a900a3356ff998e965e3.tar.gz
qemu-bdcbea7ae5cf04733465a900a3356ff998e965e3.tar.bz2
meson: handle edk2 bios and descriptors
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'pc-bios/meson.build')
-rw-r--r--pc-bios/meson.build27
1 files changed, 27 insertions, 0 deletions
diff --git a/pc-bios/meson.build b/pc-bios/meson.build
new file mode 100644
index 0000000..6e3bfe3
--- /dev/null
+++ b/pc-bios/meson.build
@@ -0,0 +1,27 @@
+bzip2 = find_program('bzip2')
+
+install_blobs = 'INSTALL_BLOBS' in config_host
+if 'DECOMPRESS_EDK2_BLOBS' in config_host
+ fds = [
+ 'edk2-aarch64-code.fd',
+ 'edk2-arm-code.fd',
+ 'edk2-arm-vars.fd',
+ 'edk2-i386-code.fd',
+ 'edk2-i386-secure-code.fd',
+ 'edk2-i386-vars.fd',
+ 'edk2-x86_64-code.fd',
+ 'edk2-x86_64-secure-code.fd',
+ ]
+
+ foreach f : fds
+ custom_target(f,
+ output: f,
+ input: '@0@.bz2'.format(f),
+ capture: true,
+ install: install_blobs,
+ install_dir: config_host['qemu_datadir'],
+ command: [ bzip2, '-dc', '@INPUT0@' ])
+ endforeach
+endif
+
+subdir('descriptors')