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 cc.sizeof('void *') == 8
12 sources += files('bpf_jit_x86.c')
15 install_headers = files('bpf_def.h',
19 deps += ['mbuf', 'net', 'ethdev']
21 dep = cc.find_library('elf', required: false)
22 if dep.found() == true and cc.has_header('libelf.h', dependencies: dep)
23 sources += files('bpf_load_elf.c')