Changeset 3723 for i2c/trunk/Makefile

Show
Ignore:
Timestamp:
11/14/02 14:23:07 (11 years ago)
Author:
khali
Message:

Take kernel source location from /lib/modules/x.x.x/build

Installation documentation updates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/Makefile

    r3626 r3723  
    2424# kernel tree for this (and seems to give minor troubles in some cases). 
    2525# Make your choice. 
    26 BUILD_SYSTEM=lm_sensors 
    27 #BUILD_SYSTEM=i2c 
     26BUILD_SYSTEM := lm_sensors 
     27#BUILD_SYSTEM := i2c 
    2828 
    2929# If your /bin/sh is not bash, change the below definition so that make can 
    3030# find bash. Or you can hope your sh-like shell understands all scripts. 
    3131# I think so, but I have not tested it. 
    32 # SHELL=/usr/bin/bash 
     32#SHELL := /usr/bin/bash 
     33 
     34# The currently running kernel version. This is used right below to 
     35# determine where the kernel sources can be found. 
     36KERNELVERSION := $(shell uname -r) 
    3337 
    3438# The location of linux itself. This is used to find the kernel headers 
    3539# and other things. 
    36 LINUX=/usr/src/linux 
    37 LINUX_HEADERS=$(LINUX)/include 
     40#LINUX := /usr/src/linux 
     41LINUX := /lib/modules/$(KERNELVERSION)/build 
     42LINUX_HEADERS := $(LINUX)/include 
    3843 
    3944# Determine whether we need to compile the kernel modules, or only the 
     
    6065# The magic invocation will return something like this: 
    6166#   /lib/modules/2.2.15-ac9/misc 
    62 # MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 
    63 MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 
     67#MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 
     68#MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 
     69MODPREF := /lib/modules/$(KERNELVERSION) 
    6470 
    6571# This is the directory into which the header files will be installed.