diff options
| -rw-r--r-- | bitbake/lib/bb/command.py | 16 | ||||
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 2 |
2 files changed, 15 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 5f696c2aee..9dc38ec938 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
| @@ -217,11 +217,21 @@ class CommandsSync: | |||
| 217 | return command.cooker.generateNewImage(image, base_image, package_queue) | 217 | return command.cooker.generateNewImage(image, base_image, package_queue) |
| 218 | 218 | ||
| 219 | def setVarFile(self, command, params): | 219 | def setVarFile(self, command, params): |
| 220 | """ | ||
| 221 | Save a variable in a file; used for saving in a configuration file | ||
| 222 | """ | ||
| 220 | var = params[0] | 223 | var = params[0] |
| 221 | val = params[1] | 224 | val = params[1] |
| 222 | default_file = params[2] | 225 | default_file = params[2] |
| 223 | command.cooker.saveConfigurationVar(var, val, default_file) | 226 | command.cooker.saveConfigurationVar(var, val, default_file) |
| 224 | 227 | ||
| 228 | def createConfigFile(self, command, params): | ||
| 229 | """ | ||
| 230 | Create an extra configuration file | ||
| 231 | """ | ||
| 232 | name = params[0] | ||
| 233 | command.cooker.createConfigFile(name) | ||
| 234 | |||
| 225 | class CommandsAsync: | 235 | class CommandsAsync: |
| 226 | """ | 236 | """ |
| 227 | A class of asynchronous commands | 237 | A class of asynchronous commands |
| @@ -390,11 +400,11 @@ class CommandsAsync: | |||
| 390 | """ | 400 | """ |
| 391 | Parse the configuration files | 401 | Parse the configuration files |
| 392 | """ | 402 | """ |
| 393 | prefiles = params[0] | 403 | prefiles = params[0].split() |
| 394 | postfiles = params[1] | 404 | postfiles = params[1].split() |
| 395 | command.cooker.configuration.prefile = prefiles | 405 | command.cooker.configuration.prefile = prefiles |
| 396 | command.cooker.configuration.postfile = postfiles | 406 | command.cooker.configuration.postfile = postfiles |
| 397 | command.cooker.loadConfigurationData() | 407 | command.cooker.loadConfigurationData(tracking=True) |
| 398 | command.finishAsyncCommand() | 408 | command.finishAsyncCommand() |
| 399 | parseConfigurationFiles.needcache = False | 409 | parseConfigurationFiles.needcache = False |
| 400 | 410 | ||
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index d060bc0b42..8fd989b6c9 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
| @@ -454,7 +454,9 @@ class HobHandler(gobject.GObject): | |||
| 454 | return " ".join(ret) | 454 | return " ".join(ret) |
| 455 | 455 | ||
| 456 | def set_var_in_file(self, var, val, default_file=None): | 456 | def set_var_in_file(self, var, val, default_file=None): |
| 457 | self.runCommand(["enableDataTracking"]) | ||
| 457 | self.server.runCommand(["setVarFile", var, val, default_file]) | 458 | self.server.runCommand(["setVarFile", var, val, default_file]) |
| 459 | self.runCommand(["disableDataTracking"]) | ||
| 458 | 460 | ||
| 459 | def get_parameters(self): | 461 | def get_parameters(self): |
| 460 | # retrieve the parameters from bitbake | 462 | # retrieve the parameters from bitbake |
