mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
meson.build: Declare global edk2_targets / install_edk2_blobs variables
Globally declare in the main meson.build: - the list of EDK2 targets, - whether the EDK2 blobs have to be installed. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210114174509.2944817-2-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
69a78ccea9
commit
eae9a1d18b
3 changed files with 25 additions and 18 deletions
|
@ -88,6 +88,14 @@ if cpu in ['x86', 'x86_64']
|
||||||
}
|
}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
edk2_targets = [ 'arm-softmmu', 'aarch64-softmmu', 'i386-softmmu', 'x86_64-softmmu' ]
|
||||||
|
install_edk2_blobs = false
|
||||||
|
if get_option('install_blobs')
|
||||||
|
foreach target : target_dirs
|
||||||
|
install_edk2_blobs = install_edk2_blobs or target in edk2_targets
|
||||||
|
endforeach
|
||||||
|
endif
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# Compiler flags #
|
# Compiler flags #
|
||||||
##################
|
##################
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
if install_edk2_blobs
|
||||||
foreach f: [
|
foreach f: [
|
||||||
'50-edk2-i386-secure.json',
|
'50-edk2-i386-secure.json',
|
||||||
'50-edk2-x86_64-secure.json',
|
'50-edk2-x86_64-secure.json',
|
||||||
|
@ -12,3 +13,4 @@ foreach f: [
|
||||||
install: get_option('install_blobs'),
|
install: get_option('install_blobs'),
|
||||||
install_dir: qemu_datadir / 'firmware')
|
install_dir: qemu_datadir / 'firmware')
|
||||||
endforeach
|
endforeach
|
||||||
|
endif
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
if 'arm-softmmu' in target_dirs or \
|
if install_edk2_blobs
|
||||||
'aarch64-softmmu' in target_dirs or \
|
|
||||||
'i386-softmmu' in target_dirs or \
|
|
||||||
'x86_64-softmmu' in target_dirs
|
|
||||||
bzip2 = find_program('bzip2', required: true)
|
bzip2 = find_program('bzip2', required: true)
|
||||||
fds = [
|
fds = [
|
||||||
'edk2-aarch64-code.fd',
|
'edk2-aarch64-code.fd',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue