eal: move OS-specific sub-directories
Since the kernel modules are moved to kernel/ directory, there is no need anymore for the sub-directory eal/ in linux/, freebsd/ and windows/. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
9c1e0dc39a
commit
a083f8cc77
12
MAINTAINERS
12
MAINTAINERS
@ -203,8 +203,8 @@ F: lib/librte_eal/common/*malloc*
|
||||
F: lib/librte_eal/common/eal_common_fbarray.c
|
||||
F: lib/librte_eal/common/eal_common_mem*
|
||||
F: lib/librte_eal/common/eal_hugepages.h
|
||||
F: lib/librte_eal/linux/eal/eal_mem*
|
||||
F: lib/librte_eal/freebsd/eal/eal_mem*
|
||||
F: lib/librte_eal/linux/eal_mem*
|
||||
F: lib/librte_eal/freebsd/eal_mem*
|
||||
F: doc/guides/prog_guide/env_abstraction_layer.rst
|
||||
F: app/test/test_external_mem.c
|
||||
F: app/test/test_func_reentrancy.c
|
||||
@ -289,8 +289,7 @@ M: Konstantin Ananyev <konstantin.ananyev@intel.com>
|
||||
F: lib/librte_eal/x86/
|
||||
|
||||
Linux EAL (with overlaps)
|
||||
F: lib/librte_eal/linux/Makefile
|
||||
F: lib/librte_eal/linux/eal/
|
||||
F: lib/librte_eal/linux/
|
||||
F: doc/guides/linux_gsg/
|
||||
|
||||
Linux UIO
|
||||
@ -300,13 +299,12 @@ F: drivers/bus/pci/linux/*uio*
|
||||
|
||||
Linux VFIO
|
||||
M: Anatoly Burakov <anatoly.burakov@intel.com>
|
||||
F: lib/librte_eal/linux/eal/*vfio*
|
||||
F: lib/librte_eal/linux/*vfio*
|
||||
F: drivers/bus/pci/linux/*vfio*
|
||||
|
||||
FreeBSD EAL (with overlaps)
|
||||
M: Bruce Richardson <bruce.richardson@intel.com>
|
||||
F: lib/librte_eal/freebsd/Makefile
|
||||
F: lib/librte_eal/freebsd/eal/
|
||||
F: lib/librte_eal/freebsd/
|
||||
F: doc/guides/freebsd_gsg/
|
||||
|
||||
FreeBSD contigmem
|
||||
|
@ -18,7 +18,7 @@ custom_target('rte_kni',
|
||||
'src=' + meson.current_source_dir(),
|
||||
'MODULE_CFLAGS=-include ' + meson.source_root() + '/config/rte_config.h' +
|
||||
' -I' + meson.source_root() + '/lib/librte_eal/include' +
|
||||
' -I' + meson.source_root() + '/lib/librte_eal/linux/eal/include' +
|
||||
' -I' + meson.source_root() + '/lib/librte_eal/linux/include' +
|
||||
' -I' + meson.build_root() +
|
||||
' -I' + meson.current_source_dir(),
|
||||
'modules'],
|
||||
|
@ -4,9 +4,9 @@
|
||||
include $(RTE_SDK)/mk/rte.vars.mk
|
||||
|
||||
DIRS-y += include
|
||||
DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += linux/eal
|
||||
DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += linux
|
||||
DEPDIRS-linux := include
|
||||
DIRS-$(CONFIG_RTE_EXEC_ENV_FREEBSD) += freebsd/eal
|
||||
DIRS-$(CONFIG_RTE_EXEC_ENV_FREEBSD) += freebsd
|
||||
DEPDIRS-freebsd := include
|
||||
|
||||
include $(RTE_SDK)/mk/rte.subdir.mk
|
||||
|
@ -20,7 +20,7 @@ LDLIBS += -lpthread
|
||||
LDLIBS += -lgcc_s
|
||||
LDLIBS += -lrte_kvargs
|
||||
|
||||
EXPORT_MAP := ../../rte_eal_version.map
|
||||
EXPORT_MAP := ../rte_eal_version.map
|
||||
|
||||
# specific to freebsd exec-env
|
||||
SRCS-$(CONFIG_RTE_EXEC_ENV_FREEBSD) := eal.c
|
8
lib/librte_eal/freebsd/include/meson.build
Normal file
8
lib/librte_eal/freebsd/include/meson.build
Normal file
@ -0,0 +1,8 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright 2020 Mellanox Technologies, Ltd
|
||||
|
||||
includes += include_directories('.')
|
||||
|
||||
headers += files(
|
||||
'rte_os.h',
|
||||
)
|
@ -1,11 +1,9 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2017 Intel Corporation
|
||||
|
||||
env_objs = []
|
||||
env_headers = files(
|
||||
'include/rte_os.h',
|
||||
)
|
||||
env_sources = files('eal_alarm.c',
|
||||
subdir('include')
|
||||
|
||||
sources += files('eal_alarm.c',
|
||||
'eal_cpuflags.c',
|
||||
'eal_debug.c',
|
||||
'eal_hugepage_info.c',
|
@ -7,7 +7,7 @@ LIB = librte_eal.a
|
||||
|
||||
ARCH_DIR ?= $(RTE_ARCH)
|
||||
|
||||
EXPORT_MAP := ../../rte_eal_version.map
|
||||
EXPORT_MAP := ../rte_eal_version.map
|
||||
VPATH += $(RTE_SDK)/lib/librte_eal/$(ARCH_DIR)
|
||||
|
||||
VPATH += $(RTE_SDK)/lib/librte_eal/common
|
9
lib/librte_eal/linux/include/meson.build
Normal file
9
lib/librte_eal/linux/include/meson.build
Normal file
@ -0,0 +1,9 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright 2020 Mellanox Technologies, Ltd
|
||||
|
||||
includes += include_directories('.')
|
||||
|
||||
headers += files(
|
||||
'rte_kni_common.h',
|
||||
'rte_os.h',
|
||||
)
|
@ -1,14 +1,9 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2017 Intel Corporation
|
||||
|
||||
eal_inc += include_directories('include')
|
||||
subdir('include')
|
||||
|
||||
env_objs = []
|
||||
env_headers = files(
|
||||
'include/rte_kni_common.h',
|
||||
'include/rte_os.h',
|
||||
)
|
||||
env_sources = files('eal_alarm.c',
|
||||
sources += files('eal_alarm.c',
|
||||
'eal_cpuflags.c',
|
||||
'eal_debug.c',
|
||||
'eal_hugepage_info.c',
|
@ -1,18 +1,13 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2017-2019 Intel Corporation
|
||||
|
||||
# Custom EAL processing. EAL is complicated enough that it can't just
|
||||
# have a straight list of headers and source files.
|
||||
# Initially pull in common settings
|
||||
eal_inc = [global_inc]
|
||||
includes += global_inc
|
||||
subdir('include')
|
||||
|
||||
subdir('common')
|
||||
|
||||
# Now do OS/exec-env specific settings, including building kernel modules
|
||||
# The <exec-env>/eal/meson.build file should define env_sources, etc.
|
||||
dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
|
||||
subdir(exec_env + '/eal')
|
||||
subdir(exec_env)
|
||||
|
||||
subdir(arch_subdir)
|
||||
|
||||
@ -27,7 +22,3 @@ endif
|
||||
if cc.has_header('getopt.h')
|
||||
cflags += ['-DHAVE_GETOPT_H', '-DHAVE_GETOPT', '-DHAVE_GETOPT_LONG']
|
||||
endif
|
||||
sources += env_sources
|
||||
objs = env_objs
|
||||
headers += env_headers
|
||||
includes += eal_inc
|
||||
|
8
lib/librte_eal/windows/include/meson.build
Normal file
8
lib/librte_eal/windows/include/meson.build
Normal file
@ -0,0 +1,8 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright 2020 Mellanox Technologies, Ltd
|
||||
|
||||
includes += include_directories('.')
|
||||
|
||||
headers += files(
|
||||
'rte_os.h',
|
||||
)
|
@ -1,13 +1,10 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright(c) 2019 Intel Corporation
|
||||
|
||||
eal_inc += include_directories('include')
|
||||
subdir('include')
|
||||
|
||||
env_objs = []
|
||||
env_headers = files(
|
||||
'include/rte_os.h',
|
||||
)
|
||||
env_sources = files('eal.c',
|
||||
sources += files(
|
||||
'eal.c',
|
||||
'eal_debug.c',
|
||||
'eal_lcore.c',
|
||||
'eal_thread.c',
|
@ -12,9 +12,9 @@ Note that following licenses are not exceptions:-
|
||||
---------------------------------------------------------------------------------------------------
|
||||
SPDX Identifier TB Approval Date GB Approval Date File name
|
||||
---------------------------------------------------------------------------------------------------
|
||||
1.MIT 10/23/2019 02/10/2020 lib/librte_eal/windows/eal/include/dirent.h
|
||||
2.BSD-2-Clause 10/23/2019 12/18/2019 lib/librte_eal/windows/eal/include/getopt.h
|
||||
1.MIT 10/23/2019 02/10/2020 lib/librte_eal/windows/include/dirent.h
|
||||
2.BSD-2-Clause 10/23/2019 12/18/2019 lib/librte_eal/windows/include/getopt.h
|
||||
3.ISC AND
|
||||
BSD-2-Clause 10/23/2019 12/18/2019 lib/librte_eal/windows/eal/getopt.c
|
||||
BSD-2-Clause 10/23/2019 12/18/2019 lib/librte_eal/windows/getopt.c
|
||||
4.GPL-2.0 09/25/2019 12/18/2019 buildtools/pmdinfogen/pmdinfogen.*
|
||||
---------------------------------------------------------------------------------------------------
|
||||
|
@ -29,7 +29,7 @@ abi_version_file = files('ABI_VERSION')
|
||||
# for passing to pmdinfogen scripts
|
||||
global_inc = include_directories('.', 'config',
|
||||
'lib/librte_eal/include',
|
||||
'lib/librte_eal/@0@/eal/include'.format(host_machine.system()),
|
||||
'lib/librte_eal/@0@/include'.format(host_machine.system()),
|
||||
)
|
||||
subdir('config')
|
||||
|
||||
|
@ -18,7 +18,7 @@ EXECENV_CFLAGS = -pthread
|
||||
endif
|
||||
|
||||
# include in every library to build
|
||||
EXECENV_CFLAGS += -I$(RTE_SDK)/lib/librte_eal/freebsd/eal/include
|
||||
EXECENV_CFLAGS += -I$(RTE_SDK)/lib/librte_eal/freebsd/include
|
||||
|
||||
EXECENV_LDFLAGS =
|
||||
EXECENV_LDLIBS = -lexecinfo
|
||||
|
@ -18,7 +18,7 @@ EXECENV_CFLAGS = -pthread
|
||||
endif
|
||||
|
||||
# include in every library to build
|
||||
EXECENV_CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linux/eal/include
|
||||
EXECENV_CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linux/include
|
||||
|
||||
EXECENV_LDLIBS =
|
||||
EXECENV_ASFLAGS =
|
||||
|
Loading…
Reference in New Issue
Block a user