package/kmod: add option for host variant
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 3 May 2020 13:10:00 +0000 (15:10 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 6 Oct 2020 19:43:35 +0000 (21:43 +0200)
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>
linux/Config.in
package/Config.in.host
package/kmod/Config.in.host [new file with mode: 0644]

index 619fed86dc587c0980a0c20756ce3e1dda368652..5bd3cdb59bb1825785703e20caa74767644909f6 100644 (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
index 58b600d948fda75f0004648ed9a7993e21122537..546f1c226deca96fd39109ba875ab504aac699b8 100644 (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"
diff --git a/package/kmod/Config.in.host b/package/kmod/Config.in.host
new file mode 100644 (file)
index 0000000..ea99a79
--- /dev/null
@@ -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.