Changeset 5295

Show
Ignore:
Timestamp:
06/30/08 09:21:55 (2 months ago)
Author:
khali
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c/trunk/CHANGES

    r4994 r5295  
    99 
    1010SVN-HEAD 
    11    
     11  Makefile: Fallback to simple depmod if System.map can't be found 
    1212 
    13132.10.5 (20071024) 
  • i2c/trunk/Makefile

    r4101 r5295  
    207207install :: all 
    208208ifeq ($(DESTDIR),) 
    209         -if [ -r $(MODPREF)/build/System.map -a -x /sbin/depmod ] ; then \ 
    210           /sbin/depmod -a -F $(MODPREF)/build/System.map $(KERNELVERSION) ; \ 
     209        -if [ -x /sbin/depmod ] ; then \ 
     210          if [ -r $(MODPREF)/build/System.map ] ; then \ 
     211            /sbin/depmod -a -F $(MODPREF)/build/System.map $(KERNELVERSION) ; \ 
     212          elif [ "$(KERNELVERSION)" = "`uname -r`"  ] ; then \ 
     213            /sbin/depmod -a ; \ 
     214          fi \ 
    211215        fi 
    212216else