Give path to System.map to depmod, don't set KMODPATH
authorPavel Roskin <proski@gnu.org>
Wed, 17 Sep 2014 01:52:44 +0000 (21:52 -0400)
committerPavel Roskin <proski@gnu.org>
Wed, 17 Sep 2014 01:52:44 +0000 (21:52 -0400)
The "-e" option requires -E of -F. depmod doesn't use KMODPATH.

Makefile

index 9ccab56befe6774333c025f26b58814c948da5e9..fa4e355763b0818c5fc193453f81b568d4fce938 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -192,5 +192,5 @@ endif
 .PHONY: depmod
 depmod:
 ifeq ($(DESTDIR),)
-       (export KMODPATH=$(KMODPATH); /sbin/depmod -ae $(KERNELRELEASE))
+       /sbin/depmod -aeF $(KERNELPATH)/System.map $(KERNELRELEASE)
 endif