d23e141ffa
Rather than relying on the target machine architecture, use the size of a pointer from the compiler to determine if we are 64-bits or not. This allows correct behaviour when you pass -m32 as a compile option. It also allows us to use this value repeatedly throughout the repo rather than continually testing for the sizeof(void*). Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Tested-by: Luca Boccassi <bluca@debian.org> Acked-by: Luca Boccassi <bluca@debian.org>
14 lines
425 B
Meson
14 lines
425 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
|
|
|
|
if not dpdk_conf.get('RTE_ARCH_64')
|
|
error('Only 64-bit compiles are supported for this platform type')
|
|
endif
|
|
dpdk_conf.set('RTE_ARCH', 'ppc_64')
|
|
dpdk_conf.set('RTE_ARCH_PPC_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)
|