From 1dabec005698407ce3a2818758603d21b5be72d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 7 Nov 2024 12:37:45 +0100 Subject: [PATCH] Move systemd-measure to its own source subdirectory We have other subdirectories with just a single C file. And I expect that systemd-measure will only grow over time, adding new functionality. It's nicer to give its own subdirectory to maintain consistent structure. --- meson.build | 1 + src/boot/meson.build | 10 ---------- src/{boot => measure}/measure.c | 0 src/measure/meson.build | 14 ++++++++++++++ 4 files changed, 15 insertions(+), 10 deletions(-) rename src/{boot => measure}/measure.c (100%) create mode 100644 src/measure/meson.build diff --git a/meson.build b/meson.build index e76115a619b..4a0a7749bfc 100644 --- a/meson.build +++ b/meson.build @@ -2382,6 +2382,7 @@ subdir('src/locale') subdir('src/login') subdir('src/machine') subdir('src/machine-id-setup') +subdir('src/measure') subdir('src/mountfsd') subdir('src/modules-load') subdir('src/mount') diff --git a/src/boot/meson.build b/src/boot/meson.build index 095387384e2..b6e0dbcde9c 100644 --- a/src/boot/meson.build +++ b/src/boot/meson.build @@ -1,16 +1,6 @@ # SPDX-License-Identifier: LGPL-2.1-or-later executables += [ - libexec_template + { - 'name' : 'systemd-measure', - 'conditions' : [ - 'HAVE_BLKID', - 'HAVE_OPENSSL', - 'HAVE_TPM2', - ], - 'sources' : files('measure.c'), - 'dependencies' : libopenssl, - }, libexec_template + { 'name' : 'systemd-sbsign', 'conditions' : [ diff --git a/src/boot/measure.c b/src/measure/measure.c similarity index 100% rename from src/boot/measure.c rename to src/measure/measure.c diff --git a/src/measure/meson.build b/src/measure/meson.build new file mode 100644 index 00000000000..13a890170c5 --- /dev/null +++ b/src/measure/meson.build @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +executables += [ + libexec_template + { + 'name' : 'systemd-measure', + 'conditions' : [ + 'HAVE_BLKID', + 'HAVE_OPENSSL', + 'HAVE_TPM2', + ], + 'sources' : files('measure.c'), + 'dependencies' : libopenssl, + }, +]