mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-15 10:39:31 +00:00
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 git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@575 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4a2fdba03d
commit
c81440d21a
5 files changed
+63
-21
No files matched your search
@@ -20,8 +20,13 @@
|
||||
# verbatim in the rules, until it is redefined.
|
||||
MODULE_DIR := kernel/include
|
||||
|
||||
KERNELINCLUDEFILES := $(MODULE_DIR)/sensors.h $(MODULE_DIR)/i2c-isa.h
|
||||
|
||||
KERNELINCLUDEFILES :=
|
||||
ifneq ($(shell if grep -q '^CONFIG_SENSORS=y' $(LINUX)/.config; then echo 1; fi),1)
|
||||
KERNELINCLUDEFILES += $(MODULE_DIR)/sensors.h
|
||||
endif
|
||||
ifneq ($(shell if grep -q '^CONFIG_I2C_ISA=y' $(LINUX)/.config; then echo 1; fi),1)
|
||||
KERNELINCLUDEFILES += $(MODULE_DIR)/isa.h
|
||||
endif
|
||||
|
||||
install-all-kernel-include:
|
||||
$(MKDIR) $(SYSINCLUDEDIR)
|
||||
|
||||
Reference in new issue
Block a user