diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:49:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:49:52 +0000 |
commit | 55944e5e40b1be2afc4855d8d2baf4b73d1876b5 (patch) | |
tree | 33f869f55a1b149e9b7c2b7e201867ca5dd52992 /src/pcrlock/meson.build | |
parent | Initial commit. (diff) | |
download | systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.tar.xz systemd-55944e5e40b1be2afc4855d8d2baf4b73d1876b5.zip |
Adding upstream version 255.4.upstream/255.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/pcrlock/meson.build | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/pcrlock/meson.build b/src/pcrlock/meson.build new file mode 100644 index 0000000..a31b30b --- /dev/null +++ b/src/pcrlock/meson.build @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +executables += [ + libexec_template + { + 'name' : 'systemd-pcrlock', + 'conditions' : [ + 'HAVE_OPENSSL', + 'HAVE_TPM2' + ], + 'sources' : files( + 'pcrlock.c', + 'pcrlock-firmware.c', + 'pehash.c', + ), + 'dependencies' : [ + libm, + libopenssl, + tpm2, + ], + }, +] + +if conf.get('HAVE_OPENSSL') == 1 and conf.get('HAVE_TPM2') == 1 + install_data('pcrlock.d/350-action-efi-application.pcrlock', install_dir : pcrlockdir) + install_data('pcrlock.d/400-secureboot-separator.pcrlock.d/300-0x00000000.pcrlock', install_dir : pcrlockdir / '400-secureboot-separator.pcrlock.d') + install_data('pcrlock.d/400-secureboot-separator.pcrlock.d/600-0xffffffff.pcrlock', install_dir : pcrlockdir / '400-secureboot-separator.pcrlock.d') + install_data('pcrlock.d/500-separator.pcrlock.d/300-0x00000000.pcrlock', install_dir : pcrlockdir / '500-separator.pcrlock.d') + install_data('pcrlock.d/500-separator.pcrlock.d/600-0xffffffff.pcrlock', install_dir : pcrlockdir / '500-separator.pcrlock.d') + install_data('pcrlock.d/700-action-efi-exit-boot-services.pcrlock.d/300-present.pcrlock', install_dir : pcrlockdir / '700-action-efi-exit-boot-services.pcrlock.d') + install_data('pcrlock.d/700-action-efi-exit-boot-services.pcrlock.d/600-absent.pcrlock', install_dir : pcrlockdir / '700-action-efi-exit-boot-services.pcrlock.d') + install_data('pcrlock.d/750-enter-initrd.pcrlock', install_dir : pcrlockdir) + install_data('pcrlock.d/800-leave-initrd.pcrlock', install_dir : pcrlockdir) + install_data('pcrlock.d/850-sysinit.pcrlock', install_dir : pcrlockdir) + install_data('pcrlock.d/900-ready.pcrlock', install_dir : pcrlockdir) + install_data('pcrlock.d/950-shutdown.pcrlock', install_dir : pcrlockdir) + install_data('pcrlock.d/990-final.pcrlock', install_dir : pcrlockdir) +endif |