From nobody Sun Sep 21 23:17:48 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 1756882365445902.341038249547; Tue, 2 Sep 2025 23:52:45 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 6FC684037C; Wed, 3 Sep 2025 06:52:43 +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 0260A40357 for ; Wed, 3 Sep 2025 06:51:33 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mailfout.phl.internal (Postfix) with ESMTP id 267E3EC0352; Wed, 3 Sep 2025 02:51:33 -0400 (EDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by phl-compute-11.internal (MEProxy); Wed, 03 Sep 2025 02:51:33 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) 3 Sep 2025 02:51:31 -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=1756882293; x=1756968693; bh=91q3/JsGwMiEGwon2C37FLFfYg2g1BjxCfqBich86tc=; b= WdAZ4afL60xQne07LuIwML9uO8J6g+YDbsIh61DRtkw1azpZB9QyYgKYFO7tUcc3 nb3cwylbJc7g6Y6QPqcQmxjND03SdL1hL83ORUUNBhWK/STfUon+tbdGXQfKqSmh 9YP99KZUDd4vL2hetWLVLZtICEcB6AgbK/HzVvxtV94ukJ3Tbiiq6iWs8NWorfuX /Gxfb+apdTPYbAB/nsncb4VJ9iaNieWzWCezWXqQ+CxmLpH9jMhxU2n5RuGkvkGk 5LtX2C000wchGC8tE5p2wU7Zc+HTNIrlYQTE2cUHjAkatw3n5wyxys4YJaFdWFki Mb+U1z5s7KQBQre8SYOLRg== 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=1756882293; x= 1756968693; bh=91q3/JsGwMiEGwon2C37FLFfYg2g1BjxCfqBich86tc=; b=U Um7ARKLoZsiaXdYZrLCkFLB4hTLlRbPdKLPxTg5u1JW6+7AMgM/h/JWwo9pG68iO qx9r2DHSQqrcRlY4YkCdaZjCdExZPj2oLOIRGoH+9BfpKhUqX0eiK1ZXoLSKn2jZ JzJDrVJe4xppCZR4Pv3Qr8RO9qYX46BdRwLKi9xsbAu2d06JhvhxLQOoCDbs018j Kg9awvItdVKU4jHKJ/tK8dSvh7rolVzBMAS3kI6Pg/ebERKGPm4HqGXaf6ahWe8c TslheM2agnRg3/EauNQHDkdRScoohmGpNvzyIctmn6qSWTPlj3BtlBKeBxemrWi9 WDVKGOH1qDUa8tMovR61w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeeiucetufdoteggodetrfdotf 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:24 +0000 MIME-Version: 1.0 Message-Id: <20250903-build-v2-3-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: DUUVXCQVUI4MS6GNS3WKCC22N4RI6GO5 X-Message-ID-Hash: DUUVXCQVUI4MS6GNS3WKCC22N4RI6GO5 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 3/9] Makefile: Invlode 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: 1756882366753124100 Content-Type: text/plain; charset="utf-8" Our build system was using host CPP preprocessor which is not gaurenteed to have necessaey target macros set, convert to use target CC to invole 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