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