Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E590CCD19F for ; Tue, 21 Oct 2025 07:30:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B66F9831D6; Tue, 21 Oct 2025 09:30:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="NLVwE7UF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E15E58334F; Tue, 21 Oct 2025 09:30:47 +0200 (CEST) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0B08B82B20 for ; Tue, 21 Oct 2025 09:30:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=richard.genoud@bootlin.com Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id AFBA14E41238; Tue, 21 Oct 2025 07:30:45 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7DA41606DC; Tue, 21 Oct 2025 07:30:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 09B7A102F23E1; Tue, 21 Oct 2025 09:30:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1761031844; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=AHdJdBC7mnLt/xsLVdlBO7z+QCcVl355Qb1DSvnNL7I=; b=NLVwE7UF+PMmytZYixVcpAiDTPTOdXsa9mnfWgbZ5jtWI+/ARmncB339cGbxa00O3JBD1Y sgPL3cxLKqCFznZK43Bw1gu9YA0ICl/rfOtFx057jSF++UUmQeOG849Q5PORb8vUeQkKAG RH5xcAPH4ilinia8NI6h5EUEnCm6WuryXNXVj227ia2JE63a54vfaNPOxju5rAycE0gbWU gtVn9avi8s+kbqNhtFPBfM9Iza4hbeasY74MRr8WeoKs0+Y4Rfrib56LjLLIdkw2Zp4bX5 /QXK7qLen1o+/RXNJ+QFJeXjrv/Oajq/kdz97rdCdjnkKB6nUP+CqLf3IFTOEw== From: Richard Genoud To: Dario Binacchi , Michael Trimarchi , Tom Rini , Jagan Teki , Andre Przywara Cc: Dinesh Maniyam , Linus Walleij , Anand Gore , david regan , Greg Malysa , Ilias Apalodimas , Marek Vasut , Philip Molloy , Miquel Raynal , Thomas Petazzoni , u-boot@lists.denx.de, James Hilliard , Richard Genoud Subject: [PATCH] Makefile: pass KEYDIR when set to sunxi-spl.bin mkimage Date: Tue, 21 Oct 2025 09:30:33 +0200 Message-ID: <20251021073033.540152-1-richard.genoud@bootlin.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: James Hilliard From: James Hilliard Provide private keys to build sunxi-spl.bin Currently we pass this for u-boot-spl.kwb targets, however when building sunxi-spl.bin in the TOC0 format, we may also need to specify a KEYDIR. As such we should also pass this when set to mkimage for the sunxi-spl.bin target. Tested on Whatsminer H616 board. Signed-off-by: James Hilliard Signed-off-by: Richard Genoud --- scripts/Makefile.xpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.xpl b/scripts/Makefile.xpl index 3e940bf562d5..52f014ad3324 100644 --- a/scripts/Makefile.xpl +++ b/scripts/Makefile.xpl @@ -442,7 +442,8 @@ MKIMAGEFLAGS_sunxi-spl.bin = \ -A $(ARCH) \ -T $(CONFIG_SPL_IMAGE_TYPE) \ -a $(CONFIG_SPL_TEXT_BASE) \ - -n $(CONFIG_DEFAULT_DEVICE_TREE) + -n $(CONFIG_DEFAULT_DEVICE_TREE) \ + $(if $(KEYDIR),-k $(KEYDIR)) OBJCOPYFLAGS_u-boot-spl-dtb.hex := -I binary -O ihex --change-address=$(CONFIG_SPL_TEXT_BASE) base-commit: 2ba64e303b2706e5c42a6bf982326d632342ca66 -- 2.47.3