[U-Boot] [PATCH v3 04/11] kconfig: add basic Kconfig files

Masahiro Yamada yamada.m at jp.panasonic.com
Tue Jun 24 05:53:07 CEST 2014


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

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

Changes in v3:
  - Add CONFIG_SUBIMAGES for generic sub-image framework.
  - Move CONFIG_SYS_EXTRA_OPTIONS to the top Kconfig.
  - Add more help messages to each config.

Changes in v2:
  - Do not include "board/Kconfig"
  - Drop CONFIG_BUILD_MODE

 Kconfig      | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 arch/Kconfig | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 140 insertions(+)
 create mode 100644 Kconfig
 create mode 100644 arch/Kconfig

diff --git a/Kconfig b/Kconfig
new file mode 100644
index 0000000..e6751d8
--- /dev/null
+++ b/Kconfig
@@ -0,0 +1,74 @@
+#
+# 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"
+
+menu "General setup"
+
+config SUBIMAGES
+	string "Subimages"
+	help
+	  This option allows you to specify the additional images.
+	  The main purpose is to enable what we called SPL/TPL.
+	  But we can specify them more genericlly in the form of
+	  "img1_output_dir:img1_defconfig,img2_output_dir:img2_defconfig".
+
+config SPL
+	bool "Enable SPL"
+	help
+	  If you want to build SPL as well as the normal image, say Y.
+	  This option is available for a while for the backward compatibility.
+	  We should use CONFIG_SUBIMAGES to specify the additional images.
+	  After switching to the generic sub-images framework, this option
+	  should be removed.
+
+config TPL
+	bool "Enable TPL"
+	depends on SPL
+	help
+	  If you want to build TPL as well as the normal image and SPL, say Y.
+	  This option is available for a while for the backward compatibility.
+	  We should use CONFIG_SUBIMAGES to specify the additional images.
+	  After switching to the generic sub-images framework, this option
+	  should be removed.
+
+config SPL_BUILD
+	bool "SPL Build"
+	select SPL
+	help
+	  This option selects the build mode.
+	  If you want to build this image as SPL, say Y.
+	  This option should be removed in future because
+	  we do not want to treat SPL/TPL as special cases.
+
+config TPL_BUILD
+	bool "TPL Build"
+	depends on SPL_BUILD
+	select TPL
+	help
+	  This option selects the build mode.
+	  If you want to build this image as TPL, say Y.
+	  This option should be removed in future because
+	  we do not want to treat SPL/TPL as special cases.
+
+config SYS_EXTRA_OPTIONS
+	string "Extra Options"
+	help
+	  The old configuration infrastructure (= mkconfig + boards.cfg)
+	  provided the extra options field. It you have something like
+	  "HAS_BAR,BAZ=64", the optional options
+	    #define CONFIG_HAS
+	    #define CONFIG_BAZ	64
+	  will be defined in include/config.h.
+	  This option was prepared for the smooth migration from the old
+	  configuration to Kconfig. Since this option will be removed sometime,
+	  new boards should not use this option.
+
+endmenu		# General setup
+
+source "arch/Kconfig"
diff --git a/arch/Kconfig b/arch/Kconfig
new file mode 100644
index 0000000..8620a4f
--- /dev/null
+++ b/arch/Kconfig
@@ -0,0 +1,66 @@
+choice
+	prompt "Architecture select"
+	default SANDBOX
+
+config ARC
+	bool "ARC architecture"
+
+config ARM
+	bool "ARM architecture"
+
+config AVR32
+	bool "AVR32 architecture"
+
+config BLACKFIN
+	bool "Blackfin architecture"
+
+config M68K
+	bool "M68000 architecture"
+
+config MICROBLAZE
+	bool "MicroBlaze architecture"
+
+config MIPS
+	bool "MIPS architecture"
+
+config NDS32
+	bool "NDS32 architecture"
+
+config NIOS2
+	bool "Nios II architecture"
+
+config OPENRISC
+	bool "OpenRISC architecture"
+
+config PPC
+	bool "PowerPC architecture"
+
+config SANDBOX
+	bool "Sandbox"
+
+config SH
+	bool "SuperH architecture"
+
+config SPARC
+	bool "SPARC architecture"
+
+config X86
+	bool "x86 architecture"
+
+endchoice
+
+source "arch/arc/Kconfig"
+source "arch/arm/Kconfig"
+source "arch/avr32/Kconfig"
+source "arch/blackfin/Kconfig"
+source "arch/m68k/Kconfig"
+source "arch/microblaze/Kconfig"
+source "arch/mips/Kconfig"
+source "arch/nds32/Kconfig"
+source "arch/nios2/Kconfig"
+source "arch/openrisc/Kconfig"
+source "arch/powerpc/Kconfig"
+source "arch/sandbox/Kconfig"
+source "arch/sh/Kconfig"
+source "arch/sparc/Kconfig"
+source "arch/x86/Kconfig"
-- 
1.9.1



More information about the U-Boot mailing list