[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests/vpci: Use $(CC) instead of $(HOSTCC)


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 2 Jun 2025 17:09:29 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=twEqUavFV+a5GkK6oudUB5yohK7XtyF83wD0kvr1NWk=; b=FkJjLeRGFjxfeYDweEyEad7dJq9IRXrB6WmYVj+Ng8Sfezj6cKlFmFDRjOqcq0LiTr3DX7DIZpyRAkjZADhUe0pvFyfjQmHMqyShfMUWOocb2rdRoJMJjsoro2xCtJDMEoYjbJTItLMmQEqipbdGXNhmAeVsbX1CwdSKrXCPaRModl80ajjqg4O+/rU06uFUWGuj2pPDLrz+HdErumOqzV5wMe3HR8basPpQEZXOc/0/xlO9+eQcVxCbC3OgJ4P4bRxInd0NSRz2EwQkTlSjrZQev/UXwMh59eJERjQ/B5AKKEgbP5/2YmVeGkg5QlZ5u2aL8KGFzeOqP1IAKu1aEw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZRZRgSAPrbhG0HCC3nAJnpJCtpuwVtdJiGv33WoufjT/q0giE32mddzjUdAUKK0u9yaZ7gbFAu9u/Mwh2ILB0uvQXMLTDJtGvDCdj77wyKB6q/0U0XtUWRy3ZLvLzxSMuussX4Akdwt5d92lfeDY614VeKPxiXmti3TzKhoXT1wvKxHmiq1QDfKkxGNJeNr2Op+DlSO/7aaErLT0aF9k4GphvHD3ergRTP7fPMaAf8zq7N5+vvJh/xWv3Ay+w/ILC0EkJWFDL27L/2/t4dPCr1N7wXbeoVeZCWSbkIZ22x/q/dXmtcNrLlZI2EqHBW7f97Fz92aeka4KZfAGgcAT5w==
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Mon, 02 Jun 2025 15:09:53 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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@xxxxxxx>
---
 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




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.