Changeset 130

Show
Ignore:
Timestamp:
12/28/98 01:16:29 (14 years ago)
Author:
frodo
Message:

SMP detection for newer kernels in Makefile

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r106 r130  
    2222# most notably, you need bash, GNU make, flex and bison. 
    2323 
    24 # Uncomment the third line on SMP systems if the magic invocation fails. 
    25 SMP := $(shell if grep -q '^SMP[[:space:]]*=' /usr/src/linux/Makefile; then echo 1; else echo 0; fi) 
     24# Uncomment the third line on SMP systems if the magic invocation fails. It 
     25# is a bit complicated because SMP configuration changed around kernel 2.1.130 
     26SMP := $(shell if grep -q '^SMP[[:space:]]*=' /usr/src/linux/Makefile || \ 
     27                  grep -q '^CONFIG_SMP=y' /usr/src/linux/.config ;  \ 
     28               then echo 1; else echo 0; fi) 
    2629#SMP := 0 
    2730#SMP := 1