]> git.sur5r.net Git - u-boot/commitdiff
fix: CONFIG_NETCONSOLE start/handle this stuff only outside SPL
authorHannes Petermaier <oe5hpm@oevsv.at>
Fri, 13 Jun 2014 04:25:29 +0000 (06:25 +0200)
committerTom Rini <trini@ti.com>
Thu, 19 Jun 2014 15:19:05 +0000 (11:19 -0400)
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>
net/net.c

index f7cc29f03956a6b1b56ccc27e479f351d86cf570..0f7625fde1dc52de2df5fb3ecd91589db24c7c56 100644 (file)
--- 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),