summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 0fed25a3ed..59336bbee7 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -174,6 +174,18 @@ class CommandsSync:
174 value = str(params[1]) 174 value = str(params[1])
175 command.cooker.configuration.data.setVar(varname, value) 175 command.cooker.configuration.data.setVar(varname, value)
176 176
177 def enableDataTracking(self, command, params):
178 """
179 Enable history tracking for variables
180 """
181 command.cooker.enableDataTracking()
182
183 def disableDataTracking(self, command, params):
184 """
185 Disable history tracking for variables
186 """
187 command.cooker.disableDataTracking()
188
177 def initCooker(self, command, params): 189 def initCooker(self, command, params):
178 """ 190 """
179 Init the cooker to initial state with nothing parsed 191 Init the cooker to initial state with nothing parsed
@@ -210,6 +222,12 @@ class CommandsSync:
210 package_queue = params[2] 222 package_queue = params[2]
211 return command.cooker.generateNewImage(image, base_image, package_queue) 223 return command.cooker.generateNewImage(image, base_image, package_queue)
212 224
225 def setVarFile(self, command, params):
226 var = params[0]
227 val = params[1]
228 default_file = params[2]
229 command.cooker.saveConfigurationVar(var, val, default_file)
230
213class CommandsAsync: 231class CommandsAsync:
214 """ 232 """
215 A class of asynchronous commands 233 A class of asynchronous commands