1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
13 exec_envs = {'freebsd': 0, 'linux': 1, 'windows': 2}
14 foreach env, id:exec_envs
15 dpdk_conf.set('RTE_ENV_' + env.to_upper(), id)
16 dpdk_conf.set10('RTE_EXEC_ENV_IS_' + env.to_upper(), (exec_env == env))
18 dpdk_conf.set('RTE_EXEC_ENV', exec_envs[exec_env])
20 dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
29 if dpdk_conf.has('RTE_USE_LIBBSD')
32 if cc.has_function('getentropy', prefix : '#include <unistd.h>')
33 cflags += '-DRTE_LIBEAL_USE_GETENTROPY'