Changeset 5294

Show
Ignore:
Timestamp:
06/30/08 00:08:48 (5 months ago)
Author:
khali
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r5291 r5294  
    55  Library: Don't choke on unrecognized devices, part 2 
    66           Parse the configuration file in C locale (#2312) 
     7  Makefile: Fallback to simple depmod if System.map can't be found 
    78  Module asb100: Remove some dead code (2.6 backport) 
    89  Module i2c-amd756: Fix functionality flags (2.6 backport) 
  • lm-sensors/trunk/Makefile

    r5188 r5294  
    320320install :: all user_install 
    321321ifeq ($(DESTDIR),) 
    322         -if [ -r $(MODPREF)/build/System.map -a -x /sbin/depmod ] ; then \ 
    323           /sbin/depmod -a -F $(MODPREF)/build/System.map $(KERNELVERSION) ; \ 
     322        -if [ -x /sbin/depmod ] ; then \ 
     323          if [ -r $(MODPREF)/build/System.map ] ; then \ 
     324            /sbin/depmod -a -F $(MODPREF)/build/System.map $(KERNELVERSION) ; \ 
     325          elif [ "$(KERNELVERSION)" = "`uname -r`"  ] ; then \ 
     326            /sbin/depmod -a ; \ 
     327          fi \ 
    324328        fi 
    325329else