tizen: amlogic: move trailing '\0' to the common place 48/247848/2
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Nov 2020 10:06:45 +0000 (11:06 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Nov 2020 10:55:12 +0000 (11:55 +0100)
To make the env setup a bit more error proof, move the required trailing
'\0' character for the 'boot_prefixes' entry to the common place.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I535afa0a870b07a9d8637add8cccb8d55bcca5a0

include/samsung/tizen_amlogic.h

index 64d7422..0382ef9 100644 (file)
 #endif
 
 #ifdef CONFIG_TIZEN_KHADAS_VIM3
-#define TIZEN_BOOT_PREFIX "/vim3/ /\0"
+#define TIZEN_BOOT_PREFIX "/vim3/ /"
 #elif CONFIG_TIZEN_ODROID_N2
-#define TIZEN_BOOT_PREFIX "/odroid-n2/ /\0"
+#define TIZEN_BOOT_PREFIX "/odroid-n2/ /"
 #elif CONFIG_TIZEN_ODROID_C4
-#define TIZEN_BOOT_PREFIX "/odroid-c4/ /\0"
+#define TIZEN_BOOT_PREFIX "/odroid-c4/ /"
 #else
-#define TIZEN_BOOT_PREFIX "/ /boot/\0"
+#define TIZEN_BOOT_PREFIX "/ /boot/"
 #endif
 
 #define TIZEN_ENV_SETTING \
        "opts=loglevel=4\0"                     \
        "dfu_usb_con=0\0"                       \
        "dfu_interface=mmc\0"                   \
-       "boot_prefixes="TIZEN_BOOT_PREFIX       \
+       "boot_prefixes=" TIZEN_BOOT_PREFIX "\0"
 
 #define CONFIG_TIZEN