summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-03-11 15:06:58 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-19 20:58:11 +0000
commitb844a4292bdf364b3b56796f3b541c1d4a622850 (patch)
tree4dcb02dfb63725729e56a719357b9ddab3ca852a /bitbake/lib/bb/ui/crumbs/hobeventhandler.py
parent8852e51bdcb55002e666ab9d4476d98599fdfc67 (diff)
downloadpoky-b844a4292bdf364b3b56796f3b541c1d4a622850.tar.gz
bitbake: hob: some settings in Hob are not remembered
Some settings in Hob were not saved in Bitbake and they were not displayed correcty in Hob, because Hob used some other variables with the extension "_HOB". I have removed this, in order to have a consistency for the variables. ALso, I called a function to load the extra variables saved in .hob/template_default.hob. [YOCTO #3957] (Bitbake rev: 0f62a12ef3fa4daf8f3a289c984115302b75c23d) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py25
1 files changed, 11 insertions, 14 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 15d28d927a..c33fb74100 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -307,42 +307,42 @@ class HobHandler(gobject.GObject):
307 self.runCommand(["setVariable", "INHERIT", inherits]) 307 self.runCommand(["setVariable", "INHERIT", inherits])
308 308
309 def set_bblayers(self, bblayers): 309 def set_bblayers(self, bblayers):
310 self.runCommand(["setVariable", "BBLAYERS_HOB", " ".join(bblayers)]) 310 self.runCommand(["setVariable", "BBLAYERS", " ".join(bblayers)])
311 311
312 def set_machine(self, machine): 312 def set_machine(self, machine):
313 if machine: 313 if machine:
314 self.runCommand(["setVariable", "MACHINE_HOB", machine]) 314 self.runCommand(["setVariable", "MACHINE", machine])
315 315
316 def set_sdk_machine(self, sdk_machine): 316 def set_sdk_machine(self, sdk_machine):
317 self.runCommand(["setVariable", "SDKMACHINE_HOB", sdk_machine]) 317 self.runCommand(["setVariable", "SDKMACHINE", sdk_machine])
318 318
319 def set_image_fstypes(self, image_fstypes): 319 def set_image_fstypes(self, image_fstypes):
320 self.runCommand(["setVariable", "IMAGE_FSTYPES", image_fstypes]) 320 self.runCommand(["setVariable", "IMAGE_FSTYPES", image_fstypes])
321 321
322 def set_distro(self, distro): 322 def set_distro(self, distro):
323 self.runCommand(["setVariable", "DISTRO_HOB", distro]) 323 self.runCommand(["setVariable", "DISTRO", distro])
324 324
325 def set_package_format(self, format): 325 def set_package_format(self, format):
326 package_classes = "" 326 package_classes = ""
327 for pkgfmt in format.split(): 327 for pkgfmt in format.split():
328 package_classes += ("package_%s" % pkgfmt + " ") 328 package_classes += ("package_%s" % pkgfmt + " ")
329 self.runCommand(["setVariable", "PACKAGE_CLASSES_HOB", package_classes]) 329 self.runCommand(["setVariable", "PACKAGE_CLASSES", package_classes])
330 330
331 def set_bbthreads(self, threads): 331 def set_bbthreads(self, threads):
332 self.runCommand(["setVariable", "BB_NUMBER_THREADS_HOB", threads]) 332 self.runCommand(["setVariable", "BB_NUMBER_THREADS", threads])
333 333
334 def set_pmake(self, threads): 334 def set_pmake(self, threads):
335 pmake = "-j %s" % threads 335 pmake = "-j %s" % threads
336 self.runCommand(["setVariable", "PARALLEL_MAKE_HOB", pmake]) 336 self.runCommand(["setVariable", "PARALLEL_MAKE", pmake])
337 337
338 def set_dl_dir(self, directory): 338 def set_dl_dir(self, directory):
339 self.runCommand(["setVariable", "DL_DIR_HOB", directory]) 339 self.runCommand(["setVariable", "DL_DIR", directory])
340 340
341 def set_sstate_dir(self, directory): 341 def set_sstate_dir(self, directory):
342 self.runCommand(["setVariable", "SSTATE_DIR_HOB", directory]) 342 self.runCommand(["setVariable", "SSTATE_DIR", directory])
343 343
344 def set_sstate_mirrors(self, url): 344 def set_sstate_mirrors(self, url):
345 self.runCommand(["setVariable", "SSTATE_MIRRORS_HOB", url]) 345 self.runCommand(["setVariable", "SSTATE_MIRRORS", url])
346 346
347 def set_extra_size(self, image_extra_size): 347 def set_extra_size(self, image_extra_size):
348 self.runCommand(["setVariable", "IMAGE_ROOTFS_EXTRA_SPACE", str(image_extra_size)]) 348 self.runCommand(["setVariable", "IMAGE_ROOTFS_EXTRA_SPACE", str(image_extra_size)])
@@ -351,16 +351,13 @@ class HobHandler(gobject.GObject):
351 self.runCommand(["setVariable", "IMAGE_ROOTFS_SIZE", str(image_rootfs_size)]) 351 self.runCommand(["setVariable", "IMAGE_ROOTFS_SIZE", str(image_rootfs_size)])
352 352
353 def set_incompatible_license(self, incompat_license): 353 def set_incompatible_license(self, incompat_license):
354 self.runCommand(["setVariable", "INCOMPATIBLE_LICENSE_HOB", incompat_license]) 354 self.runCommand(["setVariable", "INCOMPATIBLE_LICENSE", incompat_license])
355 355
356 def set_extra_config(self, extra_setting): 356 def set_extra_config(self, extra_setting):
357 for key in extra_setting.keys(): 357 for key in extra_setting.keys():
358 value = extra_setting[key] 358 value = extra_setting[key]
359 self.runCommand(["setVariable", key, value]) 359 self.runCommand(["setVariable", key, value])
360 360
361 def set_config_filter(self, config_filter):
362 self.runCommand(["setConfFilter", config_filter])
363
364 def set_http_proxy(self, http_proxy): 361 def set_http_proxy(self, http_proxy):
365 self.runCommand(["setVariable", "http_proxy", http_proxy]) 362 self.runCommand(["setVariable", "http_proxy", http_proxy])
366 363