[PATCH v1 0/6] perf: build: Fix cross compilation

Leo Yan posted 6 patches 1 year, 8 months ago
There is a newer version of this series
tools/build/feature/Makefile | 42 +++++++++++++++++++++++++++---------
tools/perf/Makefile.config   | 25 +++++++++++++++++++--
tools/perf/Makefile.perf     | 15 ++++++++++++-
3 files changed, 69 insertions(+), 13 deletions(-)
[PATCH v1 0/6] perf: build: Fix cross compilation
Posted by Leo Yan 1 year, 8 months ago
This patch series fixes cross compilation issues.

The first two patches address the package configuration issue. It sets
the package path so the compiler can find the architecture's package.
The patch 03 sets the Python configuration path and renames the .so to
reflect the build target.

The last three patches fix the static build failures. Patch 04 is to fix
the issue caused by newer version's elfutils, and the last patches fix
the building failure for feature detecting binaries.

This patch series is tested for building perf on x86_64 host for Arm64
target.

Leo Yan (6):
  perf: build: Setup PKG_CONFIG_LIBDIR for cross compilation
  perf: build: Append libtraceevent path in PKG_CONFIG_LIBDIR
  perf: build: Set Python configuration for cross compilation
  perf: build: Only link libebl.a for old libdw
  perf: build: Link lib 'lzma' for static build
  perf: build: Link lib 'zstd' for static build

 tools/build/feature/Makefile | 42 +++++++++++++++++++++++++++---------
 tools/perf/Makefile.config   | 25 +++++++++++++++++++--
 tools/perf/Makefile.perf     | 15 ++++++++++++-
 3 files changed, 69 insertions(+), 13 deletions(-)

-- 
2.34.1