Add --bpf-out-dir argument to control where the final build products land (#13099)

(cherry picked from commit b169d9cfbe)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-10-23 07:56:35 +00:00
committed by GitHub
parent be2ace47e3
commit dd33aae3cf
5 changed files with 47 additions and 25 deletions

View File

@@ -29,6 +29,11 @@ if ! command -v readelf > /dev/null; then
exit 1
fi
set -e
out_dir=$(dirname "$dump")
if [[ ! -d $out_dir ]]; then
mkdir -p "$out_dir"
fi
dump_mangled=$dump.mangled
(

View File

@@ -14,4 +14,10 @@ fi
bpf_sdk=$(cd "$(dirname "$0")/.." && pwd)
# shellcheck source=sdk/bpf/env.sh
source "$bpf_sdk"/env.sh
set -e
out_dir=$(dirname "$so_stripped")
if [[ ! -d $out_dir ]]; then
mkdir -p "$out_dir"
fi
"$bpf_sdk"/dependencies/llvm-native/bin/llvm-objcopy --strip-all "$so" "$so_stripped"