X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fcommand.c;h=af2f8cbf7b8c163e74dc8530d89c50f67dc82665;hb=38b189fe749824ea9b1c5422865e78b4b7eb2494;hp=2b4c5547b31af616f5599e475790935823d04344;hpb=20787e23b8501f11c83599d1a2e38bb1204ac961;p=oweals%2Fu-boot.git diff --git a/common/command.c b/common/command.c index 2b4c5547b3..af2f8cbf7b 100644 --- a/common/command.c +++ b/common/command.c @@ -42,6 +42,8 @@ U_BOOT_CMD( NULL ); +#if defined(CONFIG_CMD_ECHO) + int do_echo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { @@ -74,6 +76,8 @@ U_BOOT_CMD( " - echo args to console; \\c suppresses newline\n" ); +#endif + #ifdef CFG_HUSH_PARSER int @@ -405,7 +409,7 @@ void install_auto_complete(void) { install_auto_complete_handler("printenv", var_complete); install_auto_complete_handler("setenv", var_complete); -#if (CONFIG_COMMANDS & CFG_CMD_RUN) +#if defined(CONFIG_CMD_RUN) install_auto_complete_handler("run", var_complete); #endif }