]> Git Repo - J-u-boot.git/blobdiff - net/bootp.c
* Patch by Travis Sawyer, 01 Mar 2004:
[J-u-boot.git] / net / bootp.c
index f5adce4f5e34d7f40fe67bf74e85da1cc35865dc..b760b885b2afe08788b4457e3768b8493db25920 100644 (file)
@@ -339,12 +339,14 @@ BootpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
                         */
                        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
                }
        }
 
@@ -893,12 +895,14 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
                                         */
                                        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();
This page took 0.026536 seconds and 4 git commands to generate.