Skip to contentSkip to conversation

net/bootp.c more conform to CFG_CMD_NFS

PATCH New Stephan Linz 2 participants 2 messages Mar 10, 2004 – Mar 14, 2004 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/bootp.c more conform to CFG_CMD_NFS

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

Best regards,
Stephan
-------------- next part --------------

net/bootp.c +4 -0
diff -purN -x CVS u-boot-20040309cvs/net/bootp.c u-boot-20040309cvs-bootp_nfs_fix/net/bootp.c
@@ -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

#1 lore raw

PATCH 1/1 net/bootp.c more conform to CFG_CMD_NFS

Quoted 3 lines · In message <0403101845200A.12732@pcj86> you wrote:

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

This was already submitted (and added) before. Ignored.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
They're usually so busy thinking about what  happens  next  that  the
only  time they ever find out what is happening now is when they come
to look back on it.                 - Terry Pratchett, _Wyrd Sisters_