]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: stm32: Make ECDSA authentication available to U-Boot
authorMarek Vasut <marex@denx.de>
Thu, 12 Jan 2023 17:58:42 +0000 (18:58 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 13 Jan 2023 12:46:57 +0000 (13:46 +0100)
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 <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-stm32mp/Makefile

index 1db9057e049cb1d2bde697fdd65e8a03b5a53dd7..a19b2797c8b33d28e3fb39cbb2dcfed79d910501 100644 (file)
@@ -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