Skip to contentSkip to conversation

make some targets more related to latest NFS patch

PATCH New Stephan Linz 2 participants 2 messages Feb 28, 2004 – Mar 13, 2004 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make some targets more related to latest NFS patch

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 --------------

net/bootp.c +4 -0
diff -purN -x CVS u-boot-20040227cvs/net/bootp.c u-boot-20040227cvs-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, 27 Feb 2004
- avoid unresolved symbol of NfsStart() in net/bootp.c for targets without NFS download support

#1 lore raw

PATCH 1/1 make some targets more related to latest NFS patch

Quoted 3 lines · In message <04022900030200.30756@pcj86> you wrote:

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

Thanks, added.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The first 90% of a project takes 90% of the time, the last 10%  takes
the other 90% of the time.