Changeset 4738
- Timestamp:
- 09/01/07 10:09:49 (1 year ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (1 diff)
- lm-sensors/trunk/Makefile (modified) (4 diffs)
- lm-sensors/trunk/etc/config.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r4734 r4738 6 6 Speed up sensors_get_ignored() a bit 7 7 Fix thmc50 support for Linux 2.6 8 Makefile: Fix kernel version detection (#2187) 8 9 Module fscher: Add missing read of control register (2.6 backport) 9 10 Module i2c-piix4: Add ATI SB700 support (2.6 backport) lm-sensors/trunk/Makefile
r4522 r4738 84 84 # The magic invocation will return something like this: 85 85 # /lib/modules/2.4.29 86 KERNELVERSION := $(shell $(CC) -I$(LINUX_HEADERS) -E etc/config.c | grep uts_release | cut -f 2 -d'"') 87 MODPREF := /lib/modules/$(KERNELVERSION) 86 ifneq (,$(findstring /2.4., /$(KERNELVERSION))) 87 UTSRELEASE := $(shell $(CC) -I$(LINUX_HEADERS) -E etc/config.c | grep uts_release | cut -f 2 -d'"') 88 MODPREF := /lib/modules/$(UTSRELEASE) 89 endif 88 90 89 91 # When building userspace for use with 2.4.x series kernels, we turn off … … 93 95 # if you do this: you will need to install the libsysfs libraries on your 94 96 # kernel 2.4.x systems also. 95 ifeq (,$(findstring /2.4., $(MODPREF)))97 ifeq (,$(findstring /2.4., /$(KERNELVERSION))) 96 98 SYSFS_SUPPORT := 1 97 99 else … … 101 103 102 104 # Prevent 2.6+ users from using improper targets, as this won't work. 103 ifeq (,$(findstring /2.4., $(MODPREF)))105 ifeq (,$(findstring /2.4., /$(KERNELVERSION))) 104 106 ifeq (, $(MAKECMDGOALS)) 105 107 $(error For 2.6 kernels and later, use "make user") … … 321 323 ifeq ($(DESTDIR),) 322 324 -if [ -r $(MODPREF)/build/System.map -a -x /sbin/depmod ] ; then \ 323 /sbin/depmod -a -F $(MODPREF)/build/System.map $( KERNELVERSION) ; \325 /sbin/depmod -a -F $(MODPREF)/build/System.map $(UTSRELEASE) ; \ 324 326 fi 325 327 else lm-sensors/trunk/etc/config.c
r1739 r4738 4 4 * A simple grep doesn't work for Mandrake and Red Hat distributions 5 5 * that contain multiple UTS_RELEASE definitions in version.h. 6 * 7 * Note: since kernel 2.6.17, the definition of UTS_RELEASE has 8 * moved to <linux/utsrelease.h> so this no longer works. 6 9 */ 7 10 #include <linux/version.h>
