From: Frank Rowand <frank.rowand@am.sony.com>
To: Clark Williams <williams@redhat.com>
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Rowand, Frank" <Frank_Rowand@sonyusa.com>,
"linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>
Subject: Re: [PATCH] rt-tests - allow build without NUMA
Date: Mon, 26 Sep 2011 13:16:19 -0700 [thread overview]
Message-ID: <4E80DD93.3090908@am.sony.com> (raw)
In-Reply-To: <20110923160918.582041c8@redhat.com>
On 09/23/11 14:09, Clark Williams wrote:
> On Fri, 23 Sep 2011 21:46:32 +0200
> Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:
>
>> On Fri, Sep 23, 2011 at 12:26:03PM -0700, Frank Rowand wrote:
>>>
>>>
>
>
> How about this?
>
> diff --git a/Makefile b/Makefile
> index 4f51154..4776391 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -14,7 +14,11 @@ bindir ?= $(prefix)/bin
> mandir ?= $(prefix)/share/man
> srcdir ?= $(prefix)/src
>
> -NUMA := 1
> +machinetype = $(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 := 1
> +endif
>
> CFLAGS = -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include
>
> @@ -26,7 +30,7 @@ else
> CFLAGS += -O0 -g
> endif
>
> -ifdef NUMA
> +ifeq ($(NUMA),1)
> CFLAGS += -DNUMA
> NUMA_LIBS = -lnuma
> endif
That works for me.
The change from Uwe doesn't solve the NUMA issue for me because I
cross-compile, but I am quite happy to type:
make NUMA=0 CC="${CROSS_COMPILE}gcc"
which does solve the NUMA issue for me.
-Frank
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-09-26 20:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 19:26 [PATCH] rt-tests - allow build without NUMA Frank Rowand
2011-09-23 19:46 ` Uwe Kleine-König
2011-09-23 21:09 ` Clark Williams
2011-09-24 19:31 ` Uwe Kleine-König
2011-09-26 20:16 ` Frank Rowand [this message]
2011-09-26 20:25 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E80DD93.3090908@am.sony.com \
--to=frank.rowand@am.sony.com \
--cc=Frank_Rowand@sonyusa.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
--cc=williams@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.