[PATCH] include: configs: soc64: Use CONFIG_SPL_ATF to differentiate bootfile
Ley Foon Tan
lftan.linux at gmail.com
Thu Jun 10 07:49:06 CEST 2021
On Fri, Apr 30, 2021 at 12:44 AM Siew Chin Lim
<elly.siew.chin.lim at intel.com> wrote:
>
> Legacy boot flow (SPL->U-Boot Proper->OS) boot to OS via Kernel Image and
> dtb files using booti command.
>
> ATF boot flow (SPL->ATF->U-Boot Proper->OS) boot to OS via kernel.itb file
> using bootm command.
>
> Change to use CONFIG_SPL_ATF to differentiate the bootfile of default
> environment variable. We shouldn't use CONFIG_FIT because it is enabled
> by default for U-Boot Proper.
>
> Signed-off-by: Siew Chin Lim <elly.siew.chin.lim at intel.com>
> ---
> include/configs/socfpga_soc64_common.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h
> index f0b7884ebc..347620e1b5 100644
> --- a/include/configs/socfpga_soc64_common.h
> +++ b/include/configs/socfpga_soc64_common.h
> @@ -82,7 +82,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
> * Environment variable
> */
>
> -#ifdef CONFIG_FIT
> +#if IS_ENABLED(CONFIG_SPL_ATF)
> #define CONFIG_BOOTFILE "kernel.itb"
> #else
> #define CONFIG_BOOTFILE "Image"
> --
> 2.19.0
>
Reviewed-by: Ley Foon Tan <lftan.linux at gmail.com>
More information about the U-Boot
mailing list