[Uboot-stm32] [PATCH 2/2] board: st: Fix compilation issue

Patrick DELAUNAY patrick.delaunay at foss.st.com
Tue Sep 1 09:01:50 UTC 2026


Hi,

On 8/18/26 17:11, Patrice Chotard wrote:
> This patch solves a STM32MP2 compilation issue in
> board/st/common/stm32mp_fwu.c when CONFIG_FWU_MULTI_BANK_UPDATE
> is activated :
>      - error: ‘TAMP_FWU_BOOT_INFO_REG’ undeclared
>      - error: ‘TAMP_FWU_BOOT_IDX_OFFSET’ undeclared
>      - error: ‘TAMP_FWU_BOOT_IDX_MASK’ undeclared
>      - error: implicit declaration of function ‘env_set’
>
> Fixes: 4369c6a05035 ("board: st: factorize STM32MP FWU multi-bank support")
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>
> ---
>   board/st/common/stm32mp_fwu.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/board/st/common/stm32mp_fwu.c b/board/st/common/stm32mp_fwu.c
> index ac7ca6bdca2..cff020a99bb 100644
> --- a/board/st/common/stm32mp_fwu.c
> +++ b/board/st/common/stm32mp_fwu.c
> @@ -3,9 +3,11 @@
>    * Copyright (C) 2026 Amarula Solutions, Dario Binacchi <dario.binacchi at amarulasolutions.com>
>    */
>   
> +#include <env.h>
>   #include <fwu.h>
>   #include <part_efi.h>
>   #include <asm/io.h>
> +#include <asm/arch/stm32.h>
>   /**
>    * fwu_plat_get_bootidx() - Get the value of the boot index
>    * @boot_idx: Boot index value
>
Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Thanks
Patrick




More information about the Uboot-stm32 mailing list