From b844a4292bdf364b3b56796f3b541c1d4a622850 Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Mon, 11 Mar 2013 15:06:58 +0200 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py') 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): self.runCommand(["setVariable", "INHERIT", inherits]) def set_bblayers(self, bblayers): - self.runCommand(["setVariable", "BBLAYERS_HOB", " ".join(bblayers)]) + self.runCommand(["setVariable", "BBLAYERS", " ".join(bblayers)]) def set_machine(self, machine): if machine: - self.runCommand(["setVariable", "MACHINE_HOB", machine]) + self.runCommand(["setVariable", "MACHINE", machine]) def set_sdk_machine(self, sdk_machine): - self.runCommand(["setVariable", "SDKMACHINE_HOB", sdk_machine]) + self.runCommand(["setVariable", "SDKMACHINE", sdk_machine]) def set_image_fstypes(self, image_fstypes): self.runCommand(["setVariable", "IMAGE_FSTYPES", image_fstypes]) def set_distro(self, distro): - self.runCommand(["setVariable", "DISTRO_HOB", distro]) + self.runCommand(["setVariable", "DISTRO", distro]) def set_package_format(self, format): package_classes = "" for pkgfmt in format.split(): package_classes += ("package_%s" % pkgfmt + " ") - self.runCommand(["setVariable", "PACKAGE_CLASSES_HOB", package_classes]) + self.runCommand(["setVariable", "PACKAGE_CLASSES", package_classes]) def set_bbthreads(self, threads): - self.runCommand(["setVariable", "BB_NUMBER_THREADS_HOB", threads]) + self.runCommand(["setVariable", "BB_NUMBER_THREADS", threads]) def set_pmake(self, threads): pmake = "-j %s" % threads - self.runCommand(["setVariable", "PARALLEL_MAKE_HOB", pmake]) + self.runCommand(["setVariable", "PARALLEL_MAKE", pmake]) def set_dl_dir(self, directory): - self.runCommand(["setVariable", "DL_DIR_HOB", directory]) + self.runCommand(["setVariable", "DL_DIR", directory]) def set_sstate_dir(self, directory): - self.runCommand(["setVariable", "SSTATE_DIR_HOB", directory]) + self.runCommand(["setVariable", "SSTATE_DIR", directory]) def set_sstate_mirrors(self, url): - self.runCommand(["setVariable", "SSTATE_MIRRORS_HOB", url]) + self.runCommand(["setVariable", "SSTATE_MIRRORS", url]) def set_extra_size(self, image_extra_size): self.runCommand(["setVariable", "IMAGE_ROOTFS_EXTRA_SPACE", str(image_extra_size)]) @@ -351,16 +351,13 @@ class HobHandler(gobject.GObject): self.runCommand(["setVariable", "IMAGE_ROOTFS_SIZE", str(image_rootfs_size)]) def set_incompatible_license(self, incompat_license): - self.runCommand(["setVariable", "INCOMPATIBLE_LICENSE_HOB", incompat_license]) + self.runCommand(["setVariable", "INCOMPATIBLE_LICENSE", incompat_license]) def set_extra_config(self, extra_setting): for key in extra_setting.keys(): value = extra_setting[key] self.runCommand(["setVariable", key, value]) - def set_config_filter(self, config_filter): - self.runCommand(["setConfFilter", config_filter]) - def set_http_proxy(self, http_proxy): self.runCommand(["setVariable", "http_proxy", http_proxy]) -- cgit v1.2.3-54-g00ecf