summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorJerin Jacob <jerinj@marvell.com>2019-02-24 18:27:10 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-05 12:08:30 +0000
commit0c3b8a2c7d7d8ea713d252127059d1bd08eb0f5e (patch)
tree521638c060cf5068325659e57cb62d7b79e74bd0 /mk
parent5a10413c5812be50a0c03c5ea5622a7b3cd7dbad (diff)
downloaddpdk-next-eventdev-0c3b8a2c7d7d8ea713d252127059d1bd08eb0f5e.zip
dpdk-next-eventdev-0c3b8a2c7d7d8ea713d252127059d1bd08eb0f5e.tar.gz
dpdk-next-eventdev-0c3b8a2c7d7d8ea713d252127059d1bd08eb0f5e.tar.xz
mk: fix AVX512 disabled warning on non x86
AVX512 is a x86 specific feature, So, enable AVX512 warning only on x86. Fixes: a32ca9a4ebc1 ("mk: fix scope of disabling AVX512F support") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob <jerinj@marvell.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/toolchain/gcc/rte.toolchain-compat.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/mk/toolchain/gcc/rte.toolchain-compat.mk b/mk/toolchain/gcc/rte.toolchain-compat.mk
index dbddc98..df71e4a 100644
--- a/mk/toolchain/gcc/rte.toolchain-compat.mk
+++ b/mk/toolchain/gcc/rte.toolchain-compat.mk
@@ -22,6 +22,7 @@ HOST_GCC_VERSION = $(HOST_GCC_MAJOR)$(HOST_GCC_MINOR)
LD_VERSION = $(shell $(LD) -v)
# disable AVX512F support for GCC & binutils 2.30 as a workaround for Bug 97
+ifeq ($(CONFIG_RTE_ARCH_X86), y)
ifneq ($(filter 2.30%,$(LD_VERSION)),)
FORCE_DISABLE_AVX512 := y
# print warning only once for librte_eal
@@ -29,6 +30,7 @@ ifneq ($(filter %librte_eal,$(CURDIR)),)
$(warning AVX512 support disabled because of ld 2.30. See Bug 97)
endif
endif
+endif
# if GCC is older than 4.x
ifeq ($(shell test $(GCC_VERSION) -lt 40 && echo 1), 1)