configs: artik533_raptor: fix wrong consoleon/consoleoff commands
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 4 Apr 2018 07:55:49 +0000 (16:55 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 21 Jan 2019 07:26:18 +0000 (16:26 +0900)
From env, consoleon and consoneoff commands are defined with "='
when using setenv, so those commands can not be run. Fix wrong
consoleon and consoleoff commands by using proper setenv command.

Change-Id: I383186758f23be422a1d1df149c144973a20b341
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
include/configs/artik533_raptor.h

index eb7a205dfd9fe933213f72934928678268f88998..6fd134d9a3f169b49a10ab88db09e0915bf4d0d8 100644 (file)
        "        setenv loop\n"                                         \
        "    fi\0"                                                      \
        "bootdelay=" __stringify(CONFIG_BOOTDELAY) "\0"                 \
-       "console=" CONFIG_DEFAULT_CONSOLE "\0"                          \
-       "consoleon=\n"                                                  \
-       "    setenv console " CONFIG_DEFAULT_CONSOLE "\n"               \
-       "    saveenv\n"                                                 \
-       "    reset\0"                                                   \
-       "consoleoff=\n"                                                 \
-       "    setenv console console=ram\n"                              \
-       "    saveenv\n"                                                 \
-       "    reset\0"                                                   \
+       "console=" CONFIG_DEFAULT_CONSOLE                               \
+       "console_default=setenv console " CONFIG_DEFAULT_CONSOLE        \
+       "consoleon=run console_default; saveenv; reset\0"               \
+       "consoleoff=setenv console ram; saveenv; reset\0"               \
        "rootdev=" __stringify(CONFIG_ROOT_DEV) "\0"                    \
        "rootpart=" __stringify(CONFIG_ROOT_PART) "\0"                  \
        "bootpart=" __stringify(CONFIG_BOOT_PART) "\0"                  \