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>
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")