stm32mp: configs: activate the command stm32key only for ST boards
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 28 Jun 2021 12:55:57 +0000 (14:55 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 16 Jul 2021 07:28:46 +0000 (09:28 +0200)
This command is used to evaluate the secure boot on stm32mp SOC,
it is deactivated by default in real products.

We activate this command only in STMicroelectronics defconfig
used with the evaluation boards.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/Kconfig
configs/stm32mp15_basic_defconfig
configs/stm32mp15_trusted_defconfig

index 7c25266f33e937cb6166a49c9cd67fc115536039..0e599316795fb97ce2b5805f62fe10d20ffdf9d3 100644 (file)
@@ -174,10 +174,12 @@ config STM32_ETZPC
 
 config CMD_STM32KEY
        bool "command stm32key to fuse public key hash"
-       default y
+       default n
        help
                fuse public key hash in corresponding fuse used to authenticate
                binary.
+               This command is used to evaluate the secure boot on stm32mp SOC,
+               it is deactivated by default in real products.
 
 config PRE_CON_BUF_ADDR
        default 0xC02FF000
index e199f2b7f98cc7e51315a9f578fbd10347b3eb7e..147370a2342565a590756d116c1e0796158cac66 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_DEFAULT_DEVICE_TREE="stm32mp157c-ev1"
 CONFIG_SPL_TEXT_BASE=0x2FFC2500
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL=y
+CONFIG_CMD_STM32KEY=y
 CONFIG_TARGET_ST_STM32MP15x=y
 CONFIG_CMD_STM32PROG=y
 CONFIG_ENV_OFFSET_REDUND=0x2C0000
index 5bc5e7940030041c3572921f37d3a2b8932f7527..f81717b2079c187f08d2544e3e14d6a02959bd05 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_SYS_MEMTEST_END=0xc4000000
 CONFIG_ENV_OFFSET=0x280000
 CONFIG_ENV_SECT_SIZE=0x40000
 CONFIG_DEFAULT_DEVICE_TREE="stm32mp157c-ev1"
+CONFIG_CMD_STM32KEY=y
 CONFIG_TARGET_ST_STM32MP15x=y
 CONFIG_CMD_STM32PROG=y
 CONFIG_ENV_OFFSET_REDUND=0x2C0000