From b742160fba0665010ee03ebda989d8d511e7f418 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 12 Jul 2020 00:40:48 +0000 Subject: [PATCH] Modify makefile to handle empty INSTALL_MOD_PATH --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 506827b..a51ad39 100755 --- a/Makefile +++ b/Makefile @@ -2252,7 +2252,11 @@ strip: install: install -p -m 644 $(MODULE_NAME).ko $(MODDESTDIR) +ifeq ($(INSTALL_MOD_PATH),) + $(DEPMOD) -a ${KVER} +else /sbin/depmod -a ${KVER} +endif uninstall: rm -f $(MODDESTDIR)/$(MODULE_NAME).ko