package/kmod: add option for host variant

Curently, host-kmod has no option to enable it, because only
the kernel depends on it, and this is unconditional (because
we can't know if modules will be enabled in the kernel config).

But we're soon to add options to enable various features of
kmod, so we'll need a place where to show those features.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
Cc: Lucian Buga <lucianbuga@gmail.com>
Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Yann E. MORIN 2020-05-03 15:10:00 +02:00 committed by Thomas Petazzoni
parent fd2170e808
commit 4ca9edaad2
3 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,7 @@ menu "Kernel"
config BR2_LINUX_KERNEL
bool "Linux Kernel"
select BR2_PACKAGE_HOST_KMOD # Unconditional, even if modules not enabled
select BR2_PACKAGE_HOST_IMAGEMAGICK if BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH != ""
help
Enable this option if you want to build a Linux kernel for

View File

@ -39,6 +39,7 @@ menu "Host utilities"
source "package/imx-usb-loader/Config.in.host"
source "package/jq/Config.in.host"
source "package/jsmin/Config.in.host"
source "package/kmod/Config.in.host"
source "package/libp11/Config.in.host"
source "package/lld/Config.in.host"
source "package/lpc3250loader/Config.in.host"

View File

@ -0,0 +1,6 @@
config BR2_PACKAGE_HOST_KMOD
bool "host kmod"
help
kmod is a set of tools to handle common tasks with Linux
kernel modules like insert, remove, list, check properties,
resolve dependencies and aliases.