From 8d608692ef5cb339005d171b74f27a0adf20e4fd Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Mon, 28 Dec 1998 00:16:29 +0000 Subject: [PATCH] SMP detection for newer kernels in Makefile git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@130 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1df24a90..7df5c6b0 100644 --- a/Makefile +++ b/Makefile @@ -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