Changeset 5018
- Timestamp:
- 11/12/07 14:43:50 (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
r5015 r5018 4 4 SVN-HEAD 5 5 Library: Fix fschrc and fschmd support 6 Makefile: Revert changeset 4738, fix bug #2187 differently 6 7 Program decode-dimms.pl: Fix DDR2 SDRAM module speed decoding 7 8 Update manufacturer IDs. lm-sensors/trunk/Makefile
r4738 r5018 84 84 # The magic invocation will return something like this: 85 85 # /lib/modules/2.4.29 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 86 KERNELVERSION := $(shell $(CC) -I$(LINUX_HEADERS) -E etc/config.c | grep uts_release | cut -f 2 -d'"') 87 MODPREF := /lib/modules/$(KERNELVERSION) 90 88 91 89 # When building userspace for use with 2.4.x series kernels, we turn off … … 95 93 # if you do this: you will need to install the libsysfs libraries on your 96 94 # kernel 2.4.x systems also. 97 ifeq (,$(findstring /2.4., /$(KERNELVERSION)))95 ifeq (,$(findstring /2.4., $(MODPREF))) 98 96 SYSFS_SUPPORT := 1 99 97 else … … 103 101 104 102 # Prevent 2.6+ users from using improper targets, as this won't work. 105 ifeq (,$(findstring /2.4., /$(KERNELVERSION)))103 ifeq (,$(findstring /2.4., $(MODPREF))) 106 104 ifeq (, $(MAKECMDGOALS)) 107 105 $(error For 2.6 kernels and later, use "make user") … … 323 321 ifeq ($(DESTDIR),) 324 322 -if [ -r $(MODPREF)/build/System.map -a -x /sbin/depmod ] ; then \ 325 /sbin/depmod -a -F $(MODPREF)/build/System.map $( UTSRELEASE) ; \323 /sbin/depmod -a -F $(MODPREF)/build/System.map $(KERNELVERSION) ; \ 326 324 fi 327 325 else lm-sensors/trunk/etc/config.c
r4738 r5018 6 6 * 7 7 * Note: since kernel 2.6.17, the definition of UTS_RELEASE has 8 * moved to <linux/utsrelease.h> so this no longer works.8 * moved to <linux/utsrelease.h>. 9 9 */ 10 10 #include <linux/version.h> 11 #ifndef UTS_RELEASE 12 #include <linux/utsrelease.h> 13 #endif 11 14 char *uts_release=UTS_RELEASE;
