Changeset 3723 for i2c/trunk/Makefile
- Timestamp:
- 11/14/02 14:23:07 (11 years ago)
- Files:
-
- 1 modified
-
i2c/trunk/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/Makefile
r3626 r3723 24 24 # kernel tree for this (and seems to give minor troubles in some cases). 25 25 # Make your choice. 26 BUILD_SYSTEM =lm_sensors27 #BUILD_SYSTEM =i2c26 BUILD_SYSTEM := lm_sensors 27 #BUILD_SYSTEM := i2c 28 28 29 29 # If your /bin/sh is not bash, change the below definition so that make can 30 30 # find bash. Or you can hope your sh-like shell understands all scripts. 31 31 # 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. 36 KERNELVERSION := $(shell uname -r) 33 37 34 38 # The location of linux itself. This is used to find the kernel headers 35 39 # and other things. 36 LINUX=/usr/src/linux 37 LINUX_HEADERS=$(LINUX)/include 40 #LINUX := /usr/src/linux 41 LINUX := /lib/modules/$(KERNELVERSION)/build 42 LINUX_HEADERS := $(LINUX)/include 38 43 39 44 # Determine whether we need to compile the kernel modules, or only the … … 60 65 # The magic invocation will return something like this: 61 66 # /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'"'` 69 MODPREF := /lib/modules/$(KERNELVERSION) 64 70 65 71 # This is the directory into which the header files will be installed.
