summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorHannes Petermaier <oe5hpm@oevsv.at>2014-06-13 06:25:29 +0200
committerTom Rini <trini@ti.com>2014-06-19 11:19:05 -0400
commit1f9ce3063cd723a1dcf0d02070f07c59491cf6f9 (patch)
treee834ae37b3883d741a979fbb17d4095041c29df1 /net
parent2b9912e6a7df7b1f60beb7942bd0e6fa5f9d0167 (diff)
downloadu-boot-1f9ce3063cd723a1dcf0d02070f07c59491cf6f9.tar.gz
u-boot-1f9ce3063cd723a1dcf0d02070f07c59491cf6f9.tar.xz
u-boot-1f9ce3063cd723a1dcf0d02070f07c59491cf6f9.zip
fix: CONFIG_NETCONSOLE start/handle this stuff only outside SPL
SPL stage does not support various networking things, and therefore CONFIG_NETCONSOLE cannot be built within SPL. Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
Diffstat (limited to 'net')
-rw-r--r--net/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/net.c b/net/net.c
index f7cc29f039..0f7625fde1 100644
--- a/net/net.c
+++ b/net/net.c
@@ -419,7 +419,7 @@ restart:
CDPStart();
break;
#endif
-#ifdef CONFIG_NETCONSOLE
+#if defined (CONFIG_NETCONSOLE) && !(CONFIG_SPL_BUILD)
case NETCONS:
NcStart();
break;
@@ -1182,7 +1182,7 @@ NetReceive(uchar *inpkt, int len)
#endif
-#ifdef CONFIG_NETCONSOLE
+#if defined (CONFIG_NETCONSOLE) && !(CONFIG_SPL_BUILD)
nc_input_packet((uchar *)ip + IP_UDP_HDR_SIZE,
src_ip,
ntohs(ip->udp_dst),