diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-01-23 14:13:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-25 12:42:08 +0000 |
commit | 03fee6c3b1342e6ac03e51a8a3c73b46fb067211 (patch) | |
tree | bb0b7f463ba4e64283cf39f4ace96666f2e5fc0a | |
parent | 1db3531cd5ecded0ccf6a6fdc03b8ff4755c0c73 (diff) | |
download | ast2050-yocto-poky-03fee6c3b1342e6ac03e51a8a3c73b46fb067211.zip ast2050-yocto-poky-03fee6c3b1342e6ac03e51a8a3c73b46fb067211.tar.gz |
bitbake: hob: hob do not use .hob dir for variables from local.conf and bblayers.conf
If .hob exists, hob takes the variable from there. Change to not override anymore
the variables which comes from bblayers.conf and local.conf
[YOCTO #2934]
(Bitbake rev: 00533e83038e3d5e3cd5d1be73c45afece92ec0c)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 27 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py | 11 |
2 files changed, 10 insertions, 28 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index d57cf4c..9da926d 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py @@ -190,20 +190,6 @@ class Configuration: self.split_proxy("cvs", params["cvs_proxy_host"] + ":" + params["cvs_proxy_port"]) def load(self, template): - self.curr_mach = template.getVar("MACHINE") - self.curr_package_format = " ".join(template.getVar("PACKAGE_CLASSES").split("package_")).strip() - self.curr_distro = template.getVar("DISTRO") - self.dldir = template.getVar("DL_DIR") - self.sstatedir = template.getVar("SSTATE_DIR") - self.sstatemirror = template.getVar("SSTATE_MIRRORS") - try: - self.pmake = int(template.getVar("PARALLEL_MAKE").split()[1]) - except: - pass - try: - self.bbthread = int(template.getVar("BB_NUMBER_THREADS")) - except: - pass try: self.image_rootfs_size = int(template.getVar("IMAGE_ROOTFS_SIZE")) except: @@ -215,13 +201,9 @@ class Configuration: # image_overhead_factor is read-only. self.incompat_license = template.getVar("INCOMPATIBLE_LICENSE") self.curr_sdk_machine = template.getVar("SDKMACHINE") - self.conf_version = template.getVar("CONF_VERSION") - self.lconf_version = template.getVar("LCONF_VERSION") self.extra_setting = eval(template.getVar("EXTRA_SETTING")) self.toolchain_build = eval(template.getVar("TOOLCHAIN_BUILD")) self.image_fstypes = template.getVar("IMAGE_FSTYPES") - # bblayers.conf - self.layers = template.getVar("BBLAYERS").split() # image/recipes/packages self.selected_image = template.getVar("__SELECTED_IMAGE__") self.selected_recipes = template.getVar("DEPENDS").split() @@ -561,11 +543,10 @@ class Builder(gtk.Window): def initiate_new_build_async(self): self.switch_page(self.MACHINE_SELECTION) - if self.load_template(TemplateMgr.convert_to_template_pathfilename("default", ".hob/")) == False: - self.show_sanity_check_page() - self.handler.init_cooker() - self.handler.set_extra_inherit("image_types") - self.generate_configuration() + self.show_sanity_check_page() + self.handler.init_cooker() + self.handler.set_extra_inherit("image_types") + self.generate_configuration() def update_config_async(self): self.switch_page(self.MACHINE_SELECTION) diff --git a/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py b/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py index 3642e9b..50c7510 100644 --- a/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py +++ b/bitbake/lib/bb/ui/crumbs/hig/simplesettingsdialog.py @@ -323,11 +323,12 @@ class SimpleSettingsDialog (CrumbsDialog, SettingsUIHelper): sstatemirrors = sstatemirrors[1:] sstatemirror_fields = [x for x in sstatemirror.split(' ') if x.strip()] - if sstatemirror_fields[0] == "file://(.*)": - sm_list = [ 0, sstatemirror_fields[1], "file://(.*)"] - else: - sm_list = [ 1, sstatemirror_fields[1], sstatemirror_fields[0]] - self.sstatemirrors_list.append(sm_list) + if len(sstatemirror_fields): + if sstatemirror_fields[0] == "file://(.*)": + sm_list = [ 0, sstatemirror_fields[1], "file://(.*)"] + else: + sm_list = [ 1, sstatemirror_fields[1], sstatemirror_fields[0]] + self.sstatemirrors_list.append(sm_list) index = 0 for mirror in self.sstatemirrors_list: |