Skip to contentSkip to conversation

colibri-imx7: move CONFIG_BOOTCOMMAND from header to defconfig

PATCH New [email protected] 1 participant 1 message Sep 1, 2021 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 colibri-imx7: move CONFIG_BOOTCOMMAND from header to defconfig

From: Ming Liu <[email protected]>

Move CONFIG_BOOTCOMMAND definition from colibri_imx7.h to colibri_imx7_defconfig, to be more flexible, for instance, it could be overridden by merge_config.sh script.

---
 configs/colibri_imx7_defconfig | 3 ++-
 include/configs/colibri_imx7.h | 2 --
 2 files changed, 2 insertions(+), 3 deletions(-)
configs/colibri_imx7_defconfig +2 -1
index 39149167e0..74d452246b 100644
@@ -14,7 +14,8 @@ CONFIG_IMX_HAB=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/toradex/colibri_imx7/imximage.cfg,MX7D"
 CONFIG_BOOTDELAY=1
-# CONFIG_USE_BOOTCOMMAND is not set
+CONFIG_USE_BOOTCOMMAND=y
+CONFIG_BOOTCOMMAND="run ubiboot || run distro_bootcmd;"
 CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="setenv fdtfile ${soc}-colibri-${fdt_board}.dtb "
 # CONFIG_CONSOLE_MUX is not set
include/configs/colibri_imx7.h +0 -2
index 2fffaa39c0..f663865156 100644
@@ -117,8 +117,6 @@
 		"run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \
 
 #if defined(CONFIG_TARGET_COLIBRI_IMX7_NAND)
-#define CONFIG_BOOTCOMMAND "run ubiboot ; echo ; echo ubiboot failed ; " \
-	"run distro_bootcmd;"
 #define MODULE_EXTRA_ENV_SETTINGS \
 	"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
 	UBI_BOOTCMD
Signature · 1 line
2.29.0