aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2025-02-25 17:30:21 +0100
committerGerd Hoffmann <kraxel@redhat.com>2025-03-04 12:07:05 +0100
commit736ca80cdd18c837dcfca016a6df746a70d33bb2 (patch)
tree0d267fdcdbf24ad4aa6707c6869c266329eecc6a
parente8371973d7e651f9d7b82100cb9745fd2795d722 (diff)
downloadqemu-736ca80cdd18c837dcfca016a6df746a70d33bb2.zip
qemu-736ca80cdd18c837dcfca016a6df746a70d33bb2.tar.gz
qemu-736ca80cdd18c837dcfca016a6df746a70d33bb2.tar.bz2
hw/uefi: add to meson
Wire up uefi-vars in the build system. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20250225163031.1409078-18-kraxel@redhat.com>
-rw-r--r--hw/meson.build1
-rw-r--r--hw/uefi/meson.build19
-rw-r--r--meson.build1
3 files changed, 21 insertions, 0 deletions
diff --git a/hw/meson.build b/hw/meson.build
index b827c82..138f5d5 100644
--- a/hw/meson.build
+++ b/hw/meson.build
@@ -35,6 +35,7 @@ subdir('smbios')
subdir('ssi')
subdir('timer')
subdir('tpm')
+subdir('uefi')
subdir('ufs')
subdir('usb')
subdir('vfio')
diff --git a/hw/uefi/meson.build b/hw/uefi/meson.build
index a8b1689..e63708a 100644
--- a/hw/uefi/meson.build
+++ b/hw/uefi/meson.build
@@ -1 +1,20 @@
system_ss.add(files('hardware-info.c'))
+
+uefi_vars_ss = ss.source_set()
+if (config_all_devices.has_key('CONFIG_UEFI_VARS'))
+ uefi_vars_ss.add(files('var-service-core.c',
+ 'var-service-json.c',
+ 'var-service-vars.c',
+ 'var-service-auth.c',
+ 'var-service-guid.c',
+ 'var-service-utils.c',
+ 'var-service-policy.c'))
+ uefi_vars_ss.add(when: gnutls,
+ if_true: files('var-service-pkcs7.c'),
+ if_false: files('var-service-pkcs7-stub.c'))
+ uefi_vars_ss.add(files('var-service-siglist.c'))
+endif
+
+modules += { 'hw-uefi' : {
+ 'vars' : uefi_vars_ss,
+}}
diff --git a/meson.build b/meson.build
index 0a2c61d..1c1982d 100644
--- a/meson.build
+++ b/meson.build
@@ -3601,6 +3601,7 @@ if have_system
'hw/ssi',
'hw/timer',
'hw/tpm',
+ 'hw/uefi',
'hw/ufs',
'hw/usb',
'hw/vfio',