hw/uefi: add to meson
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 25 Feb 2025 16:30:21 +0000 (17:30 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 4 Mar 2025 11:07:05 +0000 (12:07 +0100)
Wire up uefi-vars in the build system.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-ID: <20250225163031.1409078-18-kraxel@redhat.com>

hw/meson.build
hw/uefi/meson.build
meson.build

index b827c82c5d7b90980c09d4738223ee95c6b892de..138f5d59e178697a74e7827959103abcb22d899a 100644 (file)
@@ -35,6 +35,7 @@ subdir('smbios')
 subdir('ssi')
 subdir('timer')
 subdir('tpm')
+subdir('uefi')
 subdir('ufs')
 subdir('usb')
 subdir('vfio')
index a8b168941255846aa12e67cad2569f994d793e4a..e63708aa164f07c6dc2119729174ca6085959092 100644 (file)
@@ -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,
+}}
index 0a2c61d2bfa08cc452591ec734317fad27ac641f..1c1982dac3b02c50fcbbb8583eb3f31dc66f7782 100644 (file)
@@ -3601,6 +3601,7 @@ if have_system
     'hw/ssi',
     'hw/timer',
     'hw/tpm',
+    'hw/uefi',
     'hw/ufs',
     'hw/usb',
     'hw/vfio',