linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/7] perf: build: Fix cross compilation
@ 2024-07-06 18:29 Leo Yan
  2024-07-06 18:29 ` [PATCH v3 1/7] perf: build: Setup PKG_CONFIG_LIBDIR for " Leo Yan
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Leo Yan @ 2024-07-06 18:29 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, Jiri Olsa,
	Mark Rutland, Adrian Hunter, Liang, Kan, Nick Terrell,
	Nathan Chancellor, Nick Desaulniers, Bill Wendling, Justin Stitt,
	Thomas Richter, Changbin Du, James Clark, amadio, linux-kernel,
	linux-perf-users
  Cc: Leo Yan

This patch series fixes cross compilation issues.

The first patch sets the package path if the package configuration path
is not specified. This helps the compiler to find the architecture's
package in a Multiarch system.

The patch 02 sets the Python configuration path and renames the .so to

The patches 03, 04 and 05 fix the static build failures.

The patch 06 adds document for how to cross compile. The patch 07 is to
remove obsolete info for building perf with Android NDK.

This patch series is tested for building perf on x86_64 host for Arm64
target, with verified on Debian two distros (buster and bookworm).

Changes from v2:
- Reordered lib paths for PKG_CONFIG_LIBDIR. (Namhyung)
- Verified the Android NDK and based on the testing result to remove the
  file android.txt. (Ian)

Changes from v1:
- Kept the cross-compile-pkg-config if it is available. (Namhyung)
- Removed the patch 02 for fixing pkg-config path for libtraceevent, as
  this will be resolved in Guilherme Amadio's patch "perf build: Use
  pkg-config for feature check for libtrace{event,fs}".
- Added patch 06 for document.


Leo Yan (7):
  perf: build: Setup PKG_CONFIG_LIBDIR for cross compilation
  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
  perf docs: Document cross compilation
  perf docs: Remove the Android cross building document

 tools/build/feature/Makefile         | 54 +++++++++++++++----
 tools/perf/Documentation/Build.txt   | 37 +++++++++++++
 tools/perf/Documentation/android.txt | 78 ----------------------------
 tools/perf/Makefile.config           | 20 ++++++-
 tools/perf/Makefile.perf             | 26 +++++++++-
 5 files changed, 125 insertions(+), 90 deletions(-)
 delete mode 100644 tools/perf/Documentation/android.txt

-- 
2.34.1


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

end of thread, other threads:[~2024-07-15 14:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-06 18:29 [PATCH v3 0/7] perf: build: Fix cross compilation Leo Yan
2024-07-06 18:29 ` [PATCH v3 1/7] perf: build: Setup PKG_CONFIG_LIBDIR for " Leo Yan
2024-07-12  4:52   ` Namhyung Kim
2024-07-12 10:13     ` Leo Yan
2024-07-06 18:29 ` [PATCH v3 2/7] perf: build: Set Python configuration " Leo Yan
2024-07-06 18:29 ` [PATCH v3 3/7] perf: build: Only link libebl.a for old libdw Leo Yan
2024-07-06 18:29 ` [PATCH v3 4/7] perf: build: Link lib 'lzma' for static build Leo Yan
2024-07-06 18:29 ` [PATCH v3 5/7] perf: build: Link lib 'zstd' " Leo Yan
2024-07-06 18:29 ` [PATCH v3 6/7] perf docs: Document cross compilation Leo Yan
2024-07-06 18:29 ` [PATCH v3 7/7] perf docs: Remove the Android cross building document Leo Yan
2024-07-12  4:58   ` Namhyung Kim
2024-07-12  5:37     ` Ian Rogers
2024-07-12 11:02     ` Leo Yan
2024-07-12 13:38       ` James Clark
2024-07-15 14:48         ` Leo Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).