Re: How to Determine Which Kernel

From: H. Peter Anvin (hpa@transmeta.com)
Date: Fri Mar 31 2000 - 18:47:46 EST


Followup to: <Pine.LNX.3.95.1000331173626.745A-100000@chaos.analogic.com>
By author: "Richard B. Johnson" <root@chaos.analogic.com>
In newsgroup: linux.dev.kernel
>
> My configuration file for building drivers does:
>
> echo "Checking for SMP capability"
> if uname -v | egrep SMP>/dev/null; then
> echo "CFLAGS += -D__SMP__" >>.config
> echo "This machine has SMP capability"
> else
> echo "This machine is not SMP capable"
> fi
>
> It works for me. Standard discalimer, 30 m or 30 s.
>

It only works if you're building for the running kernel. This is
severely broken. You should, instead, look at the headers in the
kernel include file tree you're building from.

       -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:30 EST