Changeset 575
- Timestamp:
- 09/23/99 01:11:52 (9 years ago)
- Files:
-
- lm-sensors/trunk/Makefile (modified) (1 diff)
- lm-sensors/trunk/kernel/Module.mk (modified) (1 diff)
- lm-sensors/trunk/kernel/busses/Module.mk (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/Module.mk (modified) (1 diff)
- lm-sensors/trunk/kernel/include/Module.mk (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/Makefile
r567 r575 33 33 34 34 # Determine whether we need to compile the kernel modules, or only the 35 # user-space utilities. 36 COMPILE_KERNEL := $(shell if test -d $(LINUX)/drivers/sensors ; \ 37 then echo 0; else echo 1; fi) 35 # user-space utilities. By default, the kernel modules are compiled. 38 36 #COMPILE_KERNEL := 0 39 #COMPILE_KERNEL := 137 COMPILE_KERNEL := 1 40 38 41 39 # If you have installed the i2c header at some other place (like lm-sensors/trunk/kernel/Module.mk
r496 r575 23 23 # Regrettably, even 'simply expanded variables' will not put their currently 24 24 # defined value verbatim into the command-list of rules... 25 KERNELTARGETS := $(MODULE_DIR)/sensors.o 25 KERNELTARGETS := 26 ifneq ($(shell if grep -q '^CONFIG_SENSORS=y' $(LINUX)/.config; then echo 1; fi),1) 27 KERNELTARGETS += $(MODULE_DIR)/sensors.o 28 endif 26 29 27 30 # Include all dependency files lm-sensors/trunk/kernel/busses/Module.mk
r528 r575 23 23 # Regrettably, even 'simply expanded variables' will not put their currently 24 24 # defined value verbatim into the command-list of rules... 25 KERNELBUSSESTARGETS := $(MODULE_DIR)/i2c-piix4.o $(MODULE_DIR)/i2c-isa.o \ 26 $(MODULE_DIR)/i2c-via.o $(MODULE_DIR)/i2c-ali15x3.o \ 27 $(MODULE_DIR)/i2c-hydra.o $(MODULE_DIR)/i2c-voodoo3.o \ 28 $(MODULE_DIR)/i2c-viapro.o $(MODULE_DIR)/i2c-i801.o 29 30 KERNELBUSSESOLD := bit-via.o bit-mb.o isa.o piix4.o 25 KERNELBUSSESTARGETS := $(MODULE_DIR)/i2c-i801.o \ 26 $(MODULE_DIR)/i2c-viapro.o \ 27 $(MODULE_DIR)/i2c-voodoo3.o 28 ifneq ($(shell if grep -q '^CONFIG_I2C_ALI15X3=y' $(LINUX)/.config; then echo 1; fi),1) 29 KERNELBUSSESTARGETS += $(MODULE_DIR)/i2c-ali15x3.o 30 endif 31 ifneq ($(shell if grep -q '^CONFIG_I2C_HYDRA=y' $(LINUX)/.config; then echo 1; fi),1) 32 KERNELBUSSESTARGETS += $(MODULE_DIR)/i2c-hydra.o 33 endif 34 ifneq ($(shell if grep -q '^CONFIG_I2C_ISA=y' $(LINUX)/.config; then echo 1; fi),1) 35 KERNELBUSSESTARGETS += $(MODULE_DIR)/i2c-isa.o 36 endif 37 ifneq ($(shell if grep -q '^CONFIG_I2C_PIIX4=y' $(LINUX)/.config; then echo 1; fi),1) 38 KERNELBUSSESTARGETS += $(MODULE_DIR)/i2c-piix4.o 39 endif 40 ifneq ($(shell if grep -q '^CONFIG_I2C_VIA=y' $(LINUX)/.config; then echo 1; fi),1) 41 KERNELBUSSESTARGETS += $(MODULE_DIR)/i2c-via.o 42 endif 31 43 32 44 # Include all dependency files … … 37 49 38 50 install-kernel-busses: all-kernel-busses 39 $(RM) $(addprefix $(MODDIR)/,$(KERNELBUSSESOLD))40 51 $(MKDIR) $(MODDIR) 41 52 $(INSTALL) -o root -g root -m 644 $(KERNELBUSSESTARGETS) $(MODDIR) lm-sensors/trunk/kernel/chips/Module.mk
r560 r575 23 23 # Regrettably, even 'simply expanded variables' will not put their currently 24 24 # defined value verbatim into the command-list of rules... 25 KERNELCHIPSTARGETS := $(MODULE_DIR)/adm1021.o $(MODULE_DIR)/adm9240.o \ 26 $(MODULE_DIR)/eeprom.o $(MODULE_DIR)/gl518sm.o \ 27 $(MODULE_DIR)/lm75.o $(MODULE_DIR)/lm78.o \ 28 $(MODULE_DIR)/lm80.o $(MODULE_DIR)/ltc1710.o \ 29 $(MODULE_DIR)/w83781d.o $(MODULE_DIR)/sis5595.o \ 30 $(MODULE_DIR)/maxilife.o $(MODULE_DIR)/bt869.o \ 31 $(MODULE_DIR)/matorb.o $(MODULE_DIR)/gl520sm.o \ 25 KERNELCHIPSTARGETS := $(MODULE_DIR)/bt869.o $(MODULE_DIR)/gl520sm.o \ 26 $(MODULE_DIR)/matorb.o $(MODULE_DIR)/maxilife.o \ 32 27 $(MODULE_DIR)/thmc50.o 28 ifneq ($(shell if grep -q '^CONFIG_SENSORS_ADM1021=y' $(LINUX)/.config; then echo 1; fi),1) 29 KERNELCHIPSTARGETS += $(MODULE_DIR)/adm1021.o 30 endif 31 ifneq ($(shell if grep -q '^CONFIG_SENSORS_ADM9240=y' $(LINUX)/.config; then echo 1; fi),1) 32 KERNELCHIPSTARGETS += $(MODULE_DIR)/adm9240.o 33 endif 34 ifneq ($(shell if grep -q '^CONFIG_SENSORS_EEPROM=y' $(LINUX)/.config; then echo 1; fi),1) 35 KERNELCHIPSTARGETS += $(MODULE_DIR)/eeprom.o 36 endif 37 ifneq ($(shell if grep -q '^CONFIG_SENSORS_GL518SM=y' $(LINUX)/.config; then echo 1; fi),1) 38 KERNELCHIPSTARGETS += $(MODULE_DIR)/gl518sm.o 39 endif 40 ifneq ($(shell if grep -q '^CONFIG_SENSORS_LM75=y' $(LINUX)/.config; then echo 1; fi),1) 41 KERNELCHIPSTARGETS += $(MODULE_DIR)/lm75.o 42 endif 43 ifneq ($(shell if grep -q '^CONFIG_SENSORS_LM78=y' $(LINUX)/.config; then echo 1; fi),1) 44 KERNELCHIPSTARGETS += $(MODULE_DIR)/lm78.o 45 endif 46 ifneq ($(shell if grep -q '^CONFIG_SENSORS_LM80=y' $(LINUX)/.config; then echo 1; fi),1) 47 KERNELCHIPSTARGETS += $(MODULE_DIR)/lm80.o 48 endif 49 ifneq ($(shell if grep -q '^CONFIG_SENSORS_LTC1710=y' $(LINUX)/.config; then echo 1; fi),1) 50 KERNELCHIPSTARGETS += $(MODULE_DIR)/ltc1710.o 51 endif 52 ifneq ($(shell if grep -q '^CONFIG_SENSORS_SIS5595=y' $(LINUX)/.config; then echo 1; fi),1) 53 KERNELCHIPSTARGETS += $(MODULE_DIR)/sis5595.o 54 endif 55 ifneq ($(shell if grep -q '^CONFIG_SENSORS_W83781D=y' $(LINUX)/.config; then echo 1; fi),1) 56 KERNELCHIPSTARGETS += $(MODULE_DIR)/w83781d.o 57 endif 33 58 34 59 # Include all dependency files lm-sensors/trunk/kernel/include/Module.mk
r496 r575 21 21 MODULE_DIR := kernel/include 22 22 23 KERNELINCLUDEFILES := $(MODULE_DIR)/sensors.h $(MODULE_DIR)/i2c-isa.h 24 23 KERNELINCLUDEFILES := 24 ifneq ($(shell if grep -q '^CONFIG_SENSORS=y' $(LINUX)/.config; then echo 1; fi),1) 25 KERNELINCLUDEFILES += $(MODULE_DIR)/sensors.h 26 endif 27 ifneq ($(shell if grep -q '^CONFIG_I2C_ISA=y' $(LINUX)/.config; then echo 1; fi),1) 28 KERNELINCLUDEFILES += $(MODULE_DIR)/isa.h 29 endif 25 30 26 31 install-all-kernel-include:
