Skip to content

Commit ddeb976

Browse files
committed
build: Pass NO_LIBELF/NO_LIBTRACEVENT when cross building perf
Ubuntu doesn't have a cross libelf/libtraceevent, so when cross building perf the build fails due to the missing libraries. Pass flags to the perf build to tell it to continue anyway.
1 parent 15bf9b6 commit ddeb976

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build/scripts/container-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ elif [[ "$1" == "docs" ]]; then
153153
elif [[ "$1" == "perf" ]]; then
154154
cmd="make $quiet -C tools/perf O=/output"
155155

156+
if [[ $(uname -m) != "ppc64le" ]]; then
157+
cmd+=" NO_LIBELF=1 NO_LIBTRACEEVENT=1"
158+
fi
159+
156160
if [[ -n "$PRE_CLEAN" ]]; then
157161
(set -x; $cmd clean)
158162
fi

0 commit comments

Comments
 (0)