]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: Move cryptsetup-tpm2.[ch] from systemd-cryptsetup
authorGabríel Arthúr Pétursson <gabriel.petursson@marel.com>
Wed, 3 Jan 2024 15:55:18 +0000 (15:55 +0000)
committerGabríel Arthúr Pétursson <gabriel.petursson@marel.com>
Thu, 1 Feb 2024 11:57:52 +0000 (11:57 +0000)
src/cryptsetup/meson.build
src/shared/cryptsetup-tpm2.c [moved from src/cryptsetup/cryptsetup-tpm2.c with 100% similarity]
src/shared/cryptsetup-tpm2.h [moved from src/cryptsetup/cryptsetup-tpm2.h with 100% similarity]
src/shared/meson.build

index 90e2be7a911ef1224bce84ed554151cf35c5f384..9ccc0982b59c347d4ff9894a4a678d9cad006cd9 100644 (file)
@@ -11,10 +11,6 @@ if conf.get('HAVE_P11KIT') == 1
         systemd_cryptsetup_sources += files('cryptsetup-pkcs11.c')
 endif
 
-if conf.get('HAVE_TPM2') == 1
-        systemd_cryptsetup_sources += files('cryptsetup-tpm2.c')
-endif
-
 executables += [
         executable_template + {
                 'name' : 'systemd-cryptsetup',
index 2a39bb04df46993cceb896fc2c678216c8dc7f69..dc9adeddc14bab428a016ed5cf5cde7d5998b38b 100644 (file)
@@ -250,6 +250,10 @@ if conf.get('HAVE_LIBFIDO2') == 1 and conf.get('HAVE_LIBCRYPTSETUP') == 1
         shared_sources += files('cryptsetup-fido2.c')
 endif
 
+if conf.get('HAVE_TPM2') == 1 and conf.get('HAVE_LIBCRYPTSETUP') == 1
+        shared_sources += files('cryptsetup-tpm2.c')
+endif
+
 generate_ip_protocol_list = find_program('generate-ip-protocol-list.sh')
 ip_protocol_list_txt = custom_target(
         'ip-protocol-list.txt',