[U-Boot-Users] patch bootp

Hi everybody,
The attached patch fixes a link error when the CFG_CMD_NFS is undefined. It applies against the current CVS.
Best regards
--- u-boot-ref/net/bootp.c 2004-02-27 09:20:56.000000000 +0100 +++ u-boot/net/bootp.c 2004-03-01 09:53:14.000000000 +0100 @@ -339,13 +339,16 @@ */ NetState = NETLOOP_SUCCESS; return; - } else if (strcmp(s, "NFS") == 0) { + } +#if (CONFIG_COMMANDS & CFG_CMD_NFS) + else if (strcmp(s, "NFS") == 0) { /* * Use NFS to load the bootfile. */ NfsStart(); return; } +#endif }
TftpStart(); @@ -897,13 +900,16 @@ */ NetState = NETLOOP_SUCCESS; return; - } else if (strcmp(s, "NFS") == 0) { + } +#if (CONFIG_COMMANDS & CFG_CMD_NFS) + else if (strcmp(s, "NFS") == 0) { /* * Use NFS to load the bootfile. */ NfsStart(); return; } +#endif } TftpStart(); return;

Hi Wolfgang,
wthat's about this patch (the same patch I posted shortly befor). It seems that some people (incl. me) need it...
Best regards, Stephan
Am Montag, 1. März 2004 09:57 schrieb Pierre AUBERT:
Hi everybody,
The attached patch fixes a link error when the CFG_CMD_NFS is undefined. It applies against the current CVS.
Best regards
---------------------------------------- Content-Type: text/plain; charset="us-ascii"; name="u-boot-bootp.patch" Content-Transfer-Encoding: quoted-printable Content-Description: ----------------------------------------

In message 4042FAE2.5010809@staubli.com you wrote:
The attached patch fixes a link error when the CFG_CMD_NFS is undefined. It applies against the current CVS.
Thanks, there was already a previous patch top fix this.
Best regards,
Wolfgang Denk
participants (3)
-
Pierre AUBERT
-
Stephan Linz
-
Wolfgang Denk