mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
linux: fix perf build
properly set ARCH, CROSS_COMPILE, LDFLAGS and JOBS. This fixes build failure on aarch64 / kernel 4.4 and feature detection issues due to LTO warnings on 32bit Rockchip builds. Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
18ad7260b0
commit
2f3f746d7f
@ -164,6 +164,20 @@ make_target() {
|
||||
|
||||
if [ "$PKG_BUILD_PERF" = "yes" ] ; then
|
||||
( cd tools/perf
|
||||
|
||||
# arch specific perf build args
|
||||
case "$TARGET_ARCH" in
|
||||
x86_64)
|
||||
PERF_BUILD_ARGS="ARCH=x86"
|
||||
;;
|
||||
aarch64)
|
||||
PERF_BUILD_ARGS="ARCH=arm64"
|
||||
;;
|
||||
*)
|
||||
PERF_BUILD_ARGS="ARCH=$TARGET_ARCH"
|
||||
;;
|
||||
esac
|
||||
|
||||
WERROR=0 \
|
||||
NO_LIBPERL=1 \
|
||||
NO_LIBPYTHON=1 \
|
||||
@ -173,9 +187,11 @@ make_target() {
|
||||
NO_LIBAUDIT=1 \
|
||||
NO_LZMA=1 \
|
||||
NO_SDT=1 \
|
||||
LDFLAGS="-ldw -ldwfl -lebl -lelf -ldl -lz" \
|
||||
LDFLAGS="$LDFLAGS -ldw -ldwfl -lebl -lelf -ldl -lz" \
|
||||
EXTRA_PERFLIBS="-lebl" \
|
||||
make
|
||||
CROSS_COMPILE="$TARGET_PREFIX" \
|
||||
JOBS="$CONCURRENCY_MAKE_LEVEL" \
|
||||
make $PERF_BUILD_ARGS
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp perf $INSTALL/usr/bin
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user