[U-Boot] [PATCH] 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 --- net/net.c | 4 ++-- 1 file 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),

On Fri, Jun 13, 2014 at 06:25:29AM +0200, Hannes Petermaier wrote:
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
Applied to u-boot/master, thanks!
participants (2)
-
Hannes Petermaier
-
Tom Rini