summaryrefslogtreecommitdiff
path: root/examples/print_undefined.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/print_undefined.py')
-rw-r--r--examples/print_undefined.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/print_undefined.py b/examples/print_undefined.py
deleted file mode 100644
index fb8120b..0000000
--- a/examples/print_undefined.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# Prints the names of all symbols that are referenced but never defined in the
-# current configuration together with the locations where they are referenced.
-# Integers being included in the list is not a bug, as these need to be treated
-# as symbols per the design of Kconfig.
-
-import kconfiglib
-import sys
-
-conf = kconfiglib.Config(sys.argv[1])
-
-for sym in conf.get_symbols():
- if not sym.is_defined():
- print(sym.get_name())
- for (filename, linenr) in sym.get_ref_locations():
- print(" {0}:{1}".format(filename, linenr))