public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/6] perf: build: Fix cross compilation
@ 2024-06-04  9:32 Leo Yan
  2024-06-04  9:32 ` [PATCH v1 1/6] perf: build: Setup PKG_CONFIG_LIBDIR for " Leo Yan
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Leo Yan @ 2024-06-04  9:32 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Mark Rutland, James Clark,
	Ian Rogers, Liang, Kan, Nick Terrell, Thomas Richter, Changbin Du,
	Fangrui Song, Mateusz Kowalczyk, linux-kernel, linux-perf-users
  Cc: Leo Yan

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-06-07 13:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04  9:32 [PATCH v1 0/6] perf: build: Fix cross compilation Leo Yan
2024-06-04  9:32 ` [PATCH v1 1/6] perf: build: Setup PKG_CONFIG_LIBDIR for " Leo Yan
2024-06-06 17:28   ` Namhyung Kim
2024-06-07 12:50     ` Leo Yan
2024-06-04  9:32 ` [PATCH v1 2/6] perf: build: Append libtraceevent path in PKG_CONFIG_LIBDIR Leo Yan
2024-06-04  9:32 ` [PATCH v1 3/6] perf: build: Set Python configuration for cross compilation Leo Yan
2024-06-04  9:32 ` [PATCH v1 4/6] perf: build: Only link libebl.a for old libdw Leo Yan
2024-06-06 17:40   ` Namhyung Kim
2024-06-07 13:33     ` Leo Yan
2024-06-04  9:32 ` [PATCH v1 5/6] perf: build: Link lib 'lzma' for static build Leo Yan
2024-06-04  9:32 ` [PATCH v1 6/6] perf: build: Link lib 'zstd' " Leo Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox