Changeset 2893

Show
Ignore:
Timestamp:
02/07/05 20:58:57 (4 years ago)
Author:
khali
Message:

Kill outdated code.

Files:

Legend:

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

    r2880 r2893  
    3434# and other things. 
    3535#LINUX := /usr/src/linux 
    36 LINUX := $(shell if [ -L /lib/modules/$(KERNELVERSION)/build ] ; \ 
     36LINUX := $(shell if [ -L "/lib/modules/$(KERNELVERSION)/build" ] ; \ 
    3737        then echo "/lib/modules/$(KERNELVERSION)/build" ; \ 
    3838        else echo "/usr/src/linux" ; fi) 
     
    4848#I2C_HEADERS := $(LINUX_HEADERS) 
    4949 
    50 # Uncomment the third line on SMP systems if the magic invocation fails. It 
    51 # is a bit complicated because SMP configuration changed around kernel 2.1.130 
    52 SMP := $(shell if grep -q '^SMP[[:space:]]*=' $(LINUX)/Makefile || \ 
    53                   grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_SMP[[:space:]]*1' $(LINUX_HEADERS)/linux/autoconf.h ; \ 
     50# Uncomment the third line on SMP systems if the magic invocation fails. 
     51SMP := $(shell if grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_SMP[[:space:]]*1' $(LINUX_HEADERS)/linux/autoconf.h ; \ 
    5452               then echo 1; else echo 0; fi) 
    5553#SMP := 0 
     
    5856# Uncomment the second or third line if the magic invocation fails. 
    5957# We need to know whether CONFIG_MODVERSIONS is defined. 
    60 MODVER := $(shell if cat $(LINUX_HEADERS)/linux/config.h $(LINUX_HEADERS)/linux/autoconf.h 2>/dev/null | grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_MODVERSIONS[[:space:]]*1'; then echo 1; else echo 0; fi) 
     58MODVER := $(shell if grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_MODVERSIONS[[:space:]]*1' $(LINUX_HEADERS)/linux/autoconf.h ; \ 
     59                  then echo 1; else echo 0; fi) 
    6160#MODVER := 0 
    6261#MODVER := 1 
     
    8584# This is the main modules directory into which the modules will be installed. 
    8685# The magic invocation will return something like this: 
    87 #   /lib/modules/2.2.15-ac9 
    88 #MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 
    89 #MODPREF := /lib/modules/$(KERNELVERSION) 
    90 #MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 
     86#   /lib/modules/2.4.29 
    9187MODPREF := /lib/modules/$(shell $(CC) -I$(LINUX_HEADERS) -E etc/config.c | grep uts_release |cut -f 2 -d'"') 
    9288 
  • lm-sensors/trunk/kernel/Module.mk

    r1747 r2893  
    2525# defined value verbatim into the command-list of rules... 
    2626KERNELTARGETS :=  
    27 ifneq ($(shell if grep -q '^CONFIG_SENSORS=y' $(LINUX)/.config; then echo 1; fi),1) 
    28 # sensors.c moved to i2c-proc.c in i2c package 
    29 #KERNELTARGETS += $(MODULE_DIR)/sensors.o 
    30 endif 
    3127 
    3228# Include all dependency files 
     
    3834# Remove sensors.o possibly left from old versions 
    3935install-kernel: all-kernel 
    40 #       if [ -n "$(KERNELTARGETS)" ] ; then \ 
    41 #         $(MKDIR) $(DESTDIR)$(MODDIR) ; \ 
    42 #         $(INSTALL) -o root -g root -m 644 $(KERNELTARGETS) $(DESTDIR)$(MODDIR) ;\ 
    43 #       fi 
    4436        $(RM) $(DESTDIR)$(MODPREF)/misc/sensors.o 
    4537