1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
4 # Custom EAL processing. EAL is complicated enough that it can't just
5 # have a straight list of headers and source files.
6 # Initially pull in common settings
8 subdir('common') # defines common_sources, common_objs, etc.
10 # Now do OS/exec-env specific settings, including building kernel modules
11 # The <exec-env>/eal/meson.build file should define env_sources, etc.
12 dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
13 subdir(exec_env + '/eal')
15 version = 11 # the version of the EAL API
16 allow_experimental_apis = true
18 if dpdk_conf.has('RTE_USE_LIBBSD')
21 if cc.has_function('getentropy', prefix : '#include <unistd.h>')
22 cflags += '-DRTE_LIBEAL_USE_GETENTROPY'
24 sources = common_sources + env_sources
25 objs = common_objs + env_objs
26 headers = common_headers + env_headers