This will make CONFIG_PREBOOT a bit more readable and easier to
understand.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I75d0e42a6b26c7e4c5d7d4818e9e0f450151a1b2
CONFIG_OF_BOARD_SETUP=y
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_USE_PREBOOT=y
-CONFIG_PREBOOT="run mbr_check; echo Checking Func button state (for THOR download mode): \\\\\\\\c; sleep 0.25; if button Function; then thor; fi; run reboot_check"
+CONFIG_PREBOOT="run mbr_check; run button_check; run reboot_check"
# CONFIG_CONSOLE_MUX is not set
CONFIG_MISC_INIT_R=y
CONFIG_SYS_PROMPT="Khadas VIM3> "
CONFIG_OF_BOARD_SETUP=y
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_USE_PREBOOT=y
-CONFIG_PREBOOT="run mbr_check; echo Checking Func button state (for THOR download mode): \\\\\\\\c; sleep 0.25; if button Function; then thor; fi; run reboot_check"
+CONFIG_PREBOOT="run mbr_check; run button_check; run reboot_check"
CONFIG_MISC_INIT_R=y
CONFIG_SYS_PROMPT="Khadas VIM3L> "
# CONFIG_CMD_BDI is not set
"thor; " \
"fi"
+#define BUTTON_CHECK \
+ "echo Checking Func button state (for THOR download mode): \\\\\\\\c; " \
+ "sleep 0.25; " \
+ "if button Function; then " \
+ "thor; " \
+ "fi"
+
#define TIZEN_ENV_SETTING \
"mmcbootpart=1\0" \
"mmcrootpart=2\0" \
"boot_prefixes=" TIZEN_BOOT_PREFIX "\0" \
"mbr_parts=" PARTS_DEFAULT "\0" \
"mbr_check=" MBR_CHECK "\0" \
+ "button_check=" BUTTON_CHECK "\0" \
"reboot_check=" REBOOT_CHECK "\0" \
"splashimage=0x2000000\0" \
"splashsource=mmc_fs\0" \