tizen: move Function button check to separate env script
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 21 Dec 2020 10:25:56 +0000 (11:25 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Oct 2022 05:48:03 +0000 (14:48 +0900)
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

include/samsung/tizen_amlogic.h

index 03a8993..dffbe38 100644 (file)
        "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"                 \