summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2016-03-13 15:18:58 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2016-03-13 15:18:58 +0100
commit5bad18403fa258204214d45580ca0d235e1a4486 (patch)
tree5acec8b60b20b21a1a0736698bf7fff1a25eba0b
parentfc7221d243c44be917dc21cbdc70df7d14e4ce4d (diff)
Support chroot buildroots
The calling of modinfo at `make modules_install` did not take into account chroot buildroots (reported by Jan Engelhardt).
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 684ebee..e3404fa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,6 +16,7 @@ IP_SET_MAX=$(MAXSETS)
endif
SUBDIRS = include/libipset lib src utils
+INSTALL_MOD_PATH = /
sparse:
$(MAKE) -C lib sparse-check
@@ -71,7 +72,7 @@ modules_install:
if WITH_KMOD
${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel/net \
KDIR=$$PWD/kernel modules_install
- @modinfo ip_set_hash_ip | ${GREP} /extra/ >/dev/null || echo "$$DEPMOD_WARNING"
+ @modinfo -b ${INSTALL_MOD_PATH} ip_set_hash_ip | ${GREP} /extra/ >/dev/null || echo "$$DEPMOD_WARNING"
@lsmod | ${GREP} '^ip_set' >/dev/null && echo "$$MODULE_WARNING"
else
@echo Skipping kernel modules due to --with-kmod=no