meson: build kernel-install man page when necessary

This commit is contained in:
Franck Bui 2022-03-31 11:17:10 +02:00 committed by Yu Watanabe
parent f81ac115dc
commit f887eab1da
5 changed files with 7 additions and 6 deletions

View file

@ -30,7 +30,7 @@ manpages = [
['journalctl', '1', [], ''], ['journalctl', '1', [], ''],
['journald.conf', '5', ['journald.conf.d', 'journald@.conf'], ''], ['journald.conf', '5', ['journald.conf.d', 'journald@.conf'], ''],
['kernel-command-line', '7', [], ''], ['kernel-command-line', '7', [], ''],
['kernel-install', '8', [], ''], ['kernel-install', '8', [], 'ENABLE_KERNEL_INSTALL'],
['libudev', '3', [], ''], ['libudev', '3', [], ''],
['loader.conf', '5', [], 'HAVE_GNU_EFI'], ['loader.conf', '5', [], 'HAVE_GNU_EFI'],
['locale.conf', '5', [], ''], ['locale.conf', '5', [], ''],

View file

@ -1675,6 +1675,9 @@ else
endif endif
conf.set10('ENABLE_IMPORTD', have) conf.set10('ENABLE_IMPORTD', have)
want_kernel_install = get_option('kernel-install')
conf.set10('ENABLE_KERNEL_INSTALL', want_kernel_install)
want_homed = get_option('homed') want_homed = get_option('homed')
if want_homed != 'false' if want_homed != 'false'
have = (conf.get('HAVE_OPENSSL') == 1 and have = (conf.get('HAVE_OPENSSL') == 1 and
@ -4143,7 +4146,7 @@ foreach tuple : [
['hwdb'], ['hwdb'],
['importd'], ['importd'],
['initrd'], ['initrd'],
['kernel-install', get_option('kernel-install')], ['kernel-install'],
['localed'], ['localed'],
['logind'], ['logind'],
['machined'], ['machined'],

View file

@ -31,7 +31,7 @@ items = [['busctl', ''],
['systemd-path', ''], ['systemd-path', ''],
['systemd-run', ''], ['systemd-run', ''],
['udevadm', ''], ['udevadm', ''],
['kernel-install', ''], ['kernel-install', 'ENABLE_KERNEL_INSTALL'],
['bootctl', 'HAVE_GNU_EFI'], ['bootctl', 'HAVE_GNU_EFI'],
['coredumpctl', 'ENABLE_COREDUMP'], ['coredumpctl', 'ENABLE_COREDUMP'],
['homectl', 'ENABLE_HOMED'], ['homectl', 'ENABLE_HOMED'],

View file

@ -22,7 +22,7 @@ items = [['_busctl', ''],
['_systemd-path', ''], ['_systemd-path', ''],
['_systemd-run', ''], ['_systemd-run', ''],
['_udevadm', ''], ['_udevadm', ''],
['_kernel-install', ''], ['_kernel-install', 'ENABLE_KERNEL_INSTALL'],
['_sd_hosts_or_user_at_host', ''], ['_sd_hosts_or_user_at_host', ''],
['_sd_outputmodes', ''], ['_sd_outputmodes', ''],
['_sd_unit_files', ''], ['_sd_unit_files', ''],

View file

@ -1,7 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1-or-later # SPDX-License-Identifier: LGPL-2.1-or-later
want_kernel_install = get_option('kernel-install')
if want_kernel_install if want_kernel_install
install_data('kernel-install', install_data('kernel-install',
install_mode : 'rwxr-xr-x', install_mode : 'rwxr-xr-x',