Merge pull request #2505 from HiassofT/le9-perf-fix

fix perf build
This commit is contained in:
MilhouseVH 2018-02-22 12:21:04 +00:00 committed by GitHub
commit 0e3461acf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 44 additions and 3 deletions

View File

@ -52,6 +52,10 @@ PKG_CONFIGURE_OPTS_TARGET="bash_cv_have_mbstate_t=set \
--enable-libssp \
--disable-werror"
makeinstall_target() {
make DESTDIR=$INSTALL install
}
post_makeinstall_target() {
rm -rf $INSTALL/usr/share/gdb/python
}

View File

@ -29,3 +29,7 @@ PKG_LONGDESC="library to determine the call-chain of a program"
PKG_CONFIGURE_OPTS_TARGET="--enable-static \
--disable-shared"
makeinstall_target() {
make DESTDIR=$SYSROOT_PREFIX install
}

View File

@ -50,6 +50,8 @@ PKG_CONFIGURE_OPTS_TARGET="--target=$TARGET_NAME \
--with-lib-path=$SYSROOT_PREFIX/lib:$SYSROOT_PREFIX/usr/lib \
--without-ppl \
--without-cloog \
--enable-static \
--disable-shared \
--disable-werror \
--disable-multilib \
--disable-libada \
@ -79,10 +81,12 @@ makeinstall_host() {
make_target() {
make configure-host
make -C libiberty libiberty.a
make -C libiberty
make -C bfd
}
makeinstall_target() {
mkdir -p $SYSROOT_PREFIX/usr/lib
cp libiberty/libiberty.a $SYSROOT_PREFIX/usr/lib
make DESTDIR="$SYSROOT_PREFIX" -C bfd install
}

View File

@ -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
)

View File

@ -0,0 +1,13 @@
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index 0294bfb6c5f8..153036bbed7e 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -35,7 +35,7 @@ ifeq ($(SRCARCH),x86)
ifeq (${IS_64_BIT}, 1)
CFLAGS += -DHAVE_ARCH_X86_64_SUPPORT -DHAVE_SYSCALL_TABLE -I$(OUTPUT)arch/x86/include/generated
ARCH_INCLUDE = ../../arch/x86/lib/memcpy_64.S ../../arch/x86/lib/memset_64.S
- LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind -llzma
+ LIBUNWIND_LIBS = -lunwind-x86_64 -lunwind
$(call detected,CONFIG_X86_64)
else
LIBUNWIND_LIBS = -lunwind-x86 -llzma -lunwind