From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Kollanukkaran Subject: [PATCH v1] mk: remove AVX512 disabled warning on non x86 Date: Sun, 24 Feb 2019 18:27:10 +0000 Message-ID: <20190224182643.19374-1-jerinj@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "thomas@monjalon.net" , "bruce.richardson@intel.com" , "ferruh.yigit@intel.com" , Jerin Jacob Kollanukkaran To: "dev@dpdk.org" Return-path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 9685D235 for ; Sun, 24 Feb 2019 19:27:15 +0100 (CET) Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" AVX512 is a x86 specific feature, So, enable AVX512 warning only on x86. Signed-off-by: Jerin Jacob --- mk/toolchain/gcc/rte.toolchain-compat.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mk/toolchain/gcc/rte.toolchain-compat.mk b/mk/toolchain/gcc/rt= e.toolchain-compat.mk index dbddc986e..df71e4a8b 100644 --- a/mk/toolchain/gcc/rte.toolchain-compat.mk +++ b/mk/toolchain/gcc/rte.toolchain-compat.mk @@ -22,6 +22,7 @@ HOST_GCC_VERSION =3D $(HOST_GCC_MAJOR)$(HOST_GCC_MINOR) =20 LD_VERSION =3D $(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 :=3D 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 =20 # if GCC is older than 4.x ifeq ($(shell test $(GCC_VERSION) -lt 40 && echo 1), 1) --=20 2.20.1