]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
packages: ensure linux supports modules even when not using kernel-module
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 3 Sep 2015 12:54:21 +0000 (14:54 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 4 Sep 2015 11:16:58 +0000 (13:16 +0200)
Some packages build kernel modules without using the kernel-module infra
(because they use custom build systems); they do not automatically get
the kernel to support modules which is ensured when using the infra.

It must be done manually for all those packages, whenever they are
enabled.

Note: the nvidia-driver case does not need the ifeq-block other packages
use, because it is already enclosed in a more stringent ifeq-block.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: NoƩ Rubinstein <nrubinstein@aldebaran.com>
Cc: Jan Viktorin <viktorin@rehivetech.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/linux-fusion/linux-fusion.mk
package/nvidia-driver/nvidia-driver.mk
package/racehound/racehound.mk
package/rtai/rtai.mk
package/ti-gfx/ti-gfx.mk
package/xtables-addons/xtables-addons.mk

index 001388c67dc1f38a70e79e4bb58b548944e9cfa6..d52fe40a0ad7576dde8088a806d208b7f3f9bc44 100644 (file)
@@ -11,6 +11,12 @@ LINUX_FUSION_DEPENDENCIES = linux
 LINUX_FUSION_LICENSE = GPLv2+
 LINUX_FUSION_LICENSE_FILES = debian/copyright
 
+# We're building a kernel module without using the kernel-module infra,
+# so we need to tell we want module support in the kernel
+ifeq ($(BR2_PACKAGE_LINUX_FUSION),y)
+LINUX_NEEDS_MODULES = y
+endif
+
 LINUX_FOR_FUSION = $(LINUX_VERSION_PROBED)
 LINUX_FUSION_ETC_DIR = $(TARGET_DIR)/etc/udev/rules.d
 
index 71babfbf1b5b83e941cd739ae15ee5c0a8035dde..4bcb65ea40e88f15794f73b1971e79501b60a97c 100644 (file)
@@ -91,6 +91,10 @@ ifeq ($(BR2_PACKAGE_NVIDIA_DRIVER_MODULE),y)
 
 NVIDIA_DRIVER_DEPENDENCIES += linux
 
+# We're building a kernel module without using the kernel-module infra,
+# so we need to tell we want module support in the kernel
+LINUX_NEEDS_MODULES = y
+
 # NVidia uses the legacy naming scheme for the x86 architecture, when i386
 # and x86_64 were still considered two separate architectures in the Linux
 # kernel.
index 7d8d1e3542e4cee8b40f1241a680fefee9de7563..66f3ebec36a0b4b481cde1c773539c043a6f82de 100644 (file)
@@ -12,6 +12,12 @@ RACEHOUND_SUPPORTS_IN_SOURCE_BUILD = NO
 
 RACEHOUND_DEPENDENCIES = elfutils linux
 
+# We're building a kernel module without using the kernel-module infra,
+# so we need to tell we want module support in the kernel
+ifeq ($(BR2_PACKAGE_RACEHOUND),y)
+LINUX_NEEDS_MODULES = y
+endif
+
 # override auto detection (uses host parameters, not cross compile
 # ready)
 RACEHOUND_CONF_OPTS += \
index dfd8e0c19082621de88c160d4e059386d8b8cbbf..6e803a6ade3e1f214d141f27a230890a02adbe2c 100644 (file)
@@ -18,6 +18,12 @@ RTAI_POST_INSTALL_STAGING_HOOKS += RTAI_POST_PATCH_FIXUP
 
 RTAI_DEPENDENCIES = linux
 
+# We're building a kernel module without using the kernel-module infra,
+# so we need to tell we want module support in the kernel
+ifeq ($(BR2_PACKAGE_RTAI),y)
+LINUX_NEEDS_MODULES = y
+endif
+
 RTAI_CONF_OPTS = \
        --includedir=/usr/include/rtai \
        --with-linux-dir=$(LINUX_DIR)   \
index 5339387c985398c32d56959548425c2f9c19b873..d23985f9a892a8c48ed26c308bfcfd9fbcbac860 100644 (file)
@@ -21,6 +21,13 @@ TI_GFX_LICENSE_FILES = TSPA.txt
 TI_GFX_INSTALL_STAGING = YES
 
 TI_GFX_DEPENDENCIES = linux
+
+# We're building a kernel module without using the kernel-module infra,
+# so we need to tell we want module support in the kernel
+ifeq ($(BR2_PACKAGE_TI_GFX),y)
+LINUX_NEEDS_MODULES = y
+endif
+
 TI_GFX_PROVIDES = libegl libgles powervr
 
 ifeq ($(BR2_PACKAGE_TI_GFX_ES3),y)
index 75e2a5af30f23ce554d66b5844039c1009c8c399..d16341f31af6903333faabf6398bf34cbc4ae613 100644 (file)
@@ -16,6 +16,12 @@ XTABLES_ADDONS_CONF_OPTS = \
        --with-xtables="$(STAGING_DIR)/usr" \
        --with-xtlibdir="/usr/lib/xtables"
 
+# We're building a kernel module without using the kernel-module infra,
+# so we need to tell we want module support in the kernel
+ifeq ($(BR2_PACKAGE_XTABLES_ADDONS),y)
+LINUX_NEEDS_MODULES = y
+endif
+
 # geoip helpers need perl with modules and unzip so disable
 define XTABLES_DISABLE_GEOIP_HELPERS
        $(SED) 's/ geoip//' $(@D)/Makefile.in