DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] mk: fix quoting for ARM mtune argument
@ 2017-04-10 12:18 Pascal Mazon
  2017-04-10 12:28 ` Jan Viktorin
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal Mazon @ 2017-04-10 12:18 UTC (permalink / raw)
  To: viktorin, hemant.agrawal; +Cc: dev, Pascal Mazon

The mtune argument needs an unquoted argument, otherwise the compiler
complains:

  arm-buildroot-linux-gnueabi-gcc.br_real: error:
    unrecognized argument in option ‘-mtune="cortex-a9"’

Fixes: 02a8686263de ("mk: introduce ARMv7 architecture")
Fixes: 4a7e4626975a ("mk: introduce NXP dpaa2 architecture based on armv8-a")

Reported-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
---

I couldn't test it though, as I don't have an ARM toolchain.

 mk/machine/armv7a/rte.vars.mk | 2 +-
 mk/machine/dpaa2/rte.vars.mk  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mk/machine/armv7a/rte.vars.mk b/mk/machine/armv7a/rte.vars.mk
index 36fa3dea1834..41c4c408278c 100644
--- a/mk/machine/armv7a/rte.vars.mk
+++ b/mk/machine/armv7a/rte.vars.mk
@@ -57,7 +57,7 @@
 MACHINE_CFLAGS += -march=armv7-a
 
 ifdef CONFIG_RTE_ARCH_ARM_TUNE
-MACHINE_CFLAGS += -mtune=$(CONFIG_RTE_ARCH_ARM_TUNE)
+MACHINE_CFLAGS += -mtune=$(CONFIG_RTE_ARCH_ARM_TUNE:"%"=%)
 endif
 
 MACHINE_CFLAGS += -mfpu=neon
diff --git a/mk/machine/dpaa2/rte.vars.mk b/mk/machine/dpaa2/rte.vars.mk
index 8541633c17dc..61ada89a6277 100644
--- a/mk/machine/dpaa2/rte.vars.mk
+++ b/mk/machine/dpaa2/rte.vars.mk
@@ -56,5 +56,5 @@
 MACHINE_CFLAGS += -march=armv8-a
 
 ifdef CONFIG_RTE_ARCH_ARM_TUNE
-MACHINE_CFLAGS += -mcpu=$(CONFIG_RTE_ARCH_ARM_TUNE)
+MACHINE_CFLAGS += -mcpu=$(CONFIG_RTE_ARCH_ARM_TUNE:"%"=%)
 endif
-- 
2.12.0.306.g4a9b9b3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] mk: fix quoting for ARM mtune argument
  2017-04-10 12:18 [dpdk-dev] [PATCH] mk: fix quoting for ARM mtune argument Pascal Mazon
@ 2017-04-10 12:28 ` Jan Viktorin
  2017-04-10 14:49   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Viktorin @ 2017-04-10 12:28 UTC (permalink / raw)
  To: Pascal Mazon; +Cc: hemant.agrawal, dev

On Mon, 10 Apr 2017 14:18:51 +0200
Pascal Mazon <pascal.mazon@6wind.com> wrote:

> The mtune argument needs an unquoted argument, otherwise the compiler
> complains:
> 
>   arm-buildroot-linux-gnueabi-gcc.br_real: error:
>     unrecognized argument in option ‘-mtune="cortex-a9"’
> 
> Fixes: 02a8686263de ("mk: introduce ARMv7 architecture")
> Fixes: 4a7e4626975a ("mk: introduce NXP dpaa2 architecture based on armv8-a")
> 
> Reported-by: Jan Viktorin <viktorin@rehivetech.com>
> Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>

Tested-by: Jan Viktorin <viktorin@rehivetech.com>

> ---
> 
> I couldn't test it though, as I don't have an ARM toolchain.

It works for me.

Jan


-- 
   Jan Viktorin                  E-mail: Viktorin@RehiveTech.com
   System Architect              Web:    www.RehiveTech.com
   RehiveTech
   Brno, Czech Republic

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] mk: fix quoting for ARM mtune argument
  2017-04-10 12:28 ` Jan Viktorin
@ 2017-04-10 14:49   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2017-04-10 14:49 UTC (permalink / raw)
  To: Pascal Mazon; +Cc: dev, Jan Viktorin, hemant.agrawal

2017-04-10 14:28, Jan Viktorin:
> On Mon, 10 Apr 2017 14:18:51 +0200
> Pascal Mazon <pascal.mazon@6wind.com> wrote:
> 
> > The mtune argument needs an unquoted argument, otherwise the compiler
> > complains:
> > 
> >   arm-buildroot-linux-gnueabi-gcc.br_real: error:
> >     unrecognized argument in option ‘-mtune="cortex-a9"’
> > 
> > Fixes: 02a8686263de ("mk: introduce ARMv7 architecture")
> > Fixes: 4a7e4626975a ("mk: introduce NXP dpaa2 architecture based on armv8-a")
> > 
> > Reported-by: Jan Viktorin <viktorin@rehivetech.com>
> > Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
> 
> Tested-by: Jan Viktorin <viktorin@rehivetech.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-10 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10 12:18 [dpdk-dev] [PATCH] mk: fix quoting for ARM mtune argument Pascal Mazon
2017-04-10 12:28 ` Jan Viktorin
2017-04-10 14:49   ` Thomas Monjalon

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).