Debian Codegraph @

src/tpm2-setup/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 executables += [
4 libexec_template + {
5 'name' : 'systemd-tpm2-setup',
6 'sources' : files('tpm2-setup.c'),
7 'conditions' : [
8 'ENABLE_BOOTLOADER',
9 'HAVE_OPENSSL',
10 'HAVE_TPM2',
11 ],
12 'dependencies' : [
13 libopenssl_cflags,
14 ],
15 },
16 libexec_template + {
17 'name' : 'systemd-tpm2-clear',
18 'sources' : files('tpm2-clear.c'),
19 'conditions' : [
20 'ENABLE_BOOTLOADER',
21 'HAVE_OPENSSL',
22 'HAVE_TPM2',
23 ],
24 },
25 libexec_template + {
26 'name' : 'systemd-tpm2-swtpm',
27 'sources' : files('tpm2-swtpm.c'),
28 'conditions' : [
29 'ENABLE_BOOTLOADER',
30 'HAVE_OPENSSL',
31 'HAVE_TPM2',
32 ],
33 },
34 generator_template + {
35 'name' : 'systemd-tpm2-generator',
36 'sources' : files('tpm2-generator.c'),
37 'conditions' : [
38 'ENABLE_BOOTLOADER',
39 'HAVE_OPENSSL',
40 'HAVE_TPM2',
41 ],
42 },
43 ]
44
45 if conf.get('ENABLE_BOOTLOADER') == 1 and conf.get('HAVE_OPENSSL') == 1 and conf.get('HAVE_TPM2') == 1
46 nvpcrs = [ 'cryptsetup',
47 'hardware',
48 'login',
49 'verity']
50 foreach n : nvpcrs
51 custom_target(
52 input : 'nvpcr/' + n + '.nvpcr.in',
53 output : n + '.nvpcr',
54 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
55 install : true,
56 install_dir : prefixdir / 'lib/nvpcr')
57 endforeach
58 endif