compile fixes for i2c-amd8111.c, and add support in mkpatch.

Patch from
            Vojtech Pavlik <vojtech@suse.cz>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1658 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2002-12-01 21:30:13 +00:00
1 parent 01e6b327ed
commit 3467ff5106
4 files changed
+105 -14

No files matched your search

-3
View File
@@ -40,12 +40,9 @@ endif
ifneq ($(shell if grep -q '^CONFIG_I2C_AMD756=y' $(LINUX)/.config; then echo 1; fi),1)
KERNELBUSSESTARGETS += $(MODULE_DIR)/i2c-amd756.o
endif
# Should also work for CONFIG_X86 but this is the easiest way to prevent compilation in 2.2 kernels...
ifeq ($(shell if grep -q '^CONFIG_X86_64=' $(LINUX)/.config; then echo 1; fi),1)
ifneq ($(shell if grep -q '^CONFIG_I2C_AMD8111=y' $(LINUX)/.config; then echo 1; fi),1)
KERNELBUSSESTARGETS += $(MODULE_DIR)/i2c-amd8111.o
endif
endif
ifneq ($(shell if grep -q '^CONFIG_I2C_HYDRA=y' $(LINUX)/.config; then echo 1; fi),1)
KERNELBUSSESTARGETS += $(MODULE_DIR)/i2c-hydra.o
endif