From nobody Sun Sep 21 23:26:41 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 1757391561888398.6754044717919; Mon, 8 Sep 2025 21:19:21 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id DDE8E4045F; Tue, 9 Sep 2025 04:19:19 +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 77485403B2 for ; Tue, 9 Sep 2025 04:18:05 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mailfout.stl.internal (Postfix) with ESMTP id 537131D001B3; Tue, 9 Sep 2025 00:18:04 -0400 (EDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by phl-compute-05.internal (MEProxy); Tue, 09 Sep 2025 00:18:04 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) 9 Sep 2025 00:18:02 -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=1757391484; x=1757477884; bh=oXoKRkOtDo2Y1/xIzCP/nbWbX2DX17/px2AuXEdHDak=; b= ah2KnscJdF7aLJtz7JMocI3ORoqx2Q8+PoDeoqL/28aZtDqwA02EaB1HZBMO8uNk e3novZz5rQM1kfFuoUE/phw0lb17LdbKa7S1Wz8hrIgAHvf6mdqoiJiW0+q4an+o NWncmwvIaoV6ejND/TW9q7hgL98Znyhso9t+U6aVCIAc3y0Nsk6PF3J6mJwOrIPl ioZZjXrw1jKh9HrfB2yHiMaNpcUgmlX8piiO81YJvhby9gSJS7KXD6oaLMsajpZZ tN/HgiB9U9c0ge0QWMhAsA75aIJKJsxJ51flCl9MGL5vL4hOAVBamav0ii6KweHq bP6e9Ui1zkhcAmM0Qq/lqQ== 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=1757391484; x= 1757477884; bh=oXoKRkOtDo2Y1/xIzCP/nbWbX2DX17/px2AuXEdHDak=; b=S qOPuvGu7eyzZteIpA2V7ZXAmwyInAjv/hxYZOtdd82zYLCSCHsuL++SgpN+urP2W XVw0LASA1t/6l/sZHrAlSyAPxn92nRNdVV8zsNEVeeNauBQTCrAJPVXV70Qfo4U2 sO4lYY0VtlXNh58cOqdjCqUvyztTLkAKuHP5ssKk2gmgvtJjcMIKy1nN2V8mx98f 4xX2iMjDy+vxJC3vptqQdpDcHrjjbFzR3ox8Gy2LoSpyDlC6Mx8QNmn9Qm0gyOKh 4vQiGjn6jwvfU7nSxGY68UTWCmXT/mQlND3y2k7+OqkFMszHIkRqun2VYRWGMr25 oqViwqgr0sDo7LV2fGNAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduleegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomheplfhirgiguhhn ucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenucggtf frrghtthgvrhhnpedvkeeihfefveekueevteefleffkeegudeghfdtuddugefhueevgeff gedukeejleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmpdhnsggprhgtphhtthho peefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsvggrsghiohhssehsvggrsg hiohhsrdhorhhgpdhrtghpthhtohepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdr tghomhdprhgtphhtthhopehpmhgvnhiivghlsehmohhlghgvnhdrmhhpghdruggv X-ME-Proxy: Feedback-ID: ifd894703:Fastmail From: Jiaxun Yang Date: Tue, 09 Sep 2025 04:17:56 +0000 MIME-Version: 1.0 Message-Id: <20250909-build-v3-3-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: 5OVQ65HFNSZEX3CN5U2WVFNTRSXLXEGS X-Message-ID-Hash: 5OVQ65HFNSZEX3CN5U2WVFNTRSXLXEGS 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 , Paul Menzel X-Mailman-Version: 3.3.11b1 Precedence: list Subject: [SeaBIOS] [PATCH v3 3/9] Makefile: Invoke preprocessor and assembler with CC 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: 1757391564300124100 Content-Type: text/plain; charset="utf-8" Our build system was using host CPP preprocessor which is not guaranteed to have necessaey target macros set, convert to use target CC to invoke preprocessor. The same change is applied to assembler as well for simplicity. Signed-off-by: Jiaxun Yang Reviewed-by: Paul Menzel --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1e03a0e5af9a974b0c8c0c8c95269b7635737315..f2f4ebc5b69be1d4b9ecfc99b63= f09ecaecd9474 100644 --- a/Makefile +++ b/Makefile @@ -16,13 +16,11 @@ export LC_ALL :=3D C =20 CROSS_PREFIX :=3D CC=3D$(CROSS_PREFIX)gcc -AS=3D$(CROSS_PREFIX)as LD=3D$(CROSS_PREFIX)ld OBJCOPY=3D$(CROSS_PREFIX)objcopy OBJDUMP=3D$(CROSS_PREFIX)objdump STRIP=3D$(CROSS_PREFIX)strip PYTHON=3Dpython -CPP=3Dcpp LD32BIT_FLAG:=3D-melf_i386 =20 # Source files @@ -141,7 +139,7 @@ $(OUT)%.o: %.c $(OUT)autoconf.h =20 $(OUT)%.lds: %.lds.S @echo " Precompiling $@" - $(Q)$(CPP) $(CPPFLAGS) -D__ASSEMBLY__ $< -o $@ + $(Q)$(CC) -E $(COMMONCFLAGS) $(CPPFLAGS) -D__ASSEMBLY__ $< -o $@ =20 =20 ################ Main BIOS build rules @@ -164,7 +162,7 @@ $(OUT)romlayout.o: src/romlayout.S $(OUT)autoconf.h $(O= UT)asm-offsets.h =20 $(OUT)romlayout16.lds: $(OUT)ccode32flat.o $(OUT)code32seg.o $(OUT)ccode16= .o $(OUT)romlayout.o src/version.c scripts/layoutrom.py scripts/buildversio= n.py @echo " Building ld scripts" - $(Q)$(PYTHON) ./scripts/buildversion.py -e "$(EXTRAVERSION)" -t "$(CC);$(= AS);$(LD);$(OBJCOPY);$(OBJDUMP);$(STRIP)" $(OUT)autoversion.h + $(Q)$(PYTHON) ./scripts/buildversion.py -e "$(EXTRAVERSION)" -t "$(CC);$(= LD);$(OBJCOPY);$(OBJDUMP);$(STRIP)" $(OUT)autoversion.h $(Q)$(CC) $(CFLAGS32FLAT) -c src/version.c -o $(OUT)version.o $(Q)$(LD) $(LD32BIT_FLAG) -r $(OUT)ccode32flat.o $(OUT)version.o -o $(OUT= )code32flat.o $(Q)$(LD) $(LD32BIT_FLAG) -r $(OUT)ccode16.o $(OUT)romlayout.o -o $(OUT)c= ode16.o @@ -225,7 +223,7 @@ $(OUT)vgaccode16.raw.s: $(OUT)autoconf.h $(patsubst %.c= , $(OUT)%.o,$(SRCVGA)) ; $(OUT)vgaccode16.o: $(OUT)vgaccode16.raw.s scripts/vgafixup.py @echo " Fixup VGA rom assembler" $(Q)$(PYTHON) ./scripts/vgafixup.py $< $(OUT)vgaccode16.s - $(Q)$(AS) --32 src/code16gcc.s $(OUT)vgaccode16.s -o $@ + $(Q)$(CC) -c $(CFLAGS16) $(OUT)vgaccode16.s -o $@ else $(OUT)vgaccode16.o: $(OUT)autoconf.h $(patsubst %.c, $(OUT)%.o,$(SRCVGA)) = ; $(call whole-compile, $(CFLAGS16) -Isrc, $(SRCVGA),$@) endif --=20 2.43.0 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org