From nobody Sun Sep 21 23:25:55 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 1757391580885653.4806242071314; Mon, 8 Sep 2025 21:19:40 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 9F7A84C433; Tue, 9 Sep 2025 04:19:38 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (fhigh-b3-smtp.messagingengine.com [202.12.124.154]) by coreboot.org (Postfix) with ESMTP id 24D2A4043D for ; Tue, 9 Sep 2025 04:18:07 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mailfhigh.stl.internal (Postfix) with ESMTP id 062A67A0186; Tue, 9 Sep 2025 00:18:06 -0400 (EDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by phl-compute-06.internal (MEProxy); Tue, 09 Sep 2025 00:18:06 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) 9 Sep 2025 00:18:04 -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=1757391485; x=1757477885; bh=Sifsw0Msp7rzVwBpOip5C1pxNiQKMm0kJnlLm3SECZ4=; b= cXLk1sVp/F/UleRc2wDxPD8SvlrCblpkbf/T/oe92JZby/ZjiZ8szlybdrBohR5H L6wXI2dZtJtKzN1EXICSaDq0hipcwPjA31Pg7eNCEdttcE9ed1YWKZ+viUoNmfYL KsSyl7+Cl7cxiaUemeFgGls8rK21Tje4zy/iT58f/N0v9K1fs2vcjoUaFH2yZsD8 0G00yw/EuR3HbkOdpmyHrF2Th/gJ5dCdOAByJXq/uCVK5oy3ngPU/JQsIGf09KDR K38gyL/dJn0y7EOU2STlUI+OcqXB6YSBO5AkHnFSvSOsm5xHnInNhIxpu7RZVPGh rzxE/ostHE9+oH9fg+kQPw== 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=1757391485; x= 1757477885; bh=Sifsw0Msp7rzVwBpOip5C1pxNiQKMm0kJnlLm3SECZ4=; b=F 5CHrZHAhy0g5dPx6ppJfkbSLL/bmPI0vYQ/GWu+APAE/ClPBIRQH2cZL6jQOg6z7 ouLj1lE7xHqBmQggrII8ns9WhjSDwdHNEcNn0se2tfP27AFfW2MI3K7kH5LmQASE QVoqPi+qnM9YTyK5T/Qx16wSbnCEYBTltXyhfP/nEOfXlvevV7zGr53SiMUMcDRX HJi6kHAW5iDvhHGYrJUL9X+mDKi1GTyEfmyIs3l002nAe7Y7+kk1JfhcqC8U8+4I 5W+labkPM1sbwwwetW7jr0N2PCaQmgoR4KIX/mHd2MaxO3LvuGd/im2Awdsa8GnL mXe7EVakr9amPCmAUFuUg== 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:57 +0000 MIME-Version: 1.0 Message-Id: <20250909-build-v3-4-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: OHJ2G7ABGMLCH7EEFUY7QRW76T3HRSVM X-Message-ID-Hash: OHJ2G7ABGMLCH7EEFUY7QRW76T3HRSVM 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 4/9] Makefile: Allow more linux style knobs 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: 1757391582183124100 Content-Type: text/plain; charset="utf-8" Allow all host flags to be set at top level makefile. Allow KBUILD_DEFCONFIG to be specified to load external defconfigs. Allow linux style CROSS_COMPILE specifier. Signed-off-by: Jiaxun Yang --- Makefile | 6 +++++- scripts/kconfig/Makefile | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f2f4ebc5b69be1d4b9ecfc99b63f09ecaecd9474..b5660928c2056970e3174be368e= 65752a948f16a 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,16 @@ OUT=3Dout/ =20 # Common command definitions export HOSTCC :=3D cc +export HOSTCFLAGS :=3D +export HOSTLDFLAGS :=3D export CONFIG_SHELL :=3D sh export KCONFIG_AUTOHEADER :=3D autoconf.h export KCONFIG_CONFIG :=3D $(CURDIR)/.config +export KBUILD_DEFCONFIG :=3D /dev/null export LC_ALL :=3D C =20 -CROSS_PREFIX :=3D +CROSS_COMPILE :=3D +CROSS_PREFIX :=3D $(CROSS_COMPILE) CC=3D$(CROSS_PREFIX)gcc LD=3D$(CROSS_PREFIX)ld OBJCOPY=3D$(CROSS_PREFIX)objcopy diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 1c1293618764c891f04d55f7ca5a24d42a218215..96793619356ed649a467513ebcd= 829a143798a57 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -11,6 +11,10 @@ else Kconfig :=3D Kconfig endif =20 +ifndef KBUILD_DEFCONFIG +KBUILD_DEFCONFIG :=3D defconfig +endif + # We need this, in case the user has it in its environment unexport CONFIG_ =20 @@ -96,7 +100,7 @@ savedefconfig: $(obj)/conf =20 defconfig: $(obj)/conf @echo " Build default config" - $(Q)$< --defconfig=3D/dev/null $(Kconfig) + $(Q)$< --defconfig=3D$(KBUILD_DEFCONFIG) $(Kconfig) =20 %_defconfig: $(obj)/conf $(Q)$< --defconfig=3Darch/$(SRCARCH)/configs/$@ $(Kconfig) --=20 2.43.0 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org