gentree.py: add support to explicitly disable a config
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Sat, 13 Apr 2013 14:13:41 +0000 (07:13 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 13 Apr 2013 20:58:50 +0000 (22:58 +0200)
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>
gentree.py

index c0838ea9d272e47140bc16c5934a85ef251a0bba..204fffdf396d8593fde43cc6f51f77a99040c232 100755 (executable)
@@ -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")