summaryrefslogtreecommitdiff
path: root/mkconfig
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-12-02 21:15:03 -0500
committerWolfgang Denk <wd@denx.de>2010-01-18 00:04:42 +0100
commit10c32ff59f7abe352b548066918bc5ea39e7c47b (patch)
tree080aea94c21b3c09d3664d326ae855a02df56a82 /mkconfig
parent3e3989619f5ed3ee28002d985f3da28540586ab9 (diff)
downloadu-boot-imx-10c32ff59f7abe352b548066918bc5ea39e7c47b.zip
u-boot-imx-10c32ff59f7abe352b548066918bc5ea39e7c47b.tar.gz
u-boot-imx-10c32ff59f7abe352b548066918bc5ea39e7c47b.tar.bz2
config_defaults.h: new header for common u-boot config defaults
There are a bunch of features in U-Boot that we want to enable by default, and it's best if we centralize them in one place rather than updating all the board files out there. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'mkconfig')
-rwxr-xr-xmkconfig10
1 files changed, 6 insertions, 4 deletions
diff --git a/mkconfig b/mkconfig
index 27d9f2b..0f7f13e 100755
--- a/mkconfig
+++ b/mkconfig
@@ -101,9 +101,11 @@ for i in ${TARGETS} ; do
echo "#define CONFIG_MK_${i} 1" >>config.h ;
done
-echo "#define CONFIG_BOARDDIR board/$BOARDDIR" >>config.h
-
-echo "#include <configs/$1.h>" >>config.h
-echo "#include <asm/config.h>" >>config.h
+cat << EOF >> config.h
+#define CONFIG_BOARDDIR board/$BOARDDIR
+#include <config_defaults.h>
+#include <configs/$1.h>
+#include <asm/config.h>
+EOF
exit 0