Skip to contentSkip to conversation

hob/settings: implement a new tab in settings dialog to show SSTATE_MIRRORS

PATCH Applied Cristiana Voicu 2 participants 4 messages Sep 26, 2012 – Sep 28, 2012

lore
Share & tools
lore
#0 lore raw

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
index 267fde1..555ba73 100755
@@ -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
index 49db2de..ed55acc 100644
@@ -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
index 7309bb6..e303c3a 100644
@@ -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
index 6e2c44b2c9c794e7fe43859469d88605525ab3e2..5afbba29f578425ca337161130297daf47189e2a 100644
GIT binary patch
bitbake/lib/bb/ui/icons/info/info_hover.png binary +0 -0
index a05da56ae7c11143b1bf24da010e2d789dcf6d44..f9d294dfae2a3a74086018fbbf140a500a622d7f 100644
GIT binary patch
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 8 lines · Cristiana Voicu

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]

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

author Applied
#2 lore raw

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?
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_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]

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

#3 lore raw
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