SMP detection for newer kernels in Makefile

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@130 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1998-12-28 00:16:29 +00:00
1 parent 4de2f33a67
commit 8d608692ef
1 file changed
+5 -2
+5 -2
View File
@@ -21,8 +21,11 @@
# You need a full complement of GNU utilities to run this Makefile succesfully;
# most notably, you need bash, GNU make, flex and bison.
# Uncomment the third line on SMP systems if the magic invocation fails.
SMP := $(shell if grep -q '^SMP[[:space:]]*=' /usr/src/linux/Makefile; then echo 1; else echo 0; fi)
# Uncomment the third line on SMP systems if the magic invocation fails. It
# is a bit complicated because SMP configuration changed around kernel 2.1.130
SMP := $(shell if grep -q '^SMP[[:space:]]*=' /usr/src/linux/Makefile || \
grep -q '^CONFIG_SMP=y' /usr/src/linux/.config ; \
then echo 1; else echo 0; fi)
#SMP := 0
#SMP := 1