DPDK patches and discussions
 help / color / mirror / Atom feed
From: Fernando Seiti Furusato <ferseiti@linux.vnet.ibm.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] build: set CFLAGS for ppc64el build
Date: Fri, 12 Feb 2016 12:05:13 -0500	[thread overview]
Message-ID: <1455296713-7417-1-git-send-email-ferseiti@linux.vnet.ibm.com> (raw)

Add a proper ifeq statement to set the mcpu as needed for ppc64el, as
the only one originally set is not valid for ppc architectures.

Signed-off-by: Fernando Seiti Furusato <ferseiti@linux.vnet.ibm.com>
---
 mk/machine/default/rte.vars.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/mk/machine/default/rte.vars.mk b/mk/machine/default/rte.vars.mk
index 53c6af6..77b4065 100644
--- a/mk/machine/default/rte.vars.mk
+++ b/mk/machine/default/rte.vars.mk
@@ -55,4 +55,8 @@
 # CPU_LDFLAGS =
 # CPU_ASFLAGS =
 
-MACHINE_CFLAGS += -march=core2
+ifeq (ppc64le,$(shell uname -m))
+        MACHINE_CFLAGS += -mcpu=power8
+else
+        MACHINE_CFLAGS += -march=core2
+endif
-- 
2.7.0

             reply	other threads:[~2016-02-12 17:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-12 17:05 Fernando Seiti Furusato [this message]
2016-02-12 17:37 ` Thomas Monjalon
2016-02-12 19:18   ` Fernando Seiti Furusato
2016-02-16 18:04     ` Fernando Seiti Furusato
2016-02-16 18:09       ` Thomas Monjalon
2016-02-16 19:07         ` Fernando Seiti Furusato

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=1455296713-7417-1-git-send-email-ferseiti@linux.vnet.ibm.com \
    --to=ferseiti@linux.vnet.ibm.com \
    --cc=dev@dpdk.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).