[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 01/13] blobs: Use Meson source_set to store blob files
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 01/13] blobs: Use Meson source_set to store blob files |
Date: |
Tue, 23 Mar 2021 16:51:20 +0100 |
As we want to conditionally install blob files,
declare them using a source set.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
pc-bios/meson.build | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/pc-bios/meson.build b/pc-bios/meson.build
index f2b32598af7..1c4074bcb0d 100644
--- a/pc-bios/meson.build
+++ b/pc-bios/meson.build
@@ -1,3 +1,5 @@
+blobs_ss = ss.source_set()
+
if install_edk2_blobs
fds = [
'edk2-aarch64-code.fd',
@@ -22,7 +24,7 @@
endforeach
endif
-blobs = files(
+blobs_ss.add(files(
'bios.bin',
'bios-256k.bin',
'bios-microvm.bin',
@@ -81,10 +83,12 @@
'opensbi-riscv32-generic-fw_dynamic.elf',
'opensbi-riscv64-generic-fw_dynamic.elf',
'npcm7xx_bootrom.bin',
-)
+))
+
+blobs_ss = blobs_ss.apply(config_host, strict: false)
if get_option('install_blobs')
- install_data(blobs, install_dir: qemu_datadir)
+ install_data(blobs_ss.sources(), install_dir: qemu_datadir)
endif
subdir('descriptors')
--
2.26.2
- [RFC PATCH 00/13] blobs: Only install required (system emulation) files, Philippe Mathieu-Daudé, 2021/03/23
- [RFC PATCH 01/13] blobs: Use Meson source_set to store blob files,
Philippe Mathieu-Daudé <=
- [RFC PATCH 02/13] blobs: Only install EDK2 license file if EDK2 blobs are installed, Philippe Mathieu-Daudé, 2021/03/23
- [RFC PATCH 03/13] blobs: Only install qemu-nsis.bmp on Windows host, Philippe Mathieu-Daudé, 2021/03/23
- [RFC PATCH 04/13] blobs: Only install PALcode blob if alpha system target is built, Philippe Mathieu-Daudé, 2021/03/23
- [RFC PATCH 05/13] blobs: Only install npcm7xx bootrom if ARM system targets are built, Philippe Mathieu-Daudé, 2021/03/23
- [RFC PATCH 06/13] blobs: Only install PA-RISC SeaBIOS if hppa system target is built, Philippe Mathieu-Daudé, 2021/03/23