summaryrefslogtreecommitdiffstats
path: root/src/pcrlock/meson.build
blob: a31b30bb156340f35f245bc1819cf40beaf8d080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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