From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH] rt-tests - allow build without NUMA Date: Sat, 24 Sep 2011 21:31:51 +0200 Message-ID: <20110924193151.GU20550@pengutronix.de> References: <4E7CDD4B.2070202@am.sony.com> <20110923194632.GT20550@pengutronix.de> <20110923160918.582041c8@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Frank Rowand , linux-rt-users@vger.kernel.org To: Clark Williams Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:44008 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068Ab1IXTbz (ORCPT ); Sat, 24 Sep 2011 15:31:55 -0400 Content-Disposition: inline In-Reply-To: <20110923160918.582041c8@redhat.com> Sender: linux-rt-users-owner@vger.kernel.org List-ID: On Fri, Sep 23, 2011 at 04:09:18PM -0500, Clark Williams wrote: > On Fri, 23 Sep 2011 21:46:32 +0200 > Uwe Kleine-K=F6nig wrote: >=20 > > On Fri, Sep 23, 2011 at 12:26:03PM -0700, Frank Rowand wrote: > > >=20 > > >=20 >=20 >=20 > How about this? >=20 > diff --git a/Makefile b/Makefile > index 4f51154..4776391 100644 > --- a/Makefile > +++ b/Makefile > @@ -14,7 +14,11 @@ bindir ?=3D $(prefix)/bin > mandir ?=3D $(prefix)/share/man > srcdir ?=3D $(prefix)/src > =20 > -NUMA :=3D 1 > +machinetype =3D $(shell uname -m | \ > + sed -e 's/i.86/i386/' -e 's/mips.*/mips/' -e 's/ppc.*/powerpc/') > +ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),) > +NUMA :=3D 1 > +endif > =20 > CFLAGS =3D -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include > =20 > @@ -26,7 +30,7 @@ else > CFLAGS +=3D -O0 -g > endif > =20 > -ifdef NUMA > +ifeq ($(NUMA),1) > CFLAGS +=3D -DNUMA > NUMA_LIBS =3D -lnuma > endif Looks good. Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig = | Industrial Linux Solutions | http://www.pengutronix.de/= | -- To unsubscribe from this list: send the line "unsubscribe linux-rt-user= s" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html