From patchwork Mon Apr 8 18:24:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Conole X-Patchwork-Id: 52438 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C81254F91; Mon, 8 Apr 2019 20:24:31 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 6CD5F2BCE for ; Mon, 8 Apr 2019 20:24:24 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D0AA930917AB; Mon, 8 Apr 2019 18:24:23 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (unknown [10.18.25.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id 535E56092E; Mon, 8 Apr 2019 18:24:23 +0000 (UTC) From: Aaron Conole To: dev@dpdk.org Cc: Konstantin Ananyev , Jerin Jacob , Gavin Hu Date: Mon, 8 Apr 2019 14:24:19 -0400 Message-Id: <20190408182420.4398-3-aconole@redhat.com> In-Reply-To: <20190408182420.4398-1-aconole@redhat.com> References: <20190408182420.4398-1-aconole@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 08 Apr 2019 18:24:23 +0000 (UTC) Subject: [dpdk-dev] [PATCH 2/3] acl: update the build for multi-arch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" For the introduction of the meson build, the build file for the ACL library architecture specific files was not ported. This means the compiler didn't know about the optimized versions when building the RTE_ACL library for each architecture. Now hook up the different architecures by checking the architecture build environment and including the right objects. Weak symbols aren't working with this commit but will get fixed to properly select the right runtime version in a future commit. Signed-off-by: Aaron Conole --- lib/librte_acl/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/librte_acl/meson.build b/lib/librte_acl/meson.build index 2207dbafe..03c19e4e5 100644 --- a/lib/librte_acl/meson.build +++ b/lib/librte_acl/meson.build @@ -27,5 +27,8 @@ if arch_subdir == 'x86' objs += avx2_tmplib.extract_objects('acl_run_avx2.c') cflags += '-DCC_AVX2_SUPPORT' endif - +elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64') + sources += files('acl_run_neon.c') +elif arch_subdir == 'ppc_64' + sources += files('acl_run_altivec.c') endif