From nobody Sun Sep 21 23:25:31 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=flygoat.com Return-Path: Received: from coreboot.org (mail.coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1757391541729687.8165246552766; Mon, 8 Sep 2025 21:19:01 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 9DAFF403AF; Tue, 9 Sep 2025 04:18:59 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (fout-b1-smtp.messagingengine.com [202.12.124.144]) by coreboot.org (Postfix) with ESMTP id A860D40293 for ; Tue, 9 Sep 2025 04:18:03 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mailfout.stl.internal (Postfix) with ESMTP id 7E9951D001B3; Tue, 9 Sep 2025 00:18:02 -0400 (EDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by phl-compute-10.internal (MEProxy); Tue, 09 Sep 2025 00:18:02 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) 9 Sep 2025 00:18:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1757391482; x=1757477882; bh=DPeUYdRIPshbQvnO/h34mi8k/2csdq3GlSF3Ws9FHFo=; b= jneVmiLsSeRiBbhq8KGaF/c/pHqnD7MK45vZNe3ONE6Hhv3Zze+N+5CXpNKY5Cqv 7Wx1vdXBDwBefEBOnv0tPT2fbuDv4dvOasJBm/12n6AzDKdPt/yNPjjGJRiGhvfs OrbS3jJkZnpJmTo8rNF0nFU9V5JcXSPO15dxV3jtYYYeGs1eklk1QWujpr2BzNWE N4xqiPDblpR8bfZQkq6YIOBAtr1RX7fjNicjnTh25qzci92kn5CYvnI/6miijuRM QxKzFySLnzqgbG0nfv+y2uNCKyiEpJJMXzCBfBdVZP8LeOGAW09ma/rGjM4f680w 5w0hRh4jfrzXcNwCDna8CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1757391482; x= 1757477882; bh=DPeUYdRIPshbQvnO/h34mi8k/2csdq3GlSF3Ws9FHFo=; b=i icTTwgzCAFwFbgUi6q/6PIIa8GtNfsmq7qGHjsPKUWnafj3o20gLkTP7BoJPfD1C OfNKTQExnKoGSNkYxSOmCKYauA+BLjIK8d+58XapIiuJoWjz/DwjIcg5DZA6AoUt WLCZ8fjei6tgqBPOksHRWuuvTZej167hjMdN+S4lJ7HkZdaFNhD/Hst1E6BWDUu2 /8jNXRdBZ1cFuA9zsS7WWd6UZHJscy823pF5fzKwdhaQh8n7vMPqsFW9NhqnOeTE +00ZppH9mSLj8bln61ukm/XE4MvCiRB+mPB9X0LeSekCrdvi0FeYRSkDXfNIL+RI mRockGOR44Jr09OABca+w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduleegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhephfffufggtgfgkfhfjgfvvefosehtjeertd ertdejnecuhfhrohhmpeflihgrgihunhcujggrnhhguceojhhirgiguhhnrdihrghnghes fhhlhihgohgrthdrtghomheqnecuggftrfgrthhtvghrnhepvdekiefhfeevkeeuveetfe elffekgedugefhtdduudeghfeuveegffegudekjeelnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgoh grthdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepshgvrggsihhoshesshgvrggsihhoshdrohhrghdprhgtphhtthhopehjihgrgi hunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail From: Jiaxun Yang Date: Tue, 09 Sep 2025 04:17:55 +0000 MIME-Version: 1.0 Message-Id: <20250909-build-v3-2-3128c8c8c3ad@flygoat.com> References: <20250909-build-v3-0-3128c8c8c3ad@flygoat.com> In-Reply-To: <20250909-build-v3-0-3128c8c8c3ad@flygoat.com> To: seabios@seabios.org Message-ID-Hash: VMP6SQTORBYDV4I5D37PNHO77GA5Y7HP X-Message-ID-Hash: VMP6SQTORBYDV4I5D37PNHO77GA5Y7HP X-MailFrom: jiaxun.yang@flygoat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Jiaxun Yang X-Mailman-Version: 3.3.11b1 Precedence: list Subject: [SeaBIOS] [PATCH v3 2/9] Makefile: Don't use $(CC) as default $(HOSTCC) List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: --- X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZM-MESSAGEID: 1757391543793124100 Content-Type: text/plain; charset="utf-8" In context of cross compiling, $(CC) refers to compiler to generate target binary, we can't assume $(CC) is capable to generate host binary. Set default HOSTCC to cc, and make override of CC unconditional. Signed-off-by: Jiaxun Yang --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 01f42ec334591be5c6ed58c6bbe478de01f4b26d..1e03a0e5af9a974b0c8c0c8c952= 69b7635737315 100644 --- a/Makefile +++ b/Makefile @@ -8,15 +8,14 @@ OUT=3Dout/ =20 # Common command definitions -export HOSTCC :=3D $(CC) +export HOSTCC :=3D cc export CONFIG_SHELL :=3D sh export KCONFIG_AUTOHEADER :=3D autoconf.h export KCONFIG_CONFIG :=3D $(CURDIR)/.config export LC_ALL :=3D C -CROSS_PREFIX=3D -ifneq ($(CROSS_PREFIX),) + +CROSS_PREFIX :=3D CC=3D$(CROSS_PREFIX)gcc -endif AS=3D$(CROSS_PREFIX)as LD=3D$(CROSS_PREFIX)ld OBJCOPY=3D$(CROSS_PREFIX)objcopy --=20 2.43.0 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org