| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
|
| 3 |
if get_option('link-boot-shared') |
| 4 |
boot_link_with = [libshared] |
| 5 |
else |
| 6 |
boot_link_with = [ |
| 7 |
libshared_static, |
| 8 |
libsystemd_static, |
| 9 |
] |
| 10 |
endif |
| 11 |
|
| 12 |
executables += [ |
| 13 |
libexec_template + { |
| 14 |
'name' : 'systemd-bless-boot', |
| 15 |
'public' : true, |
| 16 |
'conditions' : [ |
| 17 |
'HAVE_BLKID', |
| 18 |
'ENABLE_BOOTLOADER', |
| 19 |
], |
| 20 |
'sources' : files('bless-boot.c'), |
| 21 |
'link_with' : boot_link_with, |
| 22 |
}, |
| 23 |
generator_template + { |
| 24 |
'name' : 'systemd-bless-boot-generator', |
| 25 |
'conditions' : [ |
| 26 |
'HAVE_BLKID', |
| 27 |
'ENABLE_BOOTLOADER', |
| 28 |
], |
| 29 |
'sources' : files('bless-boot-generator.c'), |
| 30 |
'link_with' : boot_link_with, |
| 31 |
}, |
| 32 |
libexec_template + { |
| 33 |
'name' : 'systemd-boot-check-no-failures', |
| 34 |
'sources' : files('boot-check-no-failures.c'), |
| 35 |
}, |
| 36 |
] |