summaryrefslogtreecommitdiff
path: root/examples/find_symbol.py
AgeCommit message (Collapse)Author
2018-09-15Update some examples to use node_iter()Ulf Magnusson
Simplifies the code. Should promote new APIs. Also fix list_undefined.py for recent kernels. More environment variables are referenced now.
2018-06-22Simplify the find_symbol and list_undefined examplesUlf Magnusson
Much of the functionality is available in Kconfiglib itself now. Use the new APIs to implement the examples in a much simpler way.
2018-06-11Add a function for getting all items in an expressionUlf Magnusson
Handy e.g. when searching.
2018-05-27Simplify error exitsUlf Magnusson
Had missed sys.exit(msg).
2018-02-03Add example that finds references to undefined symbolsUlf Magnusson
Does a global search over all architectures in the kernel, which should avoid false positives. Referencing an undefined symbol in a particular architecture can be fine in a Kconfig file that's shared by multiple architectures, but if the symbol isn't defined by any architecture, it's likely to be an error (or a potential cleanup).
2017-11-10Fix a few typosUlf Magnusson
Clean up some formatting a bit too.
2017-11-05Fix find_symbol.py typoUlf Magnusson
Argument must be "X86" to get that output. "x86" just returns some constant symbols.
2017-11-05Add example that finds references to a symbolUlf Magnusson
Demonstrates expression fetching and walking. Basically a much better version of get_ref_locations() from Kconfiglib 1, now that the user API is flexible enough to implement it. Should be it for new examples before release.