diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-08 22:36:24 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-08 22:36:24 +0200 |
commit | 6e0475b599217eceb8e01a1e572c2b16319462d9 (patch) | |
tree | 372e3c99ef1a128599455c91526d2d7c6d7ed790 /lib | |
parent | 8f72dab3d83f89a65b3bc5b141d509c156157503 (diff) |
gentree: add automatic backports only if needed
If the automatic backports aren't selected by any
driver then they don't need to be added to the
output, so ignore them in that case.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kconfig.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/kconfig.py b/lib/kconfig.py index 406e375b..880d7c3b 100644 --- a/lib/kconfig.py +++ b/lib/kconfig.py @@ -65,6 +65,15 @@ class ConfigTree(object): syms.append(m.group('sym')) return syms + def all_selects(self): + result = [] + for nf in self._walk(self.rootfile): + for l in open(os.path.join(self.basedir, nf), 'r'): + m = sel_line.match(l) + if m: + result.append(m.group('sym')) + return result + def modify_selects(self): syms = self.symbols() for nf in self._walk(self.rootfile): |