From nobody Sun Sep 21 23:16:03 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 175688234720886.73032183941746; Tue, 2 Sep 2025 23:52:27 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 1601140192; Wed, 3 Sep 2025 06:52:24 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (fout-a3-smtp.messagingengine.com [103.168.172.146]) by coreboot.org (Postfix) with ESMTP id 8F4884033D for ; Wed, 3 Sep 2025 06:51:32 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mailfout.phl.internal (Postfix) with ESMTP id A8EFCEC0352; Wed, 3 Sep 2025 02:51:31 -0400 (EDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by phl-compute-06.internal (MEProxy); Wed, 03 Sep 2025 02:51:31 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) 3 Sep 2025 02:51:30 -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=1756882291; x=1756968691; bh=MY9mwkbFVd5DeBCOTrAqvnvUyLgbfcbbLERc49E5caE=; b= WDdoLgXgXT0tfThTHyRwdAM3kYl9n8XVFjrqcPRhNzLc2qFzdCw6JaFy5U3SztQt ZodwSMC8Qetmr6hBpdF/L74lAAmuApvMciHyPTWdBxRvGxLG9cbyTHYDqJQbpJ8A WaENvzEw5VV1whGjPsKz7Ce3saJLXBPh2JvVMtebAmA8OFkFaNPtBuYDPKbuvvK/ FuS+XUpUJlwaXrrrarQz/jmPtgyhDVi3BreIRUForvQrnjCFjw3Uq7eluwaKAJcL UcDZ8x48iWayaTR0allN+nwF3dY21tzMW18Zx5eH3ut+CzTKsQ1gJL8tlXscAIyP nkycmfF91RNx/kqGrFyCQw== 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=1756882291; x= 1756968691; bh=MY9mwkbFVd5DeBCOTrAqvnvUyLgbfcbbLERc49E5caE=; b=U 8/bWskkyl1/yDkFsxY7QUlD08lhxE6YwDIf+lGF3iBZtcUqbweluKAw2lOVo0A30 HpjnVMapaTd7rq0ZYN1tKC/bYWjmpKpOo8N5CEdqiqlfpsRr7sViSIIsTDkttqgr ocTEm6zSRaF0VGslKu66UYsHOvZ9Mv7wN0WuicmBmbYEyQQx06J5HwSBC+hw95+g Syr/LhSi0fa9dF1TlPF4n4WY1ESaIWu3o+cuVVMZoJgjCCXgJ4tcBVBS/kMm+3wd U5zSWOBDFyQtG7xkOUS8Ne23qEHFROU6UpvJEty00B1pgI3MpDxZMzaFfY+8iQMG PG4/JEzHhl6Jtw9OachEQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucenucfjughrpefhfffugggtgffkfhgjvfevofesthejredtre dtjeenucfhrhhomheplfhirgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehf lhihghhorghtrdgtohhmqeenucggtffrrghtthgvrhhnpedvkeeihfefveekueevteefle ffkeegudeghfdtuddugefhueevgeffgedukeejleenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorg htrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphht thhopehsvggrsghiohhssehsvggrsghiohhsrdhorhhgpdhrtghpthhtohepjhhirgiguh hnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail From: Jiaxun Yang Date: Wed, 03 Sep 2025 06:51:23 +0000 MIME-Version: 1.0 Message-Id: <20250903-build-v2-2-8e8916974f9c@flygoat.com> References: <20250903-build-v2-0-8e8916974f9c@flygoat.com> In-Reply-To: <20250903-build-v2-0-8e8916974f9c@flygoat.com> To: seabios@seabios.org Message-ID-Hash: IWH6ZYA2WESPSNPFAZ2NR7ZJO5ZU55VQ X-Message-ID-Hash: IWH6ZYA2WESPSNPFAZ2NR7ZJO5ZU55VQ 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 v2 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: 1756882351403124100 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) will generate target 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