Skip to contentSkip to conversation

batman-adv: Allow to disable depmod

PATCH New Sven Eckelmann 1 participant 1 message Dec 6, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: Allow to disable depmod

On some build systems, the actual call to depmod is not expected and only the installation of the module is expected. Just allow to overwrite this call with a different (dummy) executable.

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
index d665c0ba..08ac8f65 100644
@@ -45,6 +45,7 @@ export KERNELPATH
 RM ?= rm -f
 CP := cp -fpR
 LN := ln -sf
+DEPMOD := depmod -a
 
 REVISION= $(shell	if [ -d "$(PWD)/.git" ]; then \
 				echo $$(git --git-dir="$(PWD)/.git" describe --always --dirty --match "v*" |sed 's/^v//' 2> /dev/null || echo "[unknown]"); \
@@ -90,7 +91,7 @@ clean:
 
 install: config
 	$(MAKE) -C $(KERNELPATH) $(BUILD_FLAGS) modules_install
-	depmod -a
+	$(DEPMOD)
 
 config:
 	$(PWD)/gen-compat-autoconf.sh $(PWD)/compat-autoconf.h
Signature · 1 line
2.19.2