From: Pascal Mazon Date: Mon, 10 Apr 2017 12:18:51 +0000 (+0200) Subject: mk: fix quoting for ARM mtune argument X-Git-Tag: spdx-start~3682 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=be1d4e8564d34312f624781678c884a61e35f3b8;p=dpdk.git mk: fix quoting for ARM mtune argument 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") Cc: stable@dpdk.org Reported-by: Jan Viktorin Signed-off-by: Pascal Mazon Tested-by: Jan Viktorin --- diff --git a/mk/machine/armv7a/rte.vars.mk b/mk/machine/armv7a/rte.vars.mk index 36fa3dea18..41c4c40827 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 8541633c17..61ada89a62 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