From: Piotr Dymacz Date: Thu, 8 Sep 2016 19:10:01 +0000 (+0200) Subject: Enable defenv cmd only if flash and env cmds are defined X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=624a6937d4286086aa185996488183e66cda62d5;p=oweals%2Fu-boot_mod.git Enable defenv cmd only if flash and env cmds are defined --- diff --git a/u-boot/common/cmd_custom.c b/u-boot/common/cmd_custom.c index 397984d..fd2c3b2 100644 --- a/u-boot/common/cmd_custom.c +++ b/u-boot/common/cmd_custom.c @@ -179,7 +179,7 @@ U_BOOT_CMD(startsc, 1, 0, do_start_sc, "start serial console\n", NULL); #endif /* if defined(CONFIG_NETCONSOLE) */ -#if !defined(CONFIG_FOR_DLINK_DIR505_A1) +#if defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_FLASH) /* * Erase environment sector */ @@ -229,7 +229,7 @@ int do_default_env(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]){ } U_BOOT_CMD(defenv, 1, 0, do_default_env, "reset environment variables to their default values\n", NULL); -#endif /* if !defined(CONFIG_FOR_DLINK_DIR505_A1) */ +#endif /* if CONFIG_CMD_ENV && CONFIG_CMD_FLASH */ /* * Allows to get reset button status: