Skip to content

Commit a06157f

Browse files
jmltp@loplof.deevgeni
authored andcommitted
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>
1 parent 298e2c0 commit a06157f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ifeq ($(HDAPS),1)
7777
rm -f $(MOD_DIR)/extra/hdaps.ko
7878
endif
7979
$(MAKE) -C $(KBUILD) M=$(PWD) O=$(KBUILD) modules_install
80-
depmod -a
80+
depmod $(KVER)
8181

8282

8383
#####################################################################

0 commit comments

Comments
 (0)