Changeset 3465 for i2c/trunk/Makefile

Show
Ignore:
Timestamp:
03/22/00 23:59:54 (13 years ago)
Author:
frodo
Message:

Changed detection of kernel version to use <linux/version.h>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/Makefile

    r3456 r3465  
    6060# The magic invocation will return something like this: 
    6161#   /lib/modules/2.2.15-ac9/extra/misc 
    62 MODDIR := /lib/modules/`sed -ne '1,4 { s/.*= *\(.*\)/\1/; 1,2 s/.*/&./; p; };' <$(LINUX)/Makefile | tr -d '\n'` 
    63 ifeq ($(BUILD_SYSTEM),i2c) 
    64 MODDIR := $(MODDIR)/extra/misc 
    65 else 
    66 MODDIR := $(MODDIR)/misc 
    67 endif 
    68  
     62MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/extra/misc 
    6963 
    7064# This is the directory into which the header files will be installed. 
     
    191185 
    192186# We need to create dependency files. Tricky. We sed rule puts dir/file.d and 
    193 # dir/file.c # in front of the dependency file rule. 
     187# dir/file.c in front of the dependency file rule. 
    194188 
    195189# .o files are used for modules