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 11CFAC54EBE for ; Thu, 12 Jan 2023 17:59:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A78CD855E0; Thu, 12 Jan 2023 18:59:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1673546359; bh=PA8ykd78JmI/Y+WJ71uqicv4R3nUrZ/wValD1w+EU6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=O8rN5NWsnVoV8PGijLulG/t0gpDyOyagpDLTHTJwzY1Lu/LhotlBv2LMPtz3Vjzd4 R67Ppl6fO6JSNZMWtBgx8dnzc1nIi1lhOBe2vYRsbc5TL4c1+ZsS7t4LwNYF+3XMtJ +P88os9aDp2Za7igHpnWHoHSakX7Kdo4u20HRAFj+irf2XqH+OvfAJoeYKyKmjz7JG CBiwU8fbkOZ3uhiqiF9BiUlL4q3eAxrCn1lEXuLGCffKhz6Ye2Yok/Nljr8LGZer7K aaAQoRnKO++lZu/ISYs6en2u/pcnhTiMWfwFmMFM7utES1tJXE7Mbxx8RXzed0Ya24 0OHqE6XYIZcFA== Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 861F7854CD; Thu, 12 Jan 2023 18:58:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1673546339; bh=PA8ykd78JmI/Y+WJ71uqicv4R3nUrZ/wValD1w+EU6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FEx+g5unYWOEKO7dFcv6B4D4G61lYsLLCE3fV8poslVXRDB9gDvI3vyuuUqyCIX1X 6gux2+dRdmcuxYpWkBdeBeAnqR5/Ck60l+I6KTwriKFf+2MFsgnqqLMie4Al27mtlz PFb2+u3BqRjOZx6hCjmbAgFOk0Kl/HslkMwP6guUOveSxfQr9+Gfoe/B+cwhDdr6jw 4B9YhTPOxOVv9+7C/O+oekYx6jE0ZhIH7w04vogSBwGI3gQqBZGUoMp7AIT7m7z+zR eb4zfbBRsxIrjRxQbshMj2nMf+LgRsAdJW9JARQiEw5TPvnIS5yc9odJd2aihMl+El lrIXmLC0Gzedg== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Patrice Chotard , Patrick Delaunay , Alexandru Gagniuc Subject: [PATCH v4 4/4] ARM: stm32: Make ECDSA authentication available to U-Boot Date: Thu, 12 Jan 2023 18:58:42 +0100 Message-Id: <20230112175842.25032-4-marex@denx.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230112175842.25032-1-marex@denx.de> References: <20230112175842.25032-1-marex@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean With U-Boot having access to ROM API call table, it is possible to use the ROM API call it authenticate e.g. signed kernel fitImages using the BootROM ECDSA support. Make this available by pulling the ECDSA BootROM call support from SPL-only guard. Reviewed-by: Patrice Chotard Reviewed-by: Patrick Delaunay Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patrick Delaunay --- V2: Add RB from Patrice and Patrick V3: No change V4: No change --- arch/arm/mach-stm32mp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-stm32mp/Makefile b/arch/arm/mach-stm32mp/Makefile index 1db9057e049..a19b2797c8b 100644 --- a/arch/arm/mach-stm32mp/Makefile +++ b/arch/arm/mach-stm32mp/Makefile @@ -11,10 +11,10 @@ obj-y += bsec.o obj-$(CONFIG_STM32MP13x) += stm32mp13x.o obj-$(CONFIG_STM32MP15x) += stm32mp15x.o +obj-$(CONFIG_STM32_ECDSA_VERIFY) += ecdsa_romapi.o ifdef CONFIG_SPL_BUILD obj-y += spl.o obj-y += tzc400.o -obj-$(CONFIG_STM32_ECDSA_VERIFY) += ecdsa_romapi.o else obj-y += cmd_stm32prog/ obj-$(CONFIG_CMD_STM32KEY) += cmd_stm32key.o -- 2.39.0