From 8aa08ca6d4635da6a8bf948d02770570f1fa938d Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 9 May 2013 11:49:40 +0200 Subject: Check at modules_install whether depmod ignores the extra subdir The external kernel modules are installed in the extra subdir in /lib/modules//, but depmod in some distributions (at least in Ubuntu 12.04 LTS) ingores the subdir. Warn about it, because that way the modules are actually not available there. Reported by Husnu Demir and tian fang. --- Makefile.am | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile.am b/Makefile.am index 3453604..c84a425 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,10 +40,28 @@ else @echo Skipping kernel modules due to --with-kmod=no endif +define DEPMOD_WARNING + +!!! WARNING !!! WARNING !!! WARNING !!! + +Your distribution seems to ignore the /lib/modules//extra/ +subdirectory, where the ipset kernel modules are installed. + +Add the 'extra' directory to the search definition of your depmod +configuration (/etc/depmod.conf or /etc/depmod.d/) and re-run + + depmod + +otherwise the ipset kernel modules in the extra subdir will be ignored. + +endef +export DEPMOD_WARNING + modules_install: if WITH_KMOD ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel/net/netfilter \ KDIR=$$PWD/kernel modules_install + @modinfo ip_set_hash_ip | ${GREP} extra/ipset/ip_set_hash_ip >/dev/null || echo "$$DEPMOD_WARNING" else @echo Skipping kernel modules due to --with-kmod=no endif -- cgit v1.2.3