]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 db10ccca7c18e954a1081bb1369a3eb77033a165..f7a2d5c111016e1a00d1f7e83d0b3d56cb88880d 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);" \