All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf build: Add rust target flag for loongarch cross compile
@ 2026-08-21  3:27 Li Fangxu
  2026-08-21  3:35 ` sashiko-bot
  2026-08-21  6:56 ` WANG Rui
  0 siblings, 2 replies; 4+ messages in thread
From: Li Fangxu @ 2026-08-21  3:27 UTC (permalink / raw)
  To: acme, namhyung, chenhuacai
  Cc: peterz, mingo, git, linux-perf-users, loongarch, linux-kernel,
	lifangxu

From: lifangxu <lifangxu@kylinos.cn>

Based on commit 30f998c992c9 ("tools build: Fix rust cross
compilation"), add rust target flags for loongarch cross tool to fix
perf compilation error:
*** Unknown rust cross compilation architecture loongarch. Stop.

Signed-off-by: lifangxu <lifangxu@kylinos.cn>
---
 tools/perf/Makefile.config | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index 0ba307e78fe1..42c0ef213750 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -1149,6 +1149,8 @@ ifndef NO_RUST
     RUST_TARGET_FLAGS_s390	:= s390x-unknown-linux-gnu
     RUST_TARGET_FLAGS_x86	:= x86_64-unknown-linux-gnu
     RUST_TARGET_FLAGS_x86_64	:= x86_64-unknown-linux-gnu
+    RUST_TARGET_FLAGS_loongarch := loongarch64-unknown-linux-gnu
+
 
     ifeq ($(RUST_TARGET_FLAGS_$(ARCH)),)
       $(error Unknown rust cross compilation architecture $(ARCH))
-- 
2.43.0


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

end of thread, other threads:[~2026-08-21 10:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21  3:27 [PATCH] perf build: Add rust target flag for loongarch cross compile Li Fangxu
2026-08-21  3:35 ` sashiko-bot
2026-08-21  6:56 ` WANG Rui
2026-08-21 10:38   ` Li Fangxu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.