X Tutup
Skip to content

Commit 5fa5c3e

Browse files
Jakov Smolickeszybz
authored andcommitted
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>
1 parent 3cfb7cc commit 5fa5c3e

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

meson_options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,5 @@ option('oss-fuzz', type : 'boolean', value : 'false',
354354
description : 'build against oss-fuzz')
355355
option('llvm-fuzz', type : 'boolean', value : 'false',
356356
description : 'build against LLVM libFuzzer')
357+
option('kernel-install', type: 'boolean', value: 'true',
358+
description : 'include kernel-install feature')

src/kernel-install/meson.build

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# SPDX-License-Identifier: LGPL-2.1+
22

3-
install_data('kernel-install',
4-
install_mode : 'rwxr-xr-x',
5-
install_dir : bindir)
6-
7-
install_data('00-entry-directory.install',
8-
'50-depmod.install',
9-
'90-loaderentry.install',
10-
install_mode : 'rwxr-xr-x',
11-
install_dir : kernelinstalldir)
12-
13-
meson.add_install_script('sh', '-c',
14-
mkdir_p.format(join_paths(sysconfdir, 'kernel/install.d')))
3+
want_kernel_install = get_option('kernel-install')
4+
5+
if want_kernel_install
6+
install_data('kernel-install',
7+
install_mode : 'rwxr-xr-x',
8+
install_dir : bindir)
9+
10+
install_data('00-entry-directory.install',
11+
'50-depmod.install',
12+
'90-loaderentry.install',
13+
install_mode : 'rwxr-xr-x',
14+
install_dir : kernelinstalldir)
15+
16+
meson.add_install_script('sh', '-c',
17+
mkdir_p.format(join_paths(sysconfdir, 'kernel/install.d')))
18+
endif

0 commit comments

Comments
 (0)
X Tutup