Show
Ignore:
Timestamp:
01/03/05 18:21:07 (9 years ago)
Author:
khali
Message:

Revert the header install removal, which was a damn bad idea.
The header files are required to compile lm_sensors (among others)!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/Module.mk

    r3942 r3955  
    2727# kernel. 
    2828KERNELTARGETS := 
     29KERNELINCLUDES := 
    2930ifneq ($(shell if grep -q '^CONFIG_I2C=y' $(LINUX)/.config; then echo 1; fi),1) 
    3031KERNELTARGETS += $(MODULE_DIR)/i2c-core.o 
     32KERNELINCLUDES += $(MODULE_DIR)/i2c.h $(MODULE_DIR)/i2c-id.h 
    3133endif 
    3234ifneq ($(shell if grep -q '^CONFIG_I2C_CHARDEV=y' $(LINUX)/.config; then echo 1; fi),1) 
     
    3537ifneq ($(shell if grep -q '^CONFIG_I2C_ALGOBIT=y' $(LINUX)/.config; then echo 1; fi),1) 
    3638KERNELTARGETS += $(MODULE_DIR)/i2c-algo-bit.o 
     39KERNELINCLUDES += $(MODULE_DIR)/i2c-algo-bit.h 
    3740endif 
    3841ifneq ($(shell if grep -q '^CONFIG_I2C_ALGOBITHS=y' $(LINUX)/.config; then echo 1; fi),1) 
    3942KERNELTARGETS += $(MODULE_DIR)/i2c-algo-biths.o 
     43KERNELINCLUDES += $(MODULE_DIR)/i2c-algo-biths.h 
    4044endif 
    4145ifneq ($(shell if grep -q '^CONFIG_I2C_PHILIPSPAR=y' $(LINUX)/.config; then echo 1; fi),1) 
     
    5256ifneq ($(shell if grep -q '^CONFIG_I2C_ALGOPCF=y' $(LINUX)/.config; then echo 1; fi),1) 
    5357KERNELTARGETS += $(MODULE_DIR)/i2c-algo-pcf.o 
     58KERNELINCLUDES += $(MODULE_DIR)/i2c-algo-pcf.h 
    5459endif 
    5560# will not build outside kernel tree  
    5661ifneq ($(shell if grep -q '^CONFIG_I2C_ELEKTOR=y' $(LINUX)/.config; then echo 1; fi),1) 
    5762#KERNELTARGETS += $(MODULE_DIR)/i2c-elektor.o 
     63#KERNELINCLUDES += $(MODULE_DIR)/i2c-pcf8584.h 
    5864endif 
    5965ifneq ($(shell if grep -q '^CONFIG_I2C_PROC=y' $(LINUX)/.config; then echo 1; fi),1) 
    6066KERNELTARGETS += $(MODULE_DIR)/i2c-proc.o 
     67KERNELINCLUDES += $(MODULE_DIR)/i2c-proc.h 
    6168endif 
    6269ifneq ($(shell if grep -q '^CONFIG_I2C_PPORT=y' $(LINUX)/.config; then echo 1; fi),1) 
     
    7683#ifneq ($(shell if grep -q '^CONFIG_I2C_ALGO8XX=y' $(LINUX)/.config; then echo 1; fi),1) 
    7784#KERNELTARGETS += $(MODULE_DIR)/i2c-algo-8xx.o 
     85#KERNELINCLUDES += $(MODULE_DIR)/i2c-algo-8xx.h 
    7886#endif 
    7987#ifneq ($(shell if grep -q '^CONFIG_I2C_RPXLITE=y' $(LINUX)/.config; then echo 1; fi),1) 
     
    104112          $(RMDIR) $(DESTDIR)$(MODPREF)/misc 2> /dev/null || true ; \ 
    105113        fi 
     114        if [ -n "$(KERNELINCLUDES)" ] ; then \ 
     115          $(MKDIR) $(DESTDIR)$(LINUX_INCLUDE_DIR) ; \ 
     116          $(INSTALL) -m 644 $(KERNELINCLUDES) $(DESTDIR)$(LINUX_INCLUDE_DIR) ; \ 
     117        fi 
    106118install :: install-kernel 
    107119