NetStar: fix default environment
authorLadislav Michl <Ladislav.Michl@seznam.cz>
Mon, 8 Feb 2010 19:17:45 +0000 (14:17 -0500)
committerTom Rix <Tom.Rix@windriver.com>
Sun, 7 Mar 2010 18:36:34 +0000 (12:36 -0600)
Correct switching partitions after upgrade and make it more readable.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
include/configs/netstar.h

index 884dc0937df48f3f204cd66ff35a5eb503f42530..df9402a85be8a6e32dcfe5e3f668d939e19c0771 100644 (file)
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_RUN
 
-
 /*
  * BOOTP options
  */
 #define CONFIG_SYS_AUTOLOAD            "n"             /* No autoload */
 #define CONFIG_BOOTCOMMAND     "run fboot"
 #define CONFIG_PREBOOT         "run setup"
-#define        CONFIG_EXTRA_ENV_SETTINGS                                               \
-       "autostart=yes\0"                                                       \
-       "ospart=0\0"                                                            \
-       "setup=setenv bootargs console=ttyS0,$baudrate "                        \
-               "$mtdparts\0"                                                   \
-       "setpart="                                                              \
-       "if test -n $swapos; then "                                             \
-               "setenv swapos; saveenv; "                                      \
-       "else "                                                                 \
-               "if test $ospart -eq 0; then setenv ospart 1;"                  \
-                       "else setenv ospart 0;          fi; "                   \
-       "fi\0"                                                                  \
-       "nfsargs=setenv bootargs $bootargs "                                    \
-               "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off "      \
-               "nfsroot=$rootpath root=/dev/nfs\0"                             \
-       "flashargs=run setpart;setenv bootargs $bootargs "                      \
-               "root=mtd:rootfs$ospart ro "                                    \
-               "rootfstype=jffs2\0"                                            \
-       "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off\0"             \
-       "fboot=run flashargs;nboot kernel$ospart\0"                             \
+#define        CONFIG_EXTRA_ENV_SETTINGS                                       \
+       "autostart=yes\0"                                               \
+       "ospart=0\0"                                                    \
+       "setup=setenv bootargs console=ttyS0,$baudrate $mtdparts\0"     \
+       "setpart="                                                      \
+       "if test -n $swapos; then "                                     \
+               "setenv swapos; saveenv; "                              \
+               "if test $ospart -eq 0; then "                          \
+                       "setenv ospart 1; "                             \
+               "else "                                                 \
+                       "setenv ospart 0; "                             \
+               "fi; "                                                  \
+       "fi\0"                                                          \
+       "nfsargs=setenv bootargs $bootargs "                            \
+               "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off " \
+               "nfsroot=$rootpath root=/dev/nfs\0"                     \
+       "flashargs=run setpart;setenv bootargs $bootargs "              \
+               "root=mtd:rootfs$ospart ro "                            \
+               "rootfstype=jffs2\0"                                    \
+       "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off\0"     \
+       "fboot=run flashargs;nboot kernel$ospart\0"                     \
        "nboot=bootp;run nfsargs;tftp\0"
 
 #if 0  /* feel free to disable for development */