Add meson build option to prevent building kernel-install
This commit introduces new meson build option "kernel-install" to prevent kernel-install from building if the user sets the added option as "false". Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
This commit is contained in:
parent
3cfb7cc507
commit
5fa5c3e2d0
|
@ -354,3 +354,5 @@ option('oss-fuzz', type : 'boolean', value : 'false',
|
||||||
description : 'build against oss-fuzz')
|
description : 'build against oss-fuzz')
|
||||||
option('llvm-fuzz', type : 'boolean', value : 'false',
|
option('llvm-fuzz', type : 'boolean', value : 'false',
|
||||||
description : 'build against LLVM libFuzzer')
|
description : 'build against LLVM libFuzzer')
|
||||||
|
option('kernel-install', type: 'boolean', value: 'true',
|
||||||
|
description : 'include kernel-install feature')
|
||||||
|
|
|
@ -1,14 +1,18 @@
|
||||||
# SPDX-License-Identifier: LGPL-2.1+
|
# SPDX-License-Identifier: LGPL-2.1+
|
||||||
|
|
||||||
install_data('kernel-install',
|
want_kernel_install = get_option('kernel-install')
|
||||||
install_mode : 'rwxr-xr-x',
|
|
||||||
install_dir : bindir)
|
|
||||||
|
|
||||||
install_data('00-entry-directory.install',
|
if want_kernel_install
|
||||||
'50-depmod.install',
|
install_data('kernel-install',
|
||||||
'90-loaderentry.install',
|
install_mode : 'rwxr-xr-x',
|
||||||
install_mode : 'rwxr-xr-x',
|
install_dir : bindir)
|
||||||
install_dir : kernelinstalldir)
|
|
||||||
|
|
||||||
meson.add_install_script('sh', '-c',
|
install_data('00-entry-directory.install',
|
||||||
mkdir_p.format(join_paths(sysconfdir, 'kernel/install.d')))
|
'50-depmod.install',
|
||||||
|
'90-loaderentry.install',
|
||||||
|
install_mode : 'rwxr-xr-x',
|
||||||
|
install_dir : kernelinstalldir)
|
||||||
|
|
||||||
|
meson.add_install_script('sh', '-c',
|
||||||
|
mkdir_p.format(join_paths(sysconfdir, 'kernel/install.d')))
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue