eal: move arch-specific C files
The arch-specific directories arm, ppc and x86 in common/arch/ are moved at the same level as the OS-specific directories. It makes more clear that EAL is covering a matrix combining OS and arch. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: David Christensen <drc@linux.vnet.ibm.com> Acked-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
dd45ed7e74
commit
2a1991799e
@ -261,7 +261,7 @@ F: app/test/test_rand_perf.c
|
||||
ARM v7
|
||||
M: Jan Viktorin <viktorin@rehivetech.com>
|
||||
M: Gavin Hu <gavin.hu@arm.com>
|
||||
F: lib/librte_eal/common/arch/arm/
|
||||
F: lib/librte_eal/arm/
|
||||
F: lib/librte_eal/common/include/arch/arm/
|
||||
|
||||
ARM v8
|
||||
@ -281,7 +281,7 @@ F: drivers/net/virtio/virtio_rxtx_simple_neon.c
|
||||
|
||||
IBM POWER (alpha)
|
||||
M: David Christensen <drc@linux.vnet.ibm.com>
|
||||
F: lib/librte_eal/common/arch/ppc_64/
|
||||
F: lib/librte_eal/ppc/
|
||||
F: lib/librte_eal/common/include/arch/ppc_64/
|
||||
F: drivers/net/i40e/i40e_rxtx_vec_altivec.c
|
||||
F: examples/l3fwd/*altivec.h
|
||||
@ -289,7 +289,7 @@ F: examples/l3fwd/*altivec.h
|
||||
Intel x86
|
||||
M: Bruce Richardson <bruce.richardson@intel.com>
|
||||
M: Konstantin Ananyev <konstantin.ananyev@intel.com>
|
||||
F: lib/librte_eal/common/arch/x86/
|
||||
F: lib/librte_eal/x86/
|
||||
F: lib/librte_eal/common/include/arch/x86/
|
||||
|
||||
Linux EAL (with overlaps)
|
||||
|
@ -79,7 +79,7 @@ bsd_sources()
|
||||
|
||||
arm_common()
|
||||
{
|
||||
find_sources "lib/librte_eal/common/arch/arm" '*.[chS]'
|
||||
find_sources "lib/librte_eal/arm" '*.[chS]'
|
||||
find_sources "$source_dirs" '*neon*.[chS]'
|
||||
}
|
||||
|
||||
@ -100,8 +100,7 @@ arm_64_sources()
|
||||
|
||||
x86_common()
|
||||
{
|
||||
find_sources "lib/librte_eal/common/arch/x86" '*.[chS]'
|
||||
|
||||
find_sources "lib/librte_eal/x86" '*.[chS]'
|
||||
find_sources "examples/performance-thread/common/arch/x86" '*.[chS]'
|
||||
find_sources "$source_dirs" '*_sse*.[chS]'
|
||||
find_sources "$source_dirs" '*_avx*.[chS]'
|
||||
@ -124,7 +123,7 @@ x86_64_sources()
|
||||
|
||||
ppc_64_sources()
|
||||
{
|
||||
find_sources "lib/librte_eal/common/arch/ppc_64" '*.[chS]'
|
||||
find_sources "lib/librte_eal/ppc" '*.[chS]'
|
||||
find_sources "lib/librte_eal/common/include/arch/ppc_64" '*.[chS]'
|
||||
find_sources "$source_dirs" '*altivec*.[chS]'
|
||||
}
|
||||
|
8
lib/librte_eal/arm/meson.build
Normal file
8
lib/librte_eal/arm/meson.build
Normal file
@ -0,0 +1,8 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
|
||||
sources += files(
|
||||
'rte_cpuflags.c',
|
||||
'rte_cycles.c',
|
||||
'rte_hypervisor.c',
|
||||
)
|
@ -1,5 +0,0 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2017 Intel Corporation.
|
||||
|
||||
eal_common_arch_sources = files('rte_cpuflags.c',
|
||||
'rte_cycles.c', 'rte_hypervisor.c')
|
@ -1 +0,0 @@
|
||||
ppc_64
|
@ -1,5 +0,0 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2017 Intel Corporation
|
||||
|
||||
eal_common_arch_sources = files('rte_spinlock.c', 'rte_cpuflags.c',
|
||||
'rte_cycles.c', 'rte_hypervisor.c')
|
@ -41,13 +41,6 @@ common_sources = files(
|
||||
'rte_service.c'
|
||||
)
|
||||
|
||||
# get architecture specific sources and objs
|
||||
eal_common_arch_sources = []
|
||||
eal_common_arch_objs = []
|
||||
subdir(join_paths('arch', arch_subdir))
|
||||
common_sources += eal_common_arch_sources
|
||||
common_objs += eal_common_arch_objs
|
||||
|
||||
common_headers = files(
|
||||
'include/rte_alarm.h',
|
||||
'include/rte_branch_prediction.h',
|
||||
|
@ -7,7 +7,7 @@ LIB = librte_eal.a
|
||||
|
||||
ARCH_DIR ?= $(RTE_ARCH)
|
||||
VPATH += $(RTE_SDK)/lib/librte_eal/common
|
||||
VPATH += $(RTE_SDK)/lib/librte_eal/common/arch/$(ARCH_DIR)
|
||||
VPATH += $(RTE_SDK)/lib/librte_eal/$(ARCH_DIR)
|
||||
|
||||
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
||||
CFLAGS += -I$(SRCDIR)/include
|
||||
|
@ -8,7 +8,7 @@ LIB = librte_eal.a
|
||||
ARCH_DIR ?= $(RTE_ARCH)
|
||||
|
||||
EXPORT_MAP := ../../rte_eal_version.map
|
||||
VPATH += $(RTE_SDK)/lib/librte_eal/common/arch/$(ARCH_DIR)
|
||||
VPATH += $(RTE_SDK)/lib/librte_eal/$(ARCH_DIR)
|
||||
|
||||
VPATH += $(RTE_SDK)/lib/librte_eal/common
|
||||
|
||||
|
@ -12,6 +12,8 @@ subdir('common') # defines common_sources, common_objs, etc.
|
||||
dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
|
||||
subdir(exec_env + '/eal')
|
||||
|
||||
subdir(arch_subdir)
|
||||
|
||||
allow_experimental_apis = true
|
||||
deps += 'kvargs'
|
||||
if dpdk_conf.has('RTE_USE_LIBBSD')
|
||||
@ -23,7 +25,7 @@ endif
|
||||
if cc.has_header('getopt.h')
|
||||
cflags += ['-DHAVE_GETOPT_H', '-DHAVE_GETOPT', '-DHAVE_GETOPT_LONG']
|
||||
endif
|
||||
sources = common_sources + env_sources
|
||||
sources += common_sources + env_sources
|
||||
objs = common_objs + env_objs
|
||||
headers = common_headers + env_headers
|
||||
includes = eal_inc
|
||||
|
@ -1,5 +1,8 @@
|
||||
# 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')
|
||||
sources += files(
|
||||
'rte_cpuflags.c',
|
||||
'rte_cycles.c',
|
||||
'rte_hypervisor.c',
|
||||
)
|
9
lib/librte_eal/x86/meson.build
Normal file
9
lib/librte_eal/x86/meson.build
Normal file
@ -0,0 +1,9 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2017 Intel Corporation
|
||||
|
||||
sources += files(
|
||||
'rte_cpuflags.c',
|
||||
'rte_cycles.c',
|
||||
'rte_hypervisor.c',
|
||||
'rte_spinlock.c',
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user