public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] net/bootp.c more conform to CFG_CMD_NFS
@ 2004-03-10 17:45 Stephan Linz
  2004-03-14 15:19 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Stephan Linz @ 2004-03-10 17:45 UTC (permalink / raw)
  To: u-boot


  - avoid unresolved symbol of NfsStart() in net/bootp.c
    for each target without NFS download support


Best regards,
Stephan
-------------- next part --------------
diff -purN -x CVS u-boot-20040309cvs/net/bootp.c u-boot-20040309cvs-bootp_nfs_fix/net/bootp.c
--- u-boot-20040309cvs/net/bootp.c	2004-02-27 08:20:56.000000000 +0000
+++ u-boot-20040309cvs-bootp_nfs_fix/net/bootp.c	2004-03-09 19:25:09.000000000 +0000
@@ -339,12 +339,14 @@ BootpHandler(uchar * pkt, unsigned dest,
 			 */
 			NetState = NETLOOP_SUCCESS;
 			return;
+#if	(CONFIG_COMMANDS & CFG_CMD_NFS)
 		} else if (strcmp(s, "NFS") == 0) {
 			/*
 			 * Use NFS to load the bootfile.
 			 */
 			NfsStart();
 			return;
+#endif
 		}
 	}
 
@@ -897,12 +899,14 @@ DhcpHandler(uchar * pkt, unsigned dest, 
 					 */
 					NetState = NETLOOP_SUCCESS;
 					return;
+#if	(CONFIG_COMMANDS & CFG_CMD_NFS)
 				} else if (strcmp(s, "NFS") == 0) {
 					/*
 					 * Use NFS to load the bootfile.
 					 */
 					NfsStart();
 					return;
+#endif
 				}
 			}
 			TftpStart();
-------------- next part --------------
* Patch by Stephan Linz, 09 Mar 2004
  - avoid unresolved symbol of NfsStart() in net/bootp.c
    for each target without NFS download support

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-14 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-10 17:45 [U-Boot-Users] [PATCH] net/bootp.c more conform to CFG_CMD_NFS Stephan Linz
2004-03-14 15:19 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox