Changeset 3819

Show
Ignore:
Timestamp:
07/10/03 14:23:12 (11 years ago)
Author:
khali
Message:

Add a fat warning if I2C support is built into the kernel.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/branches/lk2-4/Makefile

    r3817 r3819  
    174174 
    175175all :: 
     176ifeq ($(shell if grep -q '^CONFIG_I2C=y' $(LINUX)/.config; then echo 1; fi),1) 
     177        @echo "*************** WARNING *************************** WARNING ***************" 
     178        @echo "***                                                                     ***" 
     179        @echo "*** You have I2C support built into your kernel (CONFIG_I2C=y). Unless  ***" 
     180        @echo "*** you know what you are doing, installing our version of i2c will not ***" 
     181        @echo "*** work. Newly built i2c modules probably won't load. Other modules    ***" 
     182        @echo "*** that rely on the i2c layer, such as lm_sensors, will fail to        ***" 
     183        @echo "*** compile. Please consider compiling your kernel again with I2C       ***" 
     184        @echo "*** support enabled as modules or disabled.                             ***" 
     185        @echo "***                                                                     ***" 
     186        @echo "*************** WARNING *************************** WARNING ***************" 
     187endif 
    176188 
    177189install :: all