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>
This commit is contained in:
parent
e0974f31c6
commit
54d609a138
@ -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))
|
||||
|
11
config/ppc_64/meson.build
Normal file
11
config/ppc_64/meson.build
Normal file
@ -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)
|
5
lib/librte_eal/common/arch/ppc_64/meson.build
Normal file
5
lib/librte_eal/common/arch/ppc_64/meson.build
Normal file
@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
|
||||
|
||||
eal_common_arch_sources = files('rte_cpuflags.c',
|
||||
'rte_cycles.c', 'rte_hypervisor.c')
|
16
lib/librte_eal/common/include/arch/ppc_64/meson.build
Normal file
16
lib/librte_eal/common/include/arch/ppc_64/meson.build
Normal file
@ -0,0 +1,16 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
|
||||
|
||||
install_headers(
|
||||
'rte_atomic.h',
|
||||
'rte_byteorder.h',
|
||||
'rte_cpuflags.h',
|
||||
'rte_cycles.h',
|
||||
'rte_io.h',
|
||||
'rte_memcpy.h',
|
||||
'rte_pause.h',
|
||||
'rte_prefetch.h',
|
||||
'rte_rwlock.h',
|
||||
'rte_spinlock.h',
|
||||
'rte_vect.h',
|
||||
subdir: get_option('include_subdir_arch'))
|
Loading…
x
Reference in New Issue
Block a user