mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-21 11: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
+4
-1
@@ -22,7 +22,10 @@ MODULE_DIR := kernel
|
||||
|
||||
# Regrettably, even 'simply expanded variables' will not put their currently
|
||||
# defined value verbatim into the command-list of rules...
|
||||
KERNELTARGETS := $(MODULE_DIR)/sensors.o
|
||||
KERNELTARGETS :=
|
||||
ifneq ($(shell if grep -q '^CONFIG_SENSORS=y' $(LINUX)/.config; then echo 1; fi),1)
|
||||
KERNELTARGETS += $(MODULE_DIR)/sensors.o
|
||||
endif
|
||||
|
||||
# Include all dependency files
|
||||
INCLUDEFILES += $(KERNELTARGETS:.o=.d)
|
||||
|
||||
Reference in new issue
Block a user