[U-Boot-Users] [PATCH] make some targets more related to latest NFS patch

Stephan Linz linz at mazet.de
Sun Feb 29 00:03:02 CET 2004


Hi all,

... smal bug fix for some targets without CFG_CMD_NFS support (esp. Nios)
... fixes broken compilation run ...



Best Regards,
Stephan Linz
-------------- next part --------------
diff -purN -x CVS u-boot-20040227cvs/net/bootp.c u-boot-20040227cvs-nfs_fix/net/bootp.c
--- u-boot-20040227cvs/net/bootp.c	2004-02-27 08:20:56.000000000 +0000
+++ u-boot-20040227cvs-nfs_fix/net/bootp.c	2004-02-27 23:31:25.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, 27 Feb 2004
  - avoid unresolved symbol of NfsStart() in net/bootp.c
    for targets without NFS download support


More information about the U-Boot mailing list