[ltp] [PATCH: Build improvements 3/3] Fix depmod to work with not-running kernels

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Sat, 6 Apr 2013 15:43:17 +0200


depmod -a requires the directory /lib/modules/<currently-running-kernel>/
to exist. If it doesn't, depmod fails to create the temp files. Fix this.

Signed-off-by: Joerg Mayer <jmayer@loplof.de>
---
:100644 100644 97e2172... 8c8983b... M	Makefile
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 97e2172..8c8983b 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@ ifeq ($(HDAPS),1)
 	rm -f $(MOD_DIR)/extra/hdaps.ko
 endif
 	$(MAKE) -C $(KBUILD) M=$(PWD) O=$(KBUILD) modules_install
-	depmod -a
+	depmod $(KVER)
 
 
 #####################################################################
-- 
1.7.7