diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index fa79e0c7a2..2f45350c32 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
| @@ -74,6 +74,8 @@ class HobHandler(gobject.GObject): | |||
| 74 | self.model = taskmodel | 74 | self.model = taskmodel |
| 75 | self.server = server | 75 | self.server = server |
| 76 | 76 | ||
| 77 | self.image_output_types = self.server.runCommand(["getVariable", "IMAGE_FSTYPES"]).split(" ") | ||
| 78 | |||
| 77 | self.command_map = { | 79 | self.command_map = { |
| 78 | "findConfigFilePathLocal" : ("findConfigFilePath", ["hob.local.conf"], "findConfigFilePathHobLocal"), | 80 | "findConfigFilePathLocal" : ("findConfigFilePath", ["hob.local.conf"], "findConfigFilePathHobLocal"), |
| 79 | "findConfigFilePathHobLocal" : ("findConfigFilePath", ["bblayers.conf"], "findConfigFilePathLayers"), | 81 | "findConfigFilePathHobLocal" : ("findConfigFilePath", ["bblayers.conf"], "findConfigFilePathLayers"), |
| @@ -258,8 +260,23 @@ class HobHandler(gobject.GObject): | |||
| 258 | self.building = None | 260 | self.building = None |
| 259 | self.emit("build-complete") | 261 | self.emit("build-complete") |
| 260 | 262 | ||
| 261 | def set_image_output_type(self, output_type): | 263 | def set_fstypes(self, fstypes): |
| 262 | self.server.runCommand(["setVariable", "IMAGE_FSTYPES", output_type]) | 264 | self.server.runCommand(["setVariable", "IMAGE_FSTYPES", fstypes]) |
| 265 | |||
| 266 | def add_image_output_type(self, output_type): | ||
| 267 | if output_type not in self.image_output_types: | ||
| 268 | self.image_output_types.append(output_type) | ||
| 269 | fstypes = " ".join(self.image_output_types) | ||
| 270 | self.set_fstypes(fstypes) | ||
| 271 | return fstypes | ||
| 272 | |||
| 273 | def remove_image_output_type(self, output_type): | ||
| 274 | if output_type in self.image_output_types: | ||
| 275 | ind = self.image_output_types.index(output_type) | ||
| 276 | self.image_output_types.pop(ind) | ||
| 277 | fstypes = " ".join(self.image_output_types) | ||
| 278 | self.set_fstypes(fstypes) | ||
| 279 | return fstypes | ||
| 263 | 280 | ||
| 264 | def get_image_deploy_dir(self): | 281 | def get_image_deploy_dir(self): |
| 265 | return self.server.runCommand(["getVariable", "DEPLOY_DIR_IMAGE"]) | 282 | return self.server.runCommand(["getVariable", "DEPLOY_DIR_IMAGE"]) |
