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: Mon, 26 Sep 2011 22:25:41 +0200 Message-ID: <20110926202541.GI20550@pengutronix.de> References: <4E7CDD4B.2070202@am.sony.com> <20110923194632.GT20550@pengutronix.de> <20110923160918.582041c8@redhat.com> <4E80DD93.3090908@am.sony.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Clark Williams , "Rowand, Frank" , "linux-rt-users@vger.kernel.org" To: Frank Rowand Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:35638 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752140Ab1IZUZt (ORCPT ); Mon, 26 Sep 2011 16:25:49 -0400 Content-Disposition: inline In-Reply-To: <4E80DD93.3090908@am.sony.com> Sender: linux-rt-users-owner@vger.kernel.org List-ID: On Mon, Sep 26, 2011 at 01:16:19PM -0700, Frank Rowand wrote: > On 09/23/11 14:09, 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 > > 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 >=20 > That works for me. >=20 > The change from Uwe doesn't solve the NUMA issue for me because I > cross-compile, but I am quite happy to type: Yeah, my patch was meant on top of your's. So I get exactly what I wanted by Clark :-) 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