summaryrefslogtreecommitdiffstats
path: root/lib/bb/command.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-10-04 16:19:45 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-04 14:35:09 +0100
commitbd720fb63cef6b399619b8fbcaeb8d7710f2d6df (patch)
tree64822e20dc247734f3cf8e2e369d7144dd86d669 /lib/bb/command.py
parent2d0ec8ff083b636a6cf98de3278900eb95c3def6 (diff)
downloadbitbake-bd720fb63cef6b399619b8fbcaeb8d7710f2d6df.tar.gz
bitbake/hob: removing extra parameters from conf files using hob
In Hob settings, there is a tab to add/remove extra settings. This patch implements a way to "remove" variables from conf files, through bitbake. But, to keep the history assigment of the variables synchronized, instead of removing, it replaces the lines with blank lines. [YOCTO #5284] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r--lib/bb/command.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 21a6de0f6..3ca27a69e 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -241,6 +241,13 @@ class CommandsSync:
op = params[3]
command.cooker.modifyConfigurationVar(var, val, default_file, op)
+ def removeVarFile(self, command, params):
+ """
+ Remove a variable declaration from a file
+ """
+ var = params[0]
+ command.cooker.removeConfigurationVar(var)
+
def createConfigFile(self, command, params):
"""
Create an extra configuration file