hob/settings: implement a new tab in settings dialog to show SSTATE_MIRRORS
PATCH v2 1/1 hob/settings: implement a new tab in settings dialog to show SSTATE_MIRRORS
Add a new tab to show correctly SSTATE_MIRRORS variable. Now you can add new mirrors or delete mirror. "info" image was also changed( it is smaller, so it can be next to labels).
From "Build environment" tab, SSTATE_DIR and SSTATE_MIRRORS vars were removed.
[YOCTO #2893]
--- bitbake/lib/bb/ui/crumbs/builder.py | 8 +- bitbake/lib/bb/ui/crumbs/hig.py | 180 +++++++++++++++++++++++-- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 6 +- bitbake/lib/bb/ui/crumbs/template.py | 2 +- bitbake/lib/bb/ui/icons/info/info_display.png | Bin 4558 -> 4117 bytes bitbake/lib/bb/ui/icons/info/info_hover.png | Bin 4650 -> 4167 bytes 6 files changed, 175 insertions(+), 21 deletions(-)
bitbake/lib/bb/ui/crumbs/builder.py +4 -4
@@ -187,7 +187,7 @@ class Configuration: self.curr_distro = template.getVar("DISTRO") self.dldir = template.getVar("DL_DIR") self.sstatedir = template.getVar("SSTATE_DIR") - self.sstatemirror = template.getVar("SSTATE_MIRROR") + self.sstatemirror = template.getVar("SSTATE_MIRRORS") try: self.pmake = int(template.getVar("PARALLEL_MAKE").split()[1]) except:
@@ -237,7 +237,7 @@ class Configuration: template.setVar("DISTRO", self.curr_distro) template.setVar("DL_DIR", self.dldir) template.setVar("SSTATE_DIR", self.sstatedir) - template.setVar("SSTATE_MIRROR", self.sstatemirror) + template.setVar("SSTATE_MIRRORS", self.sstatemirror) template.setVar("PARALLEL_MAKE", "-j %s" % self.pmake) template.setVar("BB_NUMBER_THREADS", self.bbthread) template.setVar("PACKAGE_CLASSES", " ".join(["package_" + i for i in self.curr_package_format.split()]))
@@ -326,7 +326,7 @@ def hob_conf_filter(fn, data): keys = ["MACHINE_HOB", "SDKMACHINE_HOB", "PACKAGE_CLASSES_HOB", \ "BB_NUMBER_THREADS_HOB", "PARALLEL_MAKE_HOB", "DL_DIR_HOB", \ - "SSTATE_DIR_HOB", "SSTATE_MIRROR_HOB", "INCOMPATIBLE_LICENSE_HOB"] + "SSTATE_DIR_HOB", "SSTATE_MIRRORS_HOB", "INCOMPATIBLE_LICENSE_HOB"] for key in keys: var_hob = data.getVar(key) if var_hob:
@@ -697,7 +697,7 @@ class Builder(gtk.Window): self.handler.set_distro(self.configuration.curr_distro) self.handler.set_dl_dir(self.configuration.dldir) self.handler.set_sstate_dir(self.configuration.sstatedir) - self.handler.set_sstate_mirror(self.configuration.sstatemirror) + self.handler.set_sstate_mirrors(self.configuration.sstatemirror) self.handler.set_pmake(self.configuration.pmake) self.handler.set_bbthreads(self.configuration.bbthread) self.handler.set_rootfs_size(self.configuration.image_rootfs_size)
bitbake/lib/bb/ui/crumbs/hig.py +167 -13
232 lines not on this page · raw message
bitbake/lib/bb/ui/crumbs/hobeventhandler.py +3 -3
@@ -297,8 +297,8 @@ class HobHandler(gobject.GObject): def set_sstate_dir(self, directory): self.runCommand(["setVariable", "SSTATE_DIR_HOB", directory]) - def set_sstate_mirror(self, url): - self.runCommand(["setVariable", "SSTATE_MIRROR_HOB", url]) + def set_sstate_mirrors(self, url): + self.runCommand(["setVariable", "SSTATE_MIRRORS_HOB", url]) def set_extra_size(self, image_extra_size): self.runCommand(["setVariable", "IMAGE_ROOTFS_EXTRA_SPACE", str(image_extra_size)])
@@ -421,7 +421,7 @@ class HobHandler(gobject.GObject): params["distro"] = self.runCommand(["getVariable", "DISTRO"]) or "defaultsetup" params["pclass"] = self.runCommand(["getVariable", "PACKAGE_CLASSES"]) or "" params["sstatedir"] = self.runCommand(["getVariable", "SSTATE_DIR"]) or "" - params["sstatemirror"] = self.runCommand(["getVariable", "SSTATE_MIRROR"]) or "" + params["sstatemirror"] = self.runCommand(["getVariable", "SSTATE_MIRRORS"]) or "" num_threads = self.runCommand(["getCpuCount"]) if not num_threads:
bitbake/lib/bb/ui/crumbs/template.py +1 -1
@@ -137,7 +137,7 @@ class RecipeFile(ConfigFile): class TemplateMgr(gobject.GObject): - __gLocalVars__ = ["MACHINE", "PACKAGE_CLASSES", "DISTRO", "DL_DIR", "SSTATE_DIR", "SSTATE_MIRROR", "PARALLEL_MAKE", "BB_NUMBER_THREADS", "CONF_VERSION"] + __gLocalVars__ = ["MACHINE", "PACKAGE_CLASSES", "DISTRO", "DL_DIR", "SSTATE_DIR", "SSTATE_MIRRORS", "PARALLEL_MAKE", "BB_NUMBER_THREADS", "CONF_VERSION"] __gBBLayersVars__ = ["BBLAYERS", "LCONF_VERSION"] __gRecipeVars__ = ["DEPENDS", "IMAGE_INSTALL"]
bitbake/lib/bb/ui/icons/info/info_display.png binary +0 -0
bitbake/lib/bb/ui/icons/info/info_hover.png binary +0 -0
Signature · 1 line
1.7.9.5
Richard Purdie
AppliedQuoted 8 lines · Cristiana Voicu
Add a new tab to show correctly
SSTATE_MIRRORSvariable. Now you can add new mirrors or delete mirror. "info" image was alsochanged( it is smaller, so it can be next to labels).
From "Build environment" tab,SSTATE_DIRandSSTATE_MIRRORSvars were removed.[YOCTO #2893]
Signed-off-by Cristiana Voicu <[email protected]>
Quoted 8 lines
--- bitbake/lib/bb/ui/crumbs/builder.py | 8 +- bitbake/lib/bb/ui/crumbs/hig.py | 180 +++++++++++++++++++++++-- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 6 +- bitbake/lib/bb/ui/crumbs/template.py | 2 +- bitbake/lib/bb/ui/icons/info/info_display.png | Bin 4558 -> 4117 bytes bitbake/lib/bb/ui/icons/info/info_hover.png | Bin 4650 -> 4167 bytes 6 files changed, 175 insertions(+), 21 deletions(-)
Merged to master, thanks.
Richard
Voicu, Cristiana
AppliedHello,
I saw the changes in code were merged, but I have changed also 2 images(bitbake/lib/bb/ui/icons/info/info_display.png & bitbake/lib/bb/ui/icons/info/info_hover.png). Those are not changed in master now.
Can you please check what happened?
Thank you,
Cristiana
-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Thursday, September 27, 2012 6:43 PM
To: Voicu, Cristiana
Cc: [email protected]
Subject: Re: [bitbake-devel] [PATCH v2] hob/settings: implement a new tab in settings dialog to show SSTATE_MIRRORS
Quoted 8 lines · Cristiana Voicu
Add a new tab to show correctly
SSTATE_MIRRORSvariable. Now you can add new mirrors or delete mirror. "info" image was alsochanged( it is smaller, so it can be next to labels).
From "Build environment" tab,SSTATE_DIRandSSTATE_MIRRORSvars were removed.[YOCTO #2893]
Signed-off-by Cristiana Voicu <[email protected]>
Quoted 8 lines
--- bitbake/lib/bb/ui/crumbs/builder.py | 8 +- bitbake/lib/bb/ui/crumbs/hig.py | 180 +++++++++++++++++++++++-- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 6 +- bitbake/lib/bb/ui/crumbs/template.py | 2 +- bitbake/lib/bb/ui/icons/info/info_display.png | Bin 4558 -> 4117 bytes bitbake/lib/bb/ui/icons/info/info_hover.png | Bin 4650 -> 4167 bytes 6 files changed, 175 insertions(+), 21 deletions(-)
Merged to master, thanks.
Richard
Quoted 8 lines · Cristiana
Hello,
I saw the changes in code were merged, but I have changed also 2
images(bitbake/lib/bb/ui/icons/info/info_display.png & bitbake/lib/bb/ui/icons/info/info_hover.png). Those are not changed in master now.Can you please check what happened?
Sorry, I've fixed this. Its a gremlin from doing this via email.
Cheers,
Richard