[dpdk-dev] [PATCH 2/3] acl: update the build for multi-arch

Aaron Conole aconole at redhat.com
Mon Apr 8 20:24:19 CEST 2019


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 <aconole at redhat.com>
---
 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
-- 
2.19.1



More information about the dev mailing list