From 13884e934ec8eda928234c6506ae27f0334ec31b Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 23 Aug 2018 02:43:00 +0200 Subject: Show include paths in menuconfig symbol information Add a MenuNode.include_path attribute that holds a tuple of (filename, linenr) tuples, giving the locations of the 'source' statements via which the node's Kconfig file was included, starting from the top-level Kconfig file. Use MenuNode.include_path to give the include path for symbols and other items in the help display in the menuconfig interface. This is useful for figuring out how Kconfig files are organized, and when reorganizing things. --- tests/Kinclude_path | 12 ++++++++++++ tests/Kinclude_path_sourced_1 | 12 ++++++++++++ tests/Kinclude_path_sourced_2 | 11 +++++++++++ 3 files changed, 35 insertions(+) create mode 100644 tests/Kinclude_path create mode 100644 tests/Kinclude_path_sourced_1 create mode 100644 tests/Kinclude_path_sourced_2 (limited to 'tests') diff --git a/tests/Kinclude_path b/tests/Kinclude_path new file mode 100644 index 0000000..7a3badb --- /dev/null +++ b/tests/Kinclude_path @@ -0,0 +1,12 @@ +config TOP + bool + +source "Kinclude_path_sourced_1" + +config TOP + bool + +source "Kinclude_path_sourced_1" + +config TOP + bool diff --git a/tests/Kinclude_path_sourced_1 b/tests/Kinclude_path_sourced_1 new file mode 100644 index 0000000..f4dee98 --- /dev/null +++ b/tests/Kinclude_path_sourced_1 @@ -0,0 +1,12 @@ +config ONE_DOWN + bool + +source "Kinclude_path_sourced_2" + +config ONE_DOWN + bool + +source "Kinclude_path_sourced_2" + +config ONE_DOWN + bool diff --git a/tests/Kinclude_path_sourced_2 b/tests/Kinclude_path_sourced_2 new file mode 100644 index 0000000..068f18d --- /dev/null +++ b/tests/Kinclude_path_sourced_2 @@ -0,0 +1,11 @@ +config TWO_DOWN + bool + +menu "menu" +endmenu + +comment "comment" + +choice + bool "choice" +endchoice -- cgit v1.2.3