summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2018-09-10 12:32:43 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-09-17 12:21:17 +0200
commit54d609a13876a80bb791726e91e631262f1921a1 (patch)
tree89f7ee42d576d40ea12d83bc7416f72f650c9130 /config
parente0974f31c62403d54c5a13d1e53b4ad5dc31c5b0 (diff)
downloaddpdk-next-eventdev-54d609a13876a80bb791726e91e631262f1921a1.zip
dpdk-next-eventdev-54d609a13876a80bb791726e91e631262f1921a1.tar.gz
dpdk-next-eventdev-54d609a13876a80bb791726e91e631262f1921a1.tar.xz
build: add ppc64 meson build
This has been only build-tested for now, on a native ppc64el POWER8E machine running Debian sid. Signed-off-by: Luca Boccassi <bluca@debian.org> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'config')
-rw-r--r--config/meson.build10
-rw-r--r--config/ppc_64/meson.build11
2 files changed, 20 insertions, 1 deletions
diff --git a/config/meson.build b/config/meson.build
index 4d75532..6f9228c 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -9,7 +9,13 @@ else
endif
dpdk_conf.set('RTE_MACHINE', machine)
machine_args = []
-machine_args += '-march=' + machine
+# ppc64 does not support -march=native
+if host_machine.cpu_family().startswith('ppc') and machine == 'native'
+ machine_args += '-mcpu=' + machine
+ machine_args += '-mtune=' + machine
+else
+ machine_args += '-march=' + machine
+endif
toolchain = cc.get_id()
dpdk_conf.set_quoted('RTE_TOOLCHAIN', toolchain)
@@ -84,6 +90,8 @@ if host_machine.cpu_family().startswith('x86')
arch_subdir = 'x86'
elif host_machine.cpu_family().startswith('arm') or host_machine.cpu_family().startswith('aarch')
arch_subdir = 'arm'
+elif host_machine.cpu_family().startswith('ppc')
+ arch_subdir = 'ppc_64'
endif
subdir(arch_subdir)
dpdk_conf.set('RTE_COMPILE_TIME_CPUFLAGS', ','.join(compile_time_cpuflags))
diff --git a/config/ppc_64/meson.build b/config/ppc_64/meson.build
new file mode 100644
index 0000000..e207c43
--- /dev/null
+++ b/config/ppc_64/meson.build
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
+
+dpdk_conf.set('RTE_ARCH', 'ppc_64')
+dpdk_conf.set('RTE_ARCH_PPC_64', 1)
+dpdk_conf.set('RTE_ARCH_64', 1)
+
+# overrides specific to ppc64
+dpdk_conf.set('RTE_MAX_LCORE', 256)
+dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)
+dpdk_conf.set('RTE_CACHE_LINE_SIZE', 128)