[U-Boot] [PATCH] SPD823TS: do not define CONFIG_CMD_ENV

Mike Frysinger vapier at gentoo.org
Wed Jan 28 19:48:55 CET 2009


Since the SPD823TS board does not actually have any writable flash to save
its environment, undefine CONFIG_CMD_ENV so the "saveenv" command is
disabled.

This fixes the build error:
common/libcommon.a(cmd_nvedit.o): In function `do_saveenv':
common/cmd_nvedit.c:557: undefined reference to `saveenv'
make: *** [u-boot] Error 1

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 include/configs/SPD823TS.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/configs/SPD823TS.h b/include/configs/SPD823TS.h
index 9201346..d4154d2 100644
--- a/include/configs/SPD823TS.h
+++ b/include/configs/SPD823TS.h
@@ -67,6 +67,7 @@
 
 #define CONFIG_CMD_IDE
 
+#undef CONFIG_CMD_ENV
 #undef CONFIG_CMD_FLASH
 
 
-- 
1.6.1.1



More information about the U-Boot mailing list