diff mbox

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

Message ID 1401172063-17281-5-git-send-email-yamada.m@jp.panasonic.com
State RFC
Headers show

Commit Message

Masahiro Yamada May 27, 2014, 6:27 a.m. UTC
This commit adds more Kconfig files, which were written by hand.

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

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

Patch

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"