[PATCH] board: ea: mx7ulp_com: allow setting CONFIG_BOOTCOMMAND in defconfig

Tom Rini trini at konsulko.com
Wed Aug 25 15:47:48 CEST 2021


On Wed, Aug 25, 2021 at 04:37:49PM +0300, Oleksandr Suvorov wrote:

> From: Ricardo Salveti <ricardo at foundries.io>
> 
> Allow replacing the board defined CONFIG_BOOTCOMMAND via defconfig.
> 
> Signed-off-by: Ricardo Salveti <ricardo at foundries.io>
> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov at foundries.io>
> ---
> 
>  include/configs/mx7ulp_com.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/configs/mx7ulp_com.h b/include/configs/mx7ulp_com.h
> index 28672c4f94..85ae513ffb 100644
> --- a/include/configs/mx7ulp_com.h
> +++ b/include/configs/mx7ulp_com.h
> @@ -69,10 +69,12 @@
>  			"bootz ${loadaddr} - ${fdt_addr}; " \
>  		"fi;\0" \
>  
> +#ifndef CONFIG_BOOTCOMMAND
>  #define CONFIG_BOOTCOMMAND \
>  	"if run loadimage; then " \
>  		"run mmcboot; " \
>  	"fi; " \
> +#endif
>  
>  #define CONFIG_SYS_LOAD_ADDR		CONFIG_LOADADDR

Please just move this to the defconfig.  It's not a long/complex
command, which is the general (understandable) excuse to not migrate it.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210825/4edb8129/attachment.sig>


More information about the U-Boot mailing list