]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Move bootctl to its own source subdirectory
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Nov 2024 11:24:40 +0000 (12:24 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Nov 2024 13:15:00 +0000 (14:15 +0100)
It's been split into a bunch of files and deserves its own subdirectory
similarly to systemctl.

21 files changed:
meson.build
src/boot/meson.build
src/bootctl/bootctl-install.c [moved from src/boot/bootctl-install.c with 100% similarity]
src/bootctl/bootctl-install.h [moved from src/boot/bootctl-install.h with 100% similarity]
src/bootctl/bootctl-random-seed.c [moved from src/boot/bootctl-random-seed.c with 100% similarity]
src/bootctl/bootctl-random-seed.h [moved from src/boot/bootctl-random-seed.h with 100% similarity]
src/bootctl/bootctl-reboot-to-firmware.c [moved from src/boot/bootctl-reboot-to-firmware.c with 100% similarity]
src/bootctl/bootctl-reboot-to-firmware.h [moved from src/boot/bootctl-reboot-to-firmware.h with 100% similarity]
src/bootctl/bootctl-set-efivar.c [moved from src/boot/bootctl-set-efivar.c with 100% similarity]
src/bootctl/bootctl-set-efivar.h [moved from src/boot/bootctl-set-efivar.h with 100% similarity]
src/bootctl/bootctl-status.c [moved from src/boot/bootctl-status.c with 100% similarity]
src/bootctl/bootctl-status.h [moved from src/boot/bootctl-status.h with 100% similarity]
src/bootctl/bootctl-systemd-efi-options.c [moved from src/boot/bootctl-systemd-efi-options.c with 100% similarity]
src/bootctl/bootctl-systemd-efi-options.h [moved from src/boot/bootctl-systemd-efi-options.h with 100% similarity]
src/bootctl/bootctl-uki.c [moved from src/boot/bootctl-uki.c with 100% similarity]
src/bootctl/bootctl-uki.h [moved from src/boot/bootctl-uki.h with 100% similarity]
src/bootctl/bootctl-util.c [moved from src/boot/bootctl-util.c with 100% similarity]
src/bootctl/bootctl-util.h [moved from src/boot/bootctl-util.h with 100% similarity]
src/bootctl/bootctl.c [moved from src/boot/bootctl.c with 100% similarity]
src/bootctl/bootctl.h [moved from src/boot/bootctl.h with 100% similarity]
src/bootctl/meson.build [new file with mode: 0644]

index f1339e065d18d9a095bc0a5f09154c18bbda253d..2624bd363bdef93de0fc714c88d8990f0786b719 100644 (file)
@@ -2346,6 +2346,7 @@ subdir('src/battery-check')
 subdir('src/binfmt')
 subdir('src/boot')
 subdir('src/boot/efi')
+subdir('src/bootctl')
 subdir('src/busctl')
 subdir('src/cgls')
 subdir('src/cgroups-agent')
index a72388baff28d4cfc0f4be8f361fba5880f8508c..95e3c786fcd21e6703d6ac6f18310ab957254b1d 100644 (file)
@@ -1,17 +1,5 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-bootctl_sources = files(
-        'bootctl-install.c',
-        'bootctl-random-seed.c',
-        'bootctl-reboot-to-firmware.c',
-        'bootctl-set-efivar.c',
-        'bootctl-status.c',
-        'bootctl-systemd-efi-options.c',
-        'bootctl-uki.c',
-        'bootctl-util.c',
-        'bootctl.c',
-)
-
 if get_option('link-boot-shared')
         boot_link_with = [libshared]
 else
@@ -22,16 +10,6 @@ else
 endif
 
 executables += [
-        executable_template + {
-                'name' : 'bootctl',
-                'public' : true,
-                'conditions' : [
-                          'HAVE_BLKID',
-                ],
-                'sources' : bootctl_sources,
-                'link_with' : boot_link_with,
-                'dependencies' : [libblkid, libopenssl],
-        },
         libexec_template + {
                 'name' : 'systemd-bless-boot',
                 'public' : true,
similarity index 100%
rename from src/boot/bootctl.c
rename to src/bootctl/bootctl.c
similarity index 100%
rename from src/boot/bootctl.h
rename to src/bootctl/bootctl.h
diff --git a/src/bootctl/meson.build b/src/bootctl/meson.build
new file mode 100644 (file)
index 0000000..bcd12a2
--- /dev/null
@@ -0,0 +1,26 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+bootctl_sources = files(
+        'bootctl-install.c',
+        'bootctl-random-seed.c',
+        'bootctl-reboot-to-firmware.c',
+        'bootctl-set-efivar.c',
+        'bootctl-status.c',
+        'bootctl-systemd-efi-options.c',
+        'bootctl-uki.c',
+        'bootctl-util.c',
+        'bootctl.c',
+)
+
+executables += [
+        executable_template + {
+                'name' : 'bootctl',
+                'public' : true,
+                'conditions' : [
+                          'HAVE_BLKID',
+                ],
+                'sources' : bootctl_sources,
+                'link_with' : boot_link_with,
+                'dependencies' : [libblkid, libopenssl],
+        },
+]