[PATCH 2/2] stm32mp: correct the dependency for bootcount configs

Patrice CHOTARD patrice.chotard at foss.st.com
Fri Jan 14 15:26:20 CET 2022


Hi Patrick

On 12/7/21 10:05 AM, Patrick Delaunay wrote:
> Default value for CONFIG_SYS_BOOTCOUNT_SINGLEWORD and
> CONFIG_SYS_BOOTCOUNT_ADDR are only needed when
> CONFIG_BOOTCOUNT_GENERIC is used.
> 
> This patch avoids to define these configs when an other bootcount backend
> is activated, for example for CONFIG_BOOTCOUNT_ENV.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
> 
>  arch/arm/mach-stm32mp/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
> index 2fa4ea4d5c..2819944df3 100644
> --- a/arch/arm/mach-stm32mp/Kconfig
> +++ b/arch/arm/mach-stm32mp/Kconfig
> @@ -194,7 +194,7 @@ config PRE_CON_BUF_SZ
>  config BOOTSTAGE_STASH_ADDR
>  	default 0xC3000000
>  
> -if BOOTCOUNT_LIMIT
> +if BOOTCOUNT_GENERIC
>  config SYS_BOOTCOUNT_SINGLEWORD
>  	default y
>  
> 
Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>
Thanks
Patrice


More information about the U-Boot mailing list