| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
|
| 3 |
if conf.get('ENABLE_REPART') != 1 |
| 4 |
subdir_done() |
| 5 |
endif |
| 6 |
|
| 7 |
executables += [ |
| 8 |
executable_template + { |
| 9 |
'name' : 'systemd-repart', |
| 10 |
'public' : true, |
| 11 |
'extract' : files( |
| 12 |
'repart.c', |
| 13 |
'iso9660.c', |
| 14 |
), |
| 15 |
'dependencies' : [ |
| 16 |
libblkid_cflags, |
| 17 |
libfdisk_cflags, |
| 18 |
libmount_cflags, |
| 19 |
libopenssl_cflags, |
| 20 |
], |
| 21 |
}, |
| 22 |
executable_template + { |
| 23 |
'name' : 'systemd-repart.standalone', |
| 24 |
'public' : true, |
| 25 |
'objects' : ['systemd-repart'], |
| 26 |
'link_with' : [ |
| 27 |
libc_wrapper_static, |
| 28 |
libbasic_static, |
| 29 |
libshared_static, |
| 30 |
libsystemd_static, |
| 31 |
], |
| 32 |
'dependencies' : [ |
| 33 |
libblkid_cflags, |
| 34 |
libfdisk_cflags, |
| 35 |
libmount_cflags, |
| 36 |
libopenssl_cflags, |
| 37 |
], |
| 38 |
}, |
| 39 |
] |
| 40 |
|
| 41 |
install_data('definitions/confext.repart.d/10-root.conf', install_dir : repartdefinitionsdir / 'confext.repart.d') |
| 42 |
install_data('definitions/confext.repart.d/20-root-verity.conf', install_dir : repartdefinitionsdir / 'confext.repart.d') |
| 43 |
install_data('definitions/confext.repart.d/30-root-verity-sig.conf', install_dir : repartdefinitionsdir / 'confext.repart.d') |
| 44 |
install_data('definitions/portable.repart.d/10-root.conf', install_dir : repartdefinitionsdir / 'portable.repart.d') |
| 45 |
install_data('definitions/portable.repart.d/20-root-verity.conf', install_dir : repartdefinitionsdir / 'portable.repart.d') |
| 46 |
install_data('definitions/portable.repart.d/30-root-verity-sig.conf', install_dir : repartdefinitionsdir / 'portable.repart.d') |
| 47 |
install_data('definitions/sysext.repart.d/10-root.conf', install_dir : repartdefinitionsdir / 'sysext.repart.d') |
| 48 |
install_data('definitions/sysext.repart.d/20-root-verity.conf', install_dir : repartdefinitionsdir / 'sysext.repart.d') |
| 49 |
install_data('definitions/sysext.repart.d/30-root-verity-sig.conf', install_dir : repartdefinitionsdir / 'sysext.repart.d') |