All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/vpci: Use $(CC) instead of $(HOSTCC)
@ 2025-06-02 15:09 Michal Orzel
  2025-06-02 15:36 ` Andrew Cooper
  2025-06-03  6:46 ` Roger Pau Monné
  0 siblings, 2 replies; 10+ messages in thread
From: Michal Orzel @ 2025-06-02 15:09 UTC (permalink / raw)
  To: xen-devel; +Cc: Michal Orzel, Roger Pau Monné, Anthony PERARD

These tests are supposed to run on target. HOSTCC can be different than
CC (when cross-compiling). At the moment, tests installation would put
a binary of a wrong format in the destdir.

Fixes: e90580f25bd7 ("vpci: introduce basic handlers to trap accesses to the PCI config space")
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
---
 tools/tests/vpci/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tests/vpci/Makefile b/tools/tests/vpci/Makefile
index 9450f7593a41..1101a669e118 100644
--- a/tools/tests/vpci/Makefile
+++ b/tools/tests/vpci/Makefile
@@ -11,7 +11,7 @@ run: $(TARGET)
 	./$(TARGET)
 
 $(TARGET): vpci.c vpci.h list.h main.c emul.h
-	$(HOSTCC) $(CFLAGS_xeninclude) -g -o $@ vpci.c main.c
+	$(CC) $(CFLAGS_xeninclude) -g -o $@ vpci.c main.c
 
 .PHONY: clean
 clean:
-- 
2.25.1



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

end of thread, other threads:[~2025-06-03 11:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-02 15:09 [PATCH] tests/vpci: Use $(CC) instead of $(HOSTCC) Michal Orzel
2025-06-02 15:36 ` Andrew Cooper
2025-06-02 15:40   ` Orzel, Michal
2025-06-02 15:50   ` Jan Beulich
2025-06-02 16:00     ` Andrew Cooper
2025-06-03  6:41     ` Orzel, Michal
2025-06-03  6:46 ` Roger Pau Monné
2025-06-03  6:52   ` Orzel, Michal
2025-06-03 10:30     ` Roger Pau Monné
2025-06-03 11:23       ` Orzel, Michal

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.