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 1756882383092325.48348340028133; Tue, 2 Sep 2025 23:53:03 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 7AEE44045B; Wed, 3 Sep 2025 06:53:00 +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 E024340382 for ; Wed, 3 Sep 2025 06:51:35 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by mailfout.phl.internal (Postfix) with ESMTP id 01D6FEC0324; Wed, 3 Sep 2025 02:51:35 -0400 (EDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by phl-compute-06.internal (MEProxy); Wed, 03 Sep 2025 02:51:35 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) 3 Sep 2025 02:51:33 -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=1756882294; x=1756968694; bh=Sifsw0Msp7rzVwBpOip5C1pxNiQKMm0kJnlLm3SECZ4=; b= d+bhgBOFuukVjWZSuSgN0gTLT8VtDeEFdFDVPQeMYeYpPhVDpjJJi8hIMcv60HI3 5tblMEY+hLH2dCjNPAaxndK/T23nxeCKbWUW+hcNRPd26OcDUMkQljEZCv4UQLzY MWKlR9qcK3z0M9pNLbpskcqyt5/E1OoOc88r/QaRX57EbJhQGGzVtTmfYAxDJgMw 1nqVTzx0j3InhBi0sBRZJpDnlo3Qw17RL4JAYHuDnwj+poshZC07x5+lnCAlXsxR FieB5MCEduv3hXRXOR/bGn4xrEiNUd/tD2P8pOibEs4/dGPjQRcTpc5dRR7/4CRH 4TzIfDvduv+P1a8EkCREPA== 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=1756882294; x= 1756968694; bh=Sifsw0Msp7rzVwBpOip5C1pxNiQKMm0kJnlLm3SECZ4=; b=F cy9Hmrgtp2/iRe6xQlb7+IbETIEF2UmzrfBybNUkAJ2IQvZCPjjyn6xi1yCmh2TC jip/7i5fgS/Qgg4AOq5FPzhr7LsCgl/W30Bp2bx83pt6gkiYTOxYZFdI1sCSh3I0 MepD8vr5Ai3Vmfdnxuz38pQXv0L4T9RFL9wdomeLZlGq7pJTBG5pU2aTjaeFZUrp /ZPMbs6+TPb5IY88JctGBI2TcQ9wfyp/1WEtmsvdAg9HZqj0e6esVn+sAz3ztPL7 XMsLXPysYZLa/3rMU5k1SEfjwVYtRLbG17Ql+mPun53QQdV1VYKP0IKMf/8THIMW CG/BphFnJaU9iA+ansvlg== 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:25 +0000 MIME-Version: 1.0 Message-Id: <20250903-build-v2-4-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: EBZPD37ZRLZ7U63DOT3CXKBJZR4SB7AD X-Message-ID-Hash: EBZPD37ZRLZ7U63DOT3CXKBJZR4SB7AD 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 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: 1756882385164116600 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