Modify makefile to handle empty INSTALL_MOD_PATH

This commit is contained in:
kimocoder 2020-07-12 00:40:48 +00:00
parent cd02bae0a0
commit b742160fba

View File

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