diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-10-04 16:19:45 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-07 09:37:34 +0100 |
commit | ee7e64f116608ab105ead99c7f1966158054d2b5 (patch) | |
tree | 63336893f45fe80393c28e72a4cf445eca0cfb8c /bitbake/lib/bb/command.py | |
parent | 45392cc67a89afe468b179789c7fbeeb3aa67769 (diff) | |
download | poky-ee7e64f116608ab105ead99c7f1966158054d2b5.tar.gz |
bitbake: 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]
(Bitbake rev: bd720fb63cef6b399619b8fbcaeb8d7710f2d6df)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 21a6de0f62..3ca27a69e0 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -241,6 +241,13 @@ class CommandsSync: | |||
241 | op = params[3] | 241 | op = params[3] |
242 | command.cooker.modifyConfigurationVar(var, val, default_file, op) | 242 | command.cooker.modifyConfigurationVar(var, val, default_file, op) |
243 | 243 | ||
244 | def removeVarFile(self, command, params): | ||
245 | """ | ||
246 | Remove a variable declaration from a file | ||
247 | """ | ||
248 | var = params[0] | ||
249 | command.cooker.removeConfigurationVar(var) | ||
250 | |||
244 | def createConfigFile(self, command, params): | 251 | def createConfigFile(self, command, params): |
245 | """ | 252 | """ |
246 | Create an extra configuration file | 253 | Create an extra configuration file |