Skip to contentSkip to conversation

mk: fix march for octeontx2 target

PATCH Applied [email protected] 2 participants 2 messages Jul 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mk: fix march for octeontx2 target

From: Jerin Jacob <[email protected]>

Correct the wrong -march=-mcpu=armv8.2-a+crc+crypto+lse for octeontx2 target. Since rte_cc_has_argument drops invalid CFLAG and -mcpu=octeontx2 picks up the correct optimization, this typo is not noticed in performance testing.

Fixes 01d184798731 ("config: add octeontx2 machine")
---
 mk/machine/octeontx2/rte.vars.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mk/machine/octeontx2/rte.vars.mk +1 -1
index cbec7f14d..e209cf492 100644
@@ -30,5 +30,5 @@
 
 include $(RTE_SDK)/mk/rte.helper.mk
 
-MACHINE_CFLAGS += $(call rte_cc_has_argument, -march=-mcpu=armv8.2-a+crc+crypto+lse)
+MACHINE_CFLAGS += $(call rte_cc_has_argument, -march=armv8.2-a+crc+crypto+lse)
 MACHINE_CFLAGS += $(call rte_cc_has_argument, -mcpu=octeontx2)
Signature · 1 line
2.21.0
#1 lore raw

02/07/2019 17:06, [email protected]:

Quoted 11 lines

From: Jerin Jacob <[email protected]>

Correct the wrong -march=-mcpu=armv8.2-a+crc+crypto+lse for octeontx2 target. Since rte_cc_has_argument drops invalid CFLAG and -mcpu=octeontx2 picks up the correct optimization, this typo is not noticed in performance testing.

Fixes 01d184798731 ("config: add octeontx2 machine")

Applied, thanks