summaryrefslogtreecommitdiffstats
path: root/package/xtables-addons
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2015-09-03 14:54:21 +0200
committerPeter Korsgaard <peter@korsgaard.com>2015-09-04 13:16:58 +0200
commit727bae0245f306332c710c9c020c59bd975d8711 (patch)
treef5e23a9a79545368d0b86192b1ebfaae6891bfa5 /package/xtables-addons
parent2e95747ab9b6b0bf97007ce2733321c90462249a (diff)
downloadbuildroot-727bae0245f306332c710c9c020c59bd975d8711.tar.gz
buildroot-727bae0245f306332c710c9c020c59bd975d8711.zip
packages: ensure linux supports modules even when not using kernel-module
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>
Diffstat (limited to 'package/xtables-addons')
-rw-r--r--package/xtables-addons/xtables-addons.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/xtables-addons/xtables-addons.mk b/package/xtables-addons/xtables-addons.mk
index 75e2a5af30..d16341f31a 100644
--- a/package/xtables-addons/xtables-addons.mk
+++ b/package/xtables-addons/xtables-addons.mk
@@ -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
OpenPOWER on IntegriCloud