Changeset 4458
- Timestamp:
- 06/25/07 10:18:47 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 4 modified
-
CHANGES (modified) (1 diff)
-
Makefile (modified) (2 diffs)
-
lib/Module.mk (modified) (2 diffs)
-
lib/sysfs.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r4443 r4458 14 14 Add dme1737 support 15 15 Delete support of non-sensor drivers (ddcmon, eeprom) 16 Always build with sysfs support 16 17 Man page sensors.conf.5: Update the chip statement section 17 18 Programs i2cdump, i2cget, i2cset: Do not force the slave address by default -
lm-sensors/branches/lm-sensors-3.0.0/Makefile
r4397 r4458 49 49 CC := gcc 50 50 51 # Build with sysfs support52 SYSFS_SUPPORT := 153 54 51 # This is the directory where sensors.conf will be installed, if no other 55 52 # configuration file is found … … 158 155 PROGCFLAGS := $(ALL_CFLAGS) 159 156 ARCPPFLAGS := $(ALL_CPPFLAGS) 160 ifdef SYSFS_SUPPORT161 ARCPPFLAGS := $(ARCPPFLAGS) -DSYSFS_SUPPORT162 endif163 157 ARCFLAGS := $(ALL_CFLAGS) 164 158 LIBCPPFLAGS := $(ALL_CPPFLAGS) 165 ifdef SYSFS_SUPPORT166 LIBCPPFLAGS := $(LIBCPPFLAGS) -DSYSFS_SUPPORT167 endif168 159 LIBCFLAGS := -fpic -D_REENTRANT $(ALL_CFLAGS) 169 160 -
lm-sensors/branches/lm-sensors-3.0.0/lib/Module.mk
r4357 r4458 50 50 $(MODULE_DIR)/error.c $(MODULE_DIR)/chips.c \ 51 51 $(MODULE_DIR)/proc.c $(MODULE_DIR)/access.c \ 52 $(MODULE_DIR)/init.c 53 ifdef SYSFS_SUPPORT 54 LIBCSOURCES := $(LIBCSOURCES) $(MODULE_DIR)/sysfs.c 55 endif 52 $(MODULE_DIR)/init.c $(MODULE_DIR)/sysfs.c 56 53 57 54 LIBOTHEROBJECTS := $(MODULE_DIR)/conf-parse.o $(MODULE_DIR)/conf-lex.o … … 65 62 66 63 # How to create the shared library 67 ifdef SYSFS_SUPPORT68 64 $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS) 69 65 $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm -lsysfs 70 else71 $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)72 $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm73 endif74 66 75 67 $(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME) -
lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.h
r3098 r4458 21 21 #define SENSORS_LIB_SYSFS_H 22 22 23 #ifdef SYSFS_SUPPORT24 23 extern int sensors_found_sysfs; 25 24 … … 32 31 extern int sensors_read_sysfs_bus(void); 33 32 34 #else35 36 #define sensors_found_sysfs 037 #define sensors_init_sysfs() 038 #define sensors_read_sysfs_chips() (-1)39 #define sensors_read_sysfs_bus() (-1)40 41 #endif42 43 33 #endif /* !SENSORS_LIB_SYSFS_H */
