summaryrefslogtreecommitdiff
path: root/include/configs/bfin_adi_common.h
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2009-12-21 15:31:08 -0500
committerMike Frysinger <vapier@gentoo.org>2010-01-17 09:17:27 -0500
commit0097870e3d72f10ec58ae22488945fd9ee37289f (patch)
treebae092831c037efb46da6344f2cf23a7af0ff4dc /include/configs/bfin_adi_common.h
parent10eafa10be2deaba4939d0c19cd21648f2d3d4aa (diff)
Blackfin: add a netconsole helper
Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/configs/bfin_adi_common.h')
-rw-r--r--include/configs/bfin_adi_common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/bfin_adi_common.h b/include/configs/bfin_adi_common.h
index db10ccca7c..f7a2d5c111 100644
--- a/include/configs/bfin_adi_common.h
+++ b/include/configs/bfin_adi_common.h
@@ -178,7 +178,19 @@
"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);" \