From 624a6937d4286086aa185996488183e66cda62d5 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Thu, 8 Sep 2016 21:10:01 +0200 Subject: [PATCH] Enable defenv cmd only if flash and env cmds are defined --- u-boot/common/cmd_custom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.25.1