Blackfin: add a netconsole helper
authorRobin Getz <robin.getz@analog.com>
Mon, 21 Dec 2009 20:31:08 +0000 (15:31 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 17 Jan 2010 14:17:27 +0000 (09:17 -0500)
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/configs/bfin_adi_common.h

index db10ccc..f7a2d5c 100644 (file)
                "erase 0x20000000 +$(filesize);" \
                "cp.b $(loadaddr) 0x20000000 $(filesize)"
 # endif
+# ifdef CONFIG_NETCONSOLE
+#  define NETCONSOLE_ENV \
+       "nc=" \
+               "set ncip ${serverip};" \
+               "set stdin nc;" \
+               "set stdout nc" \
+               "\0"
+# else
+#  define NETCONSOLE_ENV
+# endif
 # define NETWORK_ENV_SETTINGS \
+       NETCONSOLE_ENV \
+       \
        "ubootfile=" UBOOT_ENV_FILE "\0" \
        "update=" \
                "tftp $(loadaddr) $(ubootfile);" \