summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-20 18:57:09 -0500
committerWolfgang Denk <wd@denx.de>2011-01-09 18:01:03 +0100
commit52f0aa835fd6caf5f094b551e435f5c9506d61df (patch)
tree28b17dd9e03865ebc7cbc694a6d8a3e82e1243f3
parentb9347188729992ef8282a2854889d8dcc25175aa (diff)
downloadu-boot-52f0aa835fd6caf5f094b551e435f5c9506d61df.tar.gz
u-boot-52f0aa835fd6caf5f094b551e435f5c9506d61df.tar.bz2
u-boot-52f0aa835fd6caf5f094b551e435f5c9506d61df.zip
config_cmd_defaults.h: new header for common u-boot command defaults
We have config_defaults.h which are random configuration settings that everyone gets by default. We also have config_cmd_default.h which is a recommended list of defaults but boards have to opt into. Now we have config_cmd_defaults.h which is a list of defaults that everyone gets and has to actively opt out of. For now, we populate it with the bootm command which previously was unable to be disabled. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--common/Makefile2
-rw-r--r--include/config_cmd_defaults.h14
-rwxr-xr-xmkconfig1
3 files changed, 16 insertions, 1 deletions
diff --git a/common/Makefile b/common/Makefile
index abea91cb77..048df0cbca 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -41,7 +41,7 @@ COBJS-y += xyzModem.o
# core command
COBJS-y += cmd_boot.o
-COBJS-y += cmd_bootm.o
+COBJS-$(CONFIG_CMD_BOOTM) += cmd_bootm.o
COBJS-y += cmd_help.o
COBJS-y += cmd_nvedit.o
COBJS-y += cmd_version.o
diff --git a/include/config_cmd_defaults.h b/include/config_cmd_defaults.h
new file mode 100644
index 0000000000..9283daa3d2
--- /dev/null
+++ b/include/config_cmd_defaults.h
@@ -0,0 +1,14 @@
+/*
+ * config_cmd_defaults.h - sane defaults for everyone
+ *
+ * Copyright (c) 2010 Analog Devices Inc.
+ *
+ * Licensed under the GPL-2 or later.
+ */
+
+#ifndef _CONFIG_CMD_DEFAULTS_H_
+#define _CONFIG_CMD_DEFAULTS_H_
+
+#define CONFIG_CMD_BOOTM 1
+
+#endif
diff --git a/mkconfig b/mkconfig
index 2fda1d4c41..db69336699 100755
--- a/mkconfig
+++ b/mkconfig
@@ -155,6 +155,7 @@ done
cat << EOF >> config.h
#define CONFIG_BOARDDIR board/$BOARDDIR
+#include <config_cmd_defaults.h>
#include <config_defaults.h>
#include <configs/${CONFIG_NAME}.h>
#include <asm/config.h>