diff options
author | James Hilliard <james.hilliard1@gmail.com> | 2022-01-30 21:47:38 -0700 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-31 16:42:07 +0900 |
commit | e3759ac43a3c0375e54799986343e2f101d14cc4 (patch) | |
tree | a0beef9e8f6dc395d06ee84217801729cb77d9c9 /src/core | |
parent | 408832e603b930d6d6062eb3bc6d6954a6ecb4f2 (diff) | |
download | systemd-e3759ac43a3c0375e54799986343e2f101d14cc4.tar.gz |
meson: use bpftool based strip when available
This should be useable in bpftool v5.13 or newer based on:
https://github.com/torvalds/linux/commit/d80b2fcbe0a023619e0fc73112f2a02c2662f6ab
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/bpf/meson.build | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/core/bpf/meson.build b/src/core/bpf/meson.build index c2465a845f..57a4c5393c 100644 --- a/src/core/bpf/meson.build +++ b/src/core/bpf/meson.build @@ -65,13 +65,23 @@ bpf_o_unstripped_cmd += [ '@OUTPUT@' ] -bpf_o_cmd = [ - llvm_strip, - '-g', - '@INPUT@', - '-o', - '@OUTPUT@' -] +if bpftool_strip + bpf_o_cmd = [ + bpftool, + 'g', + 'o', + '@OUTPUT@', + '@INPUT@' + ] +else + bpf_o_cmd = [ + llvm_strip, + '-g', + '@INPUT@', + '-o', + '@OUTPUT@' + ] +endif skel_h_cmd = [ bpftool, |