Fix depmod to work with not-running kernels

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>
This commit is contained in:
jmltp@loplof.de 2013-04-06 15:43:17 +02:00 committed by Evgeni Golov
parent 298e2c024e
commit a06157f3c9

View File

@ -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)
#####################################################################