From ee7e64f116608ab105ead99c7f1966158054d2b5 Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Fri, 4 Oct 2013 16:19:45 +0300 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bitbake/lib/bb/command.py') 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: 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 -- cgit v1.2.3-54-g00ecf