From 5bad18403fa258204214d45580ca0d235e1a4486 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Sun, 13 Mar 2016 15:18:58 +0100 Subject: Support chroot buildroots The calling of modinfo at `make modules_install` did not take into account chroot buildroots (reported by Jan Engelhardt). --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3