Skip to contentSkip to conversation

gentree.py: add support to explicitly disable a config

PATCH New Luis R. Rodriguez 1 participant 1 message Apr 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gentree.py: add support to explicitly disable a config

From: "Luis R. Rodriguez" <[email protected]>

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.

---

Lets play a game. I'm testing this right now with ckmake so you can either wait for that result or apply it if you know for sure this should work (tm).

 gentree.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
gentree.py +4 -1
index 476a3fc..a80db69 100755
@@ -500,7 +500,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_KERNEL_%s' % dep.replace('.', '_'))
+            else:
+                    new.append('!BACKPORT_KERNEL_%s' % dep.replace('.', '_'))
         deplist[sym] = new
     configtree.add_dependencies(deplist)
     git_debug_snapshot(args, "add kernel version dependencies")
Signature · 1 line
1.7.10.4