]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Move bootctl sources defintion to its own file
authorJan Janssen <medhefgo@web.de>
Mon, 23 Jan 2023 13:41:26 +0000 (14:41 +0100)
committerJan Janssen <medhefgo@web.de>
Mon, 23 Jan 2023 13:41:26 +0000 (14:41 +0100)
The root meson.build file is already large enough.

meson.build
src/boot/meson.build [new file with mode: 0644]

index d37f47d48b7a1e4866d654d279b6cacd72f86dba..edf4dcc5d9b43aaecb35a67e5403319f8b89b429 100644 (file)
@@ -2173,6 +2173,7 @@ subdir('src/journal')
 subdir('src/libsystemd-network')
 
 subdir('src/analyze')
+subdir('src/boot')
 subdir('src/busctl')
 subdir('src/coredump')
 subdir('src/cryptenroll')
@@ -2608,24 +2609,7 @@ if conf.get('HAVE_BLKID') == 1 and conf.get('HAVE_GNU_EFI') == 1
 
         exe = executable(
                 'bootctl',
-                ['src/boot/bootctl.c',
-                 'src/boot/bootctl.h',
-                 'src/boot/bootctl-install.c',
-                 'src/boot/bootctl-install.h',
-                 'src/boot/bootctl-random-seed.c',
-                 'src/boot/bootctl-random-seed.h',
-                 'src/boot/bootctl-reboot-to-firmware.c',
-                 'src/boot/bootctl-reboot-to-firmware.h',
-                 'src/boot/bootctl-set-efivar.c',
-                 'src/boot/bootctl-set-efivar.h',
-                 'src/boot/bootctl-status.c',
-                 'src/boot/bootctl-status.h',
-                 'src/boot/bootctl-systemd-efi-options.c',
-                 'src/boot/bootctl-systemd-efi-options.h',
-                 'src/boot/bootctl-uki.c',
-                 'src/boot/bootctl-uki.h',
-                 'src/boot/bootctl-util.c',
-                 'src/boot/bootctl-util.h'],
+                bootctl_sources,
                 include_directories : includes,
                 link_with : [boot_link_with],
                 dependencies : [libblkid,
diff --git a/src/boot/meson.build b/src/boot/meson.build
new file mode 100644 (file)
index 0000000..e492664
--- /dev/null
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+bootctl_sources = files(
+        'bootctl-install.c',
+        'bootctl-install.h',
+        'bootctl-random-seed.c',
+        'bootctl-random-seed.h',
+        'bootctl-reboot-to-firmware.c',
+        'bootctl-reboot-to-firmware.h',
+        'bootctl-set-efivar.c',
+        'bootctl-set-efivar.h',
+        'bootctl-status.c',
+        'bootctl-status.h',
+        'bootctl-systemd-efi-options.c',
+        'bootctl-systemd-efi-options.h',
+        'bootctl-uki.c',
+        'bootctl-uki.h',
+        'bootctl-util.c',
+        'bootctl-util.h',
+        'bootctl.c',
+        'bootctl.h',
+)