diff options
author | Julia Kartseva <hex@fb.com> | 2021-04-19 23:30:08 -0700 |
---|---|---|
committer | Julia Kartseva <hex@fb.com> | 2021-04-26 16:21:59 -0700 |
commit | 09fc220c52fad8fdc8648ab5b8162b822b6565b6 (patch) | |
tree | 9a1747de8767466f0159ed64aeb8f044494a2065 /src/core/bpf | |
parent | 7d861e12637892f1fcf7bbd69e4aec5a096f4bcb (diff) | |
download | systemd-09fc220c52fad8fdc8648ab5b8162b822b6565b6.tar.gz |
meson, bpf: add build rule for socket-bind program
Diffstat (limited to 'src/core/bpf')
-rw-r--r-- | src/core/bpf/socket_bind/meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/bpf/socket_bind/meson.build b/src/core/bpf/socket_bind/meson.build new file mode 100644 index 0000000000..0ea8e5796d --- /dev/null +++ b/src/core/bpf/socket_bind/meson.build @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: LGPL-2.1+ + +if conf.get('BPF_FRAMEWORK') == 1 + socket_bind_skel_h = custom_target( + 'socket-bind.skel.h', + input : 'socket-bind.bpf.c', + output : 'socket-bind.skel.h', + command : [build_bpf_skel_py, + '--clang_exec', clang.path(), + '--llvm_strip_exec', llvm_strip.path(), + '--bpftool_exec', bpftool.path(), + '--arch', host_machine.cpu_family(), + '@INPUT@', '@OUTPUT@']) +endif |