Skip to content

Commit

Permalink
perf: fix build on PowerPC
Browse files Browse the repository at this point in the history
Building perf's intel-pt-decoder fails on both PPC32 and PPC64:

/home/stijn/Development/OpenWrt/openwrt/staging_dir/toolchain-powerpc64_e5500_gcc-13.2.0_musl/lib/gcc/powerpc64-openwrt-linux-musl/13.2.0/../../../../powerpc64-openwrt-linux-musl/bin/ld.bfd:
/home/stijn/Development/OpenWrt/openwrt/build_dir/target-powerpc64_e5500_musl/linux-qoriq_generic/linux-6.1.86/tools/
perf-target-powerpc64_e5500_musl/perf-in.o: in function `insn_set_byte':
/home/stijn/Development/OpenWrt/openwrt/build_dir/target-powerpc64_e5500_musl/linux-qoriq_generic/linux-6.1.86/tools/perf/util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h:64:
undefined reference to `__le32_to_cpu'

Add NO_AUXTRACE=1 to MAKE_FLAGS for LINUX_KARCH powerpc, which disables
build of intel-pt-decoder on both PPC32 and PPC64.

Signed-off-by: Stijn Tintel <[email protected]>
  • Loading branch information
stintel committed Apr 26, 2024
1 parent f10d55d commit f434643
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/devel/perf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ MAKE_FLAGS = \
O=$(PKG_BUILD_DIR) \
prefix=/usr

ifeq ($(LINUX_KARCH),powerpc)
MAKE_FLAGS += NO_AUXTRACE=1
endif

define Build/Compile
+$(MAKE) $(PKG_JOBS) $(MAKE_FLAGS) \
--no-print-directory \
Expand Down

0 comments on commit f434643

Please sign in to comment.