]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Move bless-boot components to their own source subdirectory
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Nov 2024 11:28:42 +0000 (12:28 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Nov 2024 13:50:41 +0000 (14:50 +0100)
meson.build
src/bless-boot/bless-boot-generator.c [moved from src/boot/bless-boot-generator.c with 100% similarity]
src/bless-boot/bless-boot.c [moved from src/boot/bless-boot.c with 100% similarity]
src/bless-boot/boot-check-no-failures.c [moved from src/boot/boot-check-no-failures.c with 100% similarity]
src/bless-boot/meson.build [new file with mode: 0644]
src/boot/meson.build

index 2624bd363bdef93de0fc714c88d8990f0786b719..e76115a619bd574e20428584895c68dc644d76b7 100644 (file)
@@ -2344,6 +2344,7 @@ subdir('src/ask-password')
 subdir('src/backlight')
 subdir('src/battery-check')
 subdir('src/binfmt')
+subdir('src/bless-boot')
 subdir('src/boot')
 subdir('src/boot/efi')
 subdir('src/bootctl')
diff --git a/src/bless-boot/meson.build b/src/bless-boot/meson.build
new file mode 100644 (file)
index 0000000..003f110
--- /dev/null
@@ -0,0 +1,37 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+if get_option('link-boot-shared')
+        boot_link_with = [libshared]
+else
+        boot_link_with = [
+                libshared_static,
+                libsystemd_static,
+        ]
+endif
+
+executables += [
+        libexec_template + {
+                'name' : 'systemd-bless-boot',
+                'public' : true,
+                'conditions' : [
+                        'HAVE_BLKID',
+                        'ENABLE_BOOTLOADER',
+                ],
+                'sources' : files('bless-boot.c'),
+                'link_with' : boot_link_with,
+                'dependencies' : libblkid,
+        },
+        generator_template + {
+                'name' : 'systemd-bless-boot-generator',
+                'conditions' : [
+                        'HAVE_BLKID',
+                        'ENABLE_BOOTLOADER',
+                ],
+                'sources' : files('bless-boot-generator.c'),
+                'link_with' : boot_link_with,
+        },
+        libexec_template + {
+                'name' : 'systemd-boot-check-no-failures',
+                'sources' : files('boot-check-no-failures.c'),
+        },
+]
index 95e3c786fcd21e6703d6ac6f18310ab957254b1d..095387384e28dcee228822cfabf560ab8c13481d 100644 (file)
@@ -1,35 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-if get_option('link-boot-shared')
-        boot_link_with = [libshared]
-else
-        boot_link_with = [
-                libshared_static,
-                libsystemd_static,
-        ]
-endif
-
 executables += [
-        libexec_template + {
-                'name' : 'systemd-bless-boot',
-                'public' : true,
-                'conditions' : [
-                        'HAVE_BLKID',
-                        'ENABLE_BOOTLOADER',
-                ],
-                'sources' : files('bless-boot.c'),
-                'link_with' : boot_link_with,
-                'dependencies' : libblkid,
-        },
-        generator_template + {
-                'name' : 'systemd-bless-boot-generator',
-                'conditions' : [
-                        'HAVE_BLKID',
-                        'ENABLE_BOOTLOADER',
-                ],
-                'sources' : files('bless-boot-generator.c'),
-                'link_with' : boot_link_with,
-        },
         libexec_template + {
                 'name' : 'systemd-measure',
                 'conditions' : [
@@ -48,8 +19,4 @@ executables += [
                 'sources' : files('sbsign.c'),
                 'dependencies' : libopenssl,
         },
-        libexec_template + {
-                'name' : 'systemd-boot-check-no-failures',
-                'sources' : files('boot-check-no-failures.c'),
-        },
 ]