Show
Ignore:
Timestamp:
09/23/99 01:11:52 (14 years ago)
Author:
frodo
Message:

Makefile changes for better behaviour with already patched kernels.

The Makefile now examine $(LINUX)/.config to see what modules need to be
compiled. It compiles only those modules which were either not configured
in at all, or were built as modules (ie. drivers which are built-in in the
kernel are not built, as they can not be overruled).

The above is still potentially dangerous, if we break the interface of
our modules. Still, it is much better than it was.
C

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/include/Module.mk

    r496 r575  
    2121MODULE_DIR := kernel/include 
    2222 
    23 KERNELINCLUDEFILES := $(MODULE_DIR)/sensors.h $(MODULE_DIR)/i2c-isa.h  
    24                        
     23KERNELINCLUDEFILES :=  
     24ifneq ($(shell if grep -q '^CONFIG_SENSORS=y' $(LINUX)/.config; then echo 1; fi),1) 
     25KERNELINCLUDEFILES += $(MODULE_DIR)/sensors.h 
     26endif 
     27ifneq ($(shell if grep -q '^CONFIG_I2C_ISA=y' $(LINUX)/.config; then echo 1; fi),1) 
     28KERNELINCLUDEFILES += $(MODULE_DIR)/isa.h 
     29endif 
    2530 
    2631install-all-kernel-include: