X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_elf.c;h=2eb745315602afa86b351255844d5d636b4a2a0e;hb=590f6ccd9a5973e6a637aaf051db02e9b93eb32c;hp=0e3d56f6bbb88ee0004f99f6ecb4b590bff59da7;hpb=5c97aeb8d8b780b10a1cb0beaca196c009f5a62a;p=u-boot diff --git a/common/cmd_elf.c b/common/cmd_elf.c index 0e3d56f6bb..2eb7453156 100644 --- a/common/cmd_elf.c +++ b/common/cmd_elf.c @@ -23,8 +23,6 @@ DECLARE_GLOBAL_DATA_PTR; #endif -#if (CONFIG_COMMANDS & CFG_CMD_ELF) - #ifndef MAX #define MAX(a,b) ((a) > (b) ? (a) : (b)) #endif @@ -101,7 +99,7 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) else addr = simple_strtoul (argv[1], NULL, 16); -#if (CONFIG_COMMANDS & CFG_CMD_NET) +#if defined(CONFIG_CMD_NET) /* Check to see if we need to tftp the image ourselves before starting */ if ((argc == 2) && (strcmp (argv[1], "tftp") == 0)) { @@ -323,5 +321,3 @@ U_BOOT_CMD( "bootvx - Boot vxWorks from an ELF image\n", " [address] - load address of vxWorks ELF image.\n" ); - -#endif /* CFG_CMD_ELF */