Skip to contentSkip to conversation

board: ea: mx7ulp_com: move setting CONFIG_BOOTCOMMAND to defconfig

PATCH Superseded Oleksandr Suvorov 4 participants 4 messages Aug 26, 2021 – Oct 20, 2021

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: ea: mx7ulp_com: move setting CONFIG_BOOTCOMMAND to defconfig

From: Ricardo Salveti <[email protected]>

Move setting CONFIG_BOOTCOMMAND to the mx7ulp_com_defconfig file. It also allows replacing the default CONFIG_BOOTCOMMAND without code modification.

---

Changes in v2:
- move setting the command to defconfig

 configs/mx7ulp_com_defconfig | 2 ++
 include/configs/mx7ulp_com.h | 5 -----
 2 files changed, 2 insertions(+), 5 deletions(-)
configs/mx7ulp_com_defconfig +2 -0
index 62992fecdf..5fcf25a7fb 100644
@@ -9,6 +9,8 @@ CONFIG_DEFAULT_DEVICE_TREE="imx7ulp-com"
 CONFIG_LDO_ENABLED_MODE=y
 CONFIG_TARGET_MX7ULP_COM=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/ea/mx7ulp_com/imximage.cfg"
+CONFIG_USE_BOOTCOMMAND=y
+CONFIG_BOOTCOMMAND="if run loadimage; then run mmcboot; fi"
 CONFIG_DEFAULT_FDT_FILE="imx7ulp-com"
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_HUSH_PARSER=y
include/configs/mx7ulp_com.h +0 -5
index 28672c4f94..3ef41e565a 100644
@@ -69,11 +69,6 @@
 			"bootz ${loadaddr} - ${fdt_addr}; " \
 		"fi;\0" \
 
-#define CONFIG_BOOTCOMMAND \
-	"if run loadimage; then " \
-		"run mmcboot; " \
-	"fi; " \
-
 #define CONFIG_SYS_LOAD_ADDR		CONFIG_LOADADDR
 
 #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
Signature · 1 line
2.31.1
Reviewed-by on v2 1/1
#1 lore raw

Hi Oleksandr,

Quoted 7 lines · Oleksandr Suvorov

From: Ricardo Salveti <[email protected]>

Move setting CONFIG_BOOTCOMMAND to the mx7ulp_com_defconfig file. It also allows replacing the default CONFIG_BOOTCOMMAND without code modification.

Quoted 6 lines

---

Changes in v2:
- move setting the command to defconfig

#3 lore raw

PATCH v2 1/1 board: ea: mx7ulp_com: move setting CONFIG_BOOTCOMMAND to defconfig

In reply to Oleksandr Suvorov
Quoted 8 lines

From: Ricardo Salveti <[email protected]>
Move setting CONFIG_BOOTCOMMAND to the mx7ulp_com_defconfig file. It also allows replacing the default CONFIG_BOOTCOMMAND without code modification.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================