mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-23 11:54:33 +00:00
Handle the case where /lib/modules/$KERNELVERSION/build doesn't
exist. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1654 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
552f899022
commit
be8a79a8bf
1 file changed
+3
-1
@@ -33,7 +33,9 @@ KERNELVERSION := $(shell uname -r)
|
||||
# The location of linux itself. This is used to find the kernel headers
|
||||
# and other things.
|
||||
#LINUX := /usr/src/linux
|
||||
LINUX := /lib/modules/$(KERNELVERSION)/build
|
||||
LINUX := $(shell if [ -L /lib/modules/$(KERNELVERSION)/build ] ; \
|
||||
then echo "/lib/modules/$(KERNELVERSION)/build" ; \
|
||||
else echo "/usr/src/linux" ; fi)
|
||||
LINUX_HEADERS := $(LINUX)/include
|
||||
|
||||
# Determine whether we need to compile the kernel modules, or only the
|
||||
|
||||
Reference in new issue
Block a user