mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
net/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <jdl@freescale.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
45cdb9b72c
commit
6e2115acb6
@@ -29,7 +29,7 @@
|
||||
#include "rarp.h"
|
||||
#include "tftp.h"
|
||||
|
||||
#if (CONFIG_COMMANDS & CFG_CMD_NET)
|
||||
#if (CONFIG_COMMANDS & CFG_CMD_NET) || defined(CONFIG_CMD_NET)
|
||||
|
||||
#define TIMEOUT 5 /* Seconds before trying BOOTP again */
|
||||
#ifndef CONFIG_NET_RETRY_COUNT
|
||||
@@ -59,7 +59,7 @@ RarpHandler(uchar * dummi0, unsigned dummi1, unsigned dummi2, unsigned dummi3)
|
||||
*/
|
||||
NetState = NETLOOP_SUCCESS;
|
||||
return;
|
||||
#if (CONFIG_COMMANDS & CFG_CMD_NFS)
|
||||
#if (CONFIG_COMMANDS & CFG_CMD_NFS) || defined(CONFIG_CMD_NFS)
|
||||
} else if ((s != NULL) && !strcmp(s, "NFS")) {
|
||||
NfsStart();
|
||||
return;
|
||||
|
Reference in New Issue
Block a user