diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-02-01 17:16:24 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-02-01 17:16:24 +0100 |
commit | a14481c13a901a3e6a09be7cd1b41b191da720a3 (patch) | |
tree | 17c69d9029246de268bedf92cb01cf250d2b7324 /scripts | |
parent | 10b0a1105069de54e2b2aa19d135cbb59bf1cc04 (diff) | |
download | ptxdist-a14481c13a901a3e6a09be7cd1b41b191da720a3.tar.gz ptxdist-a14481c13a901a3e6a09be7cd1b41b191da720a3.tar.xz |
kconfig: also dump all known and unknown symbols
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/conf.c | 13 | ||||
-rw-r--r-- | scripts/ptx-modifications/0001-conf-add-an-option-to-output-the-dependency-informat.patch | 21 |
2 files changed, 30 insertions, 4 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 55845b34b..32b4b6b99 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -489,6 +489,19 @@ static void create_dep_output() } printf("\n"); } + printf("SYMBOLS:ALL"); + for_all_symbols(i, sym) { + if (sym->name && (sym->type != S_UNKNOWN)) + printf(":%s", sym->name); + } + printf("\n"); + printf("SYMBOLS:UNKNOWN"); + for_all_symbols(i, sym) { + if (sym->name && (sym->type == S_UNKNOWN) && + !(sym->flags & SYMBOL_CONST)) + printf(":%s", sym->name); + } + printf("\n"); } static struct option long_opts[] = { diff --git a/scripts/ptx-modifications/0001-conf-add-an-option-to-output-the-dependency-informat.patch b/scripts/ptx-modifications/0001-conf-add-an-option-to-output-the-dependency-informat.patch index 0480ebc6a..ec760f87d 100644 --- a/scripts/ptx-modifications/0001-conf-add-an-option-to-output-the-dependency-informat.patch +++ b/scripts/ptx-modifications/0001-conf-add-an-option-to-output-the-dependency-informat.patch @@ -4,11 +4,11 @@ Subject: [PATCH] conf: add an option to output the dependency information Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> --- - scripts/kconfig/conf.c | 47 ++++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 47 insertions(+) + scripts/kconfig/conf.c | 60 ++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 60 insertions(+) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c -index db03e2f45de4..55845b34b4ad 100644 +index db03e2f45de4..32b4b6b99085 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -35,6 +35,7 @@ enum input_mode { @@ -19,7 +19,7 @@ index db03e2f45de4..55845b34b4ad 100644 }; static enum input_mode input_mode = oldaskconfig; -@@ -454,6 +455,42 @@ static void check_conf(struct menu *menu) +@@ -454,6 +455,55 @@ static void check_conf(struct menu *menu) check_conf(child); } @@ -57,6 +57,19 @@ index db03e2f45de4..55845b34b4ad 100644 + } + printf("\n"); + } ++ printf("SYMBOLS:ALL"); ++ for_all_symbols(i, sym) { ++ if (sym->name && (sym->type != S_UNKNOWN)) ++ printf(":%s", sym->name); ++ } ++ printf("\n"); ++ printf("SYMBOLS:UNKNOWN"); ++ for_all_symbols(i, sym) { ++ if (sym->name && (sym->type == S_UNKNOWN) && ++ !(sym->flags & SYMBOL_CONST)) ++ printf(":%s", sym->name); ++ } ++ printf("\n"); +} + static struct option long_opts[] = { |