summaryrefslogtreecommitdiff
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
parent2b9912e6a7df7b1f60beb7942bd0e6fa5f9d0167 (diff)
downloadu-boot-imx-1f9ce3063cd723a1dcf0d02070f07c59491cf6f9.zip
u-boot-imx-1f9ce3063cd723a1dcf0d02070f07c59491cf6f9.tar.gz
u-boot-imx-1f9ce3063cd723a1dcf0d02070f07c59491cf6f9.tar.bz2
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>
-rw-r--r--net/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/net.c b/net/net.c
index f7cc29f..0f7625f 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),