[U-Boot] [RFCv2b PATCH 04/14] kconfig: add basic Kconfig files

Masahiro Yamada yamada.m at jp.panasonic.com
Tue May 27 08:27:33 CEST 2014


This commit adds more Kconfig files, which were written by hand.

Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---

 Kconfig | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 Kconfig

diff --git a/Kconfig b/Kconfig
new file mode 100644
index 0000000..491fbc3
--- /dev/null
+++ b/Kconfig
@@ -0,0 +1,45 @@
+#
+# For a description of the syntax of this configuration file,
+# see Documentation/kbuild/kconfig-language.txt.
+#
+mainmenu "U-Boot $UBOOTVERSION Configuration"
+
+config UBOOTVERSION
+	string
+	option env="UBOOTVERSION"
+
+config KCONFIG_OBJDIR
+	string
+	option env="KCONFIG_OBJDIR"
+
+menu "General setup"
+
+config SPL_BUILD
+	bool
+	depends on $KCONFIG_OBJDIR="spl/" || $KCONFIG_OBJDIR="tpl/"
+	default y
+
+config TPL_BUILD
+	bool
+	depends on $KCONFIG_OBJDIR="tpl/"
+	default y
+
+config SPL
+	bool
+	prompt "Build SPL image" if !SPL_BUILD
+	default y if SPL_BUILD
+
+config TPL
+	bool
+	depends on SPL
+	prompt "Build TPL image" if !SPL_BUILD
+	default y if TPL_BUILD
+	default n
+
+endmenu		# General setup
+
+config ARCH
+	string
+	option env="ARCH"
+
+source "arch/$ARCH/Kconfig"
-- 
1.9.1



More information about the U-Boot mailing list