Changeset 6

Show
Ignore:
Timestamp:
11/03/98 03:05:49 (15 years ago)
Author:
frodo
Message:

Added CONFIG_MODVERSIONS magic

The i2c modules now compile and insert without any problem. If I only had
a VIA mainboard...

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r5 r6  
    1 # Uncomment the second line on SMP systems if the magic invocation fails. 
     1# Uncomment the third line on SMP systems if the magic invocation fails. 
     2SMP := $(shell if grep -q '^SMP[[:space:]]*=' /usr/src/linux/Makefile; then echo 1; else echo 0; fi) 
    23#SMP := 0 
    34#SMP := 1 
    4 SMP := $(shell if grep -q '^SMP[[:space:]]*=' /usr/src/linux/Makefile; then echo 1; else echo 0; fi) 
     5 
     6# Uncomment the second or third line if the magic invocation fails. 
     7# We need to know whether CONFIG_MODVERSIONS is defined. 
     8MODVER := $(shell if cat /usr/include/linux/config.h /usr/include/linux/autoconf.h 2>/dev/null | grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_MODVERSIONS[[:space:]]*1'; then echo 1; else echo 0; fi) 
     9#MODVER := 0 
     10#MODVER := 1 
    511 
    612# Uncomment the second line if you do not want to compile the included 
     
    6167endif 
    6268 
     69ifeq ($(MODVER),1) 
     70CFLAGS += -DMODVERSIONS -include /usr/include/linux/modversions.h 
     71endif 
     72 
    6373.PHONY: all clean install version package 
    6474 
  • lm-sensors/trunk/i2c/Module.mk

    r5 r6  
    1515install :: $(TARGETS) 
    1616        $(MKDIR) $(MODDIR) 
    17         install -o root -g root -m 644 $(MODDIR) $(TARGETS) 
     17        install -o root -g root -m 644 $(TARGETS) $(MODDIR) 
    1818 
    1919clean ::