diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-04-13 07:13:41 -0700 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-13 22:58:50 +0200 |
commit | 2eff5b812cfffff3f6a38a576ce5d34dd26080c0 (patch) | |
tree | f298fa46b843288e07d413c0cce08eef978cf35b /gentree.py | |
parent | 11f658873a4bdd60dcf658926283b8fa36151fde (diff) |
gentree.py: add support to explicitly disable a config
At times we may want to disable a config option completely.
Add support for this. All you have to is list the config
on the depdependencies file with DISABLE instead of a kernel
version.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'gentree.py')
-rwxr-xr-x | gentree.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -502,7 +502,10 @@ def process(kerneldir, outdir, copy_list_file, git_revision=None, for sym in tuple(deplist.keys()): new = [] for dep in deplist[sym]: - new.append('!BACKPORT_KERNEL_%s' % dep.replace('.', '_')) + if dep == "DISABLE": + new.append('BACKPORT_DISABLED_KCONFIG_OPTION') + else: + new.append('!BACKPORT_KERNEL_%s' % dep.replace('.', '_')) deplist[sym] = new configtree.add_dependencies(deplist) git_debug_snapshot(args, "add kernel version dependencies") |