mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +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
@@ -32,11 +32,9 @@ LINUX=/usr/src/linux
|
||||
LINUX_HEADERS=$(LINUX)/include
|
||||
|
||||
# Determine whether we need to compile the kernel modules, or only the
|
||||
# user-space utilities.
|
||||
COMPILE_KERNEL := $(shell if test -d $(LINUX)/drivers/sensors ; \
|
||||
then echo 0; else echo 1; fi)
|
||||
# user-space utilities. By default, the kernel modules are compiled.
|
||||
#COMPILE_KERNEL := 0
|
||||
#COMPILE_KERNEL := 1
|
||||
COMPILE_KERNEL := 1
|
||||
|
||||
# If you have installed the i2c header at some other place (like
|
||||
# /usr/local/include/linux), set that directory here. Please check this out
|
||||
|
||||
Reference in new issue
Block a user