Fallback to simple depmod if System.map can't be found.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5294 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-06-29 22:08:48 +00:00
1 parent 1036c96c71
commit ffadc527cf
2 files changed
+7 -2

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ lm_sensors CHANGES file
SVN-HEAD
Library: Don't choke on unrecognized devices, part 2
Parse the configuration file in C locale (#2312)
Makefile: Fallback to simple depmod if System.map can't be found
Module asb100: Remove some dead code (2.6 backport)
Module i2c-amd756: Fix functionality flags (2.6 backport)
Module i2c-amd756-s4882: Fix an error path (2.6 backport)
+6 -2
View File
@@ -319,8 +319,12 @@ user_install::
all :: user
install :: all user_install
ifeq ($(DESTDIR),)
-if [ -r $(MODPREF)/build/System.map -a -x /sbin/depmod ] ; then \
/sbin/depmod -a -F $(MODPREF)/build/System.map $(KERNELVERSION) ; \
-if [ -x /sbin/depmod ] ; then \
if [ -r $(MODPREF)/build/System.map ] ; then \
/sbin/depmod -a -F $(MODPREF)/build/System.map $(KERNELVERSION) ; \
elif [ "$(KERNELVERSION)" = "`uname -r`" ] ; then \
/sbin/depmod -a ; \
fi \
fi
else
@echo "*** This is a \`staged' install using \"$(DESTDIR)\" as prefix."