]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tpm2-clear: build only if bootloader/openssl are enabled
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 24 Jul 2025 12:15:32 +0000 (13:15 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 24 Jul 2025 16:10:17 +0000 (17:10 +0100)
The tpm2-clear units are only installed if tpm/bootloader/ssl are
enabled. The tpm2-setup binary/units are built and installed only
if tpm/bootloader/ssl are enabled.
Do the same for the tpm2-clear binary to keep it consistent.

src/tpm2-setup/meson.build

index 6cfafe7cc5a65489232ef6b99a97615b64c7d529..39fc97b91e7c4b56f114b86eb7cfbb78f030ae01 100644 (file)
@@ -17,6 +17,8 @@ executables += [
                 'name' : 'systemd-tpm2-clear',
                 'sources' : files('tpm2-clear.c'),
                 'conditions' : [
+                        'ENABLE_BOOTLOADER',
+                        'HAVE_OPENSSL',
                         'HAVE_TPM2',
                 ],
         },