1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
4 allow_experimental_apis = true
5 sources = files('bpf.c',
11 if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64')
12 sources += files('bpf_jit_x86.c')
13 elif dpdk_conf.has('RTE_ARCH_ARM64')
14 sources += files('bpf_jit_arm64.c')
17 install_headers('bpf_def.h',
21 deps += ['mbuf', 'net', 'ethdev']
23 dep = dependency('libelf', required: false)
25 dpdk_conf.set('RTE_LIBRTE_BPF_ELF', 1)
26 sources += files('bpf_load_elf.c')