Changeset 11
- Timestamp:
- 11/22/98 22:36:52 (10 years ago)
- Files:
-
- lm-sensors/trunk/Makefile (modified) (2 diffs)
- lm-sensors/trunk/i2c/Module.mk (modified) (1 diff)
- lm-sensors/trunk/i2c/detect/Module.mk (modified) (1 diff)
- lm-sensors/trunk/i2c/drivers/Module.mk (modified) (1 diff)
- lm-sensors/trunk/i2c/eeprom/Module.mk (modified) (1 diff)
- lm-sensors/trunk/kernel/Module.mk (modified) (1 diff)
- lm-sensors/trunk/kernel/busses/i2c-piix4.c (modified) (5 diffs)
- lm-sensors/trunk/kernel/smbus.c (modified) (2 diffs)
- lm-sensors/trunk/src/Module.mk (modified) (1 diff)
- lm-sensors/trunk/src/piix4.c (modified) (5 diffs)
- lm-sensors/trunk/src/smbus.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/Makefile
r8 r11 40 40 WARN := 0 41 41 #WARN := 1 42 43 # Uncomment the second line if you want to get (loads of) debug information. 44 # Not recommended, unless you are actually debugging the code 45 DEBUG := 0 46 #DEBUG := 1 42 47 43 48 # This is the directory into which the modules will be installed, if you … … 107 112 108 113 # Include all makefiles for sub-modules 114 INCLUDEFILES := 109 115 include $(patsubst %,%/Module.mk,$(MODULES)) 116 ifneq ($(MAKECMDGOALS),clean) 117 include $(INCLUDEFILES) 118 endif 110 119 111 120 # Making the dependency files - done automatically! 112 dep :121 dep : 113 122 114 123 all :: lm-sensors/trunk/i2c/Module.mk
r8 r11 28 28 29 29 # Include all dependency files 30 include$(I2CTARGETS:.o=.d)30 INCLUDEFILES += $(I2CTARGETS:.o=.d) 31 31 32 32 all :: $(I2CTARGETS) lm-sensors/trunk/i2c/detect/Module.mk
r8 r11 27 27 28 28 # Include all dependency files 29 include$(I2CDETECTSOURCES:.c=.d)29 INCLUDEFILES += $(I2CDETECTSOURCES:.c=.d) 30 30 31 31 all :: $(I2CDETECTTARGETS) lm-sensors/trunk/i2c/drivers/Module.mk
r8 r11 26 26 27 27 # Include all dependency files 28 include$(I2CDRIVERTARGETS:.o=.d)28 INCLUDEFILES += $(I2CDRIVERTARGETS:.o=.d) 29 29 30 30 all :: $(I2CDRIVERTARGETS) lm-sensors/trunk/i2c/eeprom/Module.mk
r8 r11 27 27 28 28 # Include all dependency files 29 include$(I2CEEPROMSOURCES:.c=.d)29 INCLUDEFILES += $(I2CEEPROMSOURCES:.c=.d) 30 30 31 31 all :: $(I2CEEPROMTARGETS) lm-sensors/trunk/kernel/Module.mk
r9 r11 26 26 27 27 # Include all dependency files 28 include$(SRCTARGETS:.o=.d)28 INCLUDEFILES += $(SRCTARGETS:.o=.d) 29 29 30 30 all :: $(SRCTARGETS) lm-sensors/trunk/kernel/busses/i2c-piix4.c
r9 r11 21 21 #include <linux/kernel.h> 22 22 #include "smbus.h" 23 #include "version.h" 23 24 24 25 static int piix4_init(void); … … 40 41 int piix4_setup(void) 41 42 { 43 return -ENODEV; 42 44 /* TO BE WRITTEN! */ 43 45 } … … 54 56 { 55 57 int res; 58 printk("piix4.o version %s (%s)\n",LM_VERSION,LM_DATE); 56 59 #ifdef DEBUG 57 60 if (piix4_initialized) { 58 printk("piix4.o: Oops, piix4_init called a second time! ");61 printk("piix4.o: Oops, piix4_init called a second time!\n"); 59 62 return -EBUSY; 60 63 } … … 62 65 piix4_initialized = 0; 63 66 if ((res = piix4_setup())) { 64 printk("piix4.o: PIIX4 not detected, module not inserted ");67 printk("piix4.o: PIIX4 not detected, module not inserted\n"); 65 68 piix4_cleanup(); 66 69 return res; … … 72 75 piix4_adapter.smbus_access = &piix4_access; 73 76 if ((res = smbus_add_adapter(&piix4_adapter))) { 74 printk("piix4.o: smbus_add_adapter failed, module not inserted ");77 printk("piix4.o: smbus_add_adapter failed, module not inserted\n"); 75 78 piix4_cleanup(); 76 79 return res; 77 80 } 78 81 piix4_initialized++; 79 printk("piix4.o: PIIX4 bus detected and initialized ");82 printk("piix4.o: PIIX4 bus detected and initialized\n"); 80 83 return 0; 81 84 } lm-sensors/trunk/kernel/smbus.c
r9 r11 27 27 #endif 28 28 29 #include "version.h" 29 30 #include "smbus.h" 30 31 … … 202 203 { 203 204 int res; 205 printk("smbus.o version %s (%s)\n",LM_VERSION,LM_DATE); 204 206 if ((res = smbus_add_algorithm(&smbus_algorithm))) 205 207 printk("Module smbus.o not inserted!\n"); 206 208 else 207 printk("smbus.o initialized ");209 printk("smbus.o initialized\n"); 208 210 return res; 209 211 } lm-sensors/trunk/src/Module.mk
r9 r11 26 26 27 27 # Include all dependency files 28 include$(SRCTARGETS:.o=.d)28 INCLUDEFILES += $(SRCTARGETS:.o=.d) 29 29 30 30 all :: $(SRCTARGETS) lm-sensors/trunk/src/piix4.c
r9 r11 21 21 #include <linux/kernel.h> 22 22 #include "smbus.h" 23 #include "version.h" 23 24 24 25 static int piix4_init(void); … … 40 41 int piix4_setup(void) 41 42 { 43 return -ENODEV; 42 44 /* TO BE WRITTEN! */ 43 45 } … … 54 56 { 55 57 int res; 58 printk("piix4.o version %s (%s)\n",LM_VERSION,LM_DATE); 56 59 #ifdef DEBUG 57 60 if (piix4_initialized) { 58 printk("piix4.o: Oops, piix4_init called a second time! ");61 printk("piix4.o: Oops, piix4_init called a second time!\n"); 59 62 return -EBUSY; 60 63 } … … 62 65 piix4_initialized = 0; 63 66 if ((res = piix4_setup())) { 64 printk("piix4.o: PIIX4 not detected, module not inserted ");67 printk("piix4.o: PIIX4 not detected, module not inserted\n"); 65 68 piix4_cleanup(); 66 69 return res; … … 72 75 piix4_adapter.smbus_access = &piix4_access; 73 76 if ((res = smbus_add_adapter(&piix4_adapter))) { 74 printk("piix4.o: smbus_add_adapter failed, module not inserted ");77 printk("piix4.o: smbus_add_adapter failed, module not inserted\n"); 75 78 piix4_cleanup(); 76 79 return res; 77 80 } 78 81 piix4_initialized++; 79 printk("piix4.o: PIIX4 bus detected and initialized ");82 printk("piix4.o: PIIX4 bus detected and initialized\n"); 80 83 return 0; 81 84 } lm-sensors/trunk/src/smbus.c
r9 r11 27 27 #endif 28 28 29 #include "version.h" 29 30 #include "smbus.h" 30 31 … … 202 203 { 203 204 int res; 205 printk("smbus.o version %s (%s)\n",LM_VERSION,LM_DATE); 204 206 if ((res = smbus_add_algorithm(&smbus_algorithm))) 205 207 printk("Module smbus.o not inserted!\n"); 206 208 else 207 printk("smbus.o initialized ");209 printk("smbus.o initialized\n"); 208 210 return res; 209 211 }
