[PATCH 16/16] Kconfig: Create a new tools menu

Simon Glass sjg at chromium.org
Fri Sep 11 04:21:27 CEST 2020


At present MKIMAGE_DTC_PATH is in the devicetree menu but not within
'devicetree control' since it does not relate to that. As a result it
shows up in the top menu.

It actually relates to the mkimage tool, so create a new tools menu for it
and move it there.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 Kconfig       |  2 ++
 dts/Kconfig   |  9 ---------
 tools/Kconfig | 12 ++++++++++++
 3 files changed, 14 insertions(+), 9 deletions(-)
 create mode 100644 tools/Kconfig

diff --git a/Kconfig b/Kconfig
index aa979a7dcf9..6731bed2bc0 100644
--- a/Kconfig
+++ b/Kconfig
@@ -445,3 +445,5 @@ source "fs/Kconfig"
 source "lib/Kconfig"
 
 source "test/Kconfig"
+
+source "tools/Kconfig"
diff --git a/dts/Kconfig b/dts/Kconfig
index 046a54a1736..86ea8ce8875 100644
--- a/dts/Kconfig
+++ b/dts/Kconfig
@@ -377,12 +377,3 @@ config TPL_OF_PLATDATA
 	  declarations for each node. See of-plat.txt for more information.
 
 endmenu
-
-config MKIMAGE_DTC_PATH
-	string "Path to dtc binary for use within mkimage"
-	default "dtc"
-	help
-	  The mkimage host tool will, in order to generate FIT images make
-	  calls to the dtc application in order to create the output.  In
-	  some cases the system dtc may not support all required features
-	  and the path to a different version should be given here.
diff --git a/tools/Kconfig b/tools/Kconfig
new file mode 100644
index 00000000000..b2f5012240c
--- /dev/null
+++ b/tools/Kconfig
@@ -0,0 +1,12 @@
+menu "Tools options"
+
+config MKIMAGE_DTC_PATH
+	string "Path to dtc binary for use within mkimage"
+	default "dtc"
+	help
+	  The mkimage host tool will, in order to generate FIT images make
+	  calls to the dtc application in order to create the output.  In
+	  some cases the system dtc may not support all required features
+	  and the path to a different version should be given here.
+
+endmenu
-- 
2.28.0.618.gf4bc123cb7-goog



More information about the U-Boot mailing list