X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flibrte_bpf%2Fmeson.build;h=13fc02db38ed92ec0df1307ae2c41042ec9f70b7;hb=a9f31a90bbf978fa57a876d670a53a5910c964ab;hp=de9de0091af2c45182c2c42f0357f3047bd3ed82;hpb=a93ff62a8938fd74711a6a96044d2dde78ce799b;p=dpdk.git diff --git a/lib/librte_bpf/meson.build b/lib/librte_bpf/meson.build index de9de0091a..13fc02db38 100644 --- a/lib/librte_bpf/meson.build +++ b/lib/librte_bpf/meson.build @@ -8,8 +8,10 @@ sources = files('bpf.c', 'bpf_pkt.c', 'bpf_validate.c') -if arch_subdir == 'x86' +if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64') sources += files('bpf_jit_x86.c') +elif dpdk_conf.has('RTE_ARCH_ARM64') + sources += files('bpf_jit_arm64.c') endif install_headers = files('bpf_def.h', @@ -18,8 +20,9 @@ install_headers = files('bpf_def.h', deps += ['mbuf', 'net', 'ethdev'] -dep = cc.find_library('elf', required: false) -if dep.found() == true and cc.has_header('libelf.h', dependencies: dep) +dep = dependency('libelf', required: false) +if dep.found() + dpdk_conf.set('RTE_LIBRTE_BPF_ELF', 1) sources += files('bpf_load_elf.c') ext_deps += dep endif