From mboxrd@z Thu Jan 1 00:00:00 1970 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 3E36CC352A1 for ; Tue, 6 Dec 2022 22:50:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 870728552F; Tue, 6 Dec 2022 23:49:50 +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=1670366990; bh=2WAcD3PVqtUYbzkFPwhu+Ae81e7VhN+lz3xn9zNxgBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=G1jMZNIS0FzDX/iioM/FbrmLdNkZLky/zW4nryrdgvCkcxBKjZR/lreddmj2FWZG9 YeSibsctxKr/T1uuWA6emIL0Z7iBrbX3dvAOdBVKKivTHDBmZrJxBhftOhPSoMdpfR crMX2uucHVmMUD91hgoSEUuhkSr6MumAGfNaq2BaHMIGYxJM3tPRxBfPB6/3w0kAS6 GQT6ob2Wbo26jjcQuqVWSpVZGUqUX2kCIyNLuOS7eOvVp/4gp1WDW29LGutgRGHH6h 7Q9ekiXAMcvSKX3LxHpJAxbWG9IkpkwMgNx935HaOYYudzPCl3fhEnOdmqNWgVCct5 pY9/p2AAELufQ== 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 36863849E9; Tue, 6 Dec 2022 23:49:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1670366979; bh=2WAcD3PVqtUYbzkFPwhu+Ae81e7VhN+lz3xn9zNxgBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X0eniaJguDIhb2koQpFdwv3JugMRvoHNC3AVgymQpdydtuAnWfa9/8qHrjDv+cJl+ e25OKxzSX51a9mFce26eJs/h2rDaPp7eBRbVx6v4rQB4p66KdF0JyeggJgOa5A6HUf zqrwnKMxngRJ6/3LdiTjL/Z4vsCYpuDqGyAriIgOREeMqt8NDA2vgz94Qde+n/rUst R8/M2t3uFEzaE8Ti6YiJ8CqHty9P5O7Dyj5TvweXF4xFakVRcQ2TNZdVKF+hQDXODR M6hWJNOwAaBitQE5gDRi24NXlgjlrZ3G8r89Fj4nrKMu3WLFrKdE3koHM9AzsAzycP TpklW4gcP2YFQ== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Patrice Chotard , Patrick Delaunay , Alexandru Gagniuc Subject: [PATCH v2 4/4] ARM: stm32: Make ECDSA authentication available to U-Boot Date: Tue, 6 Dec 2022 23:49:29 +0100 Message-Id: <20221206224929.33015-4-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221206224929.33015-1-marex@denx.de> References: <20221206224929.33015-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 --- 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.35.1