Patchwork [bitbake-devel,8/9] Hob: Set empty DISTRO if "defaultsetup" is selected

login
register
mail settings
Submitter Dongxiao Xu
Date March 24, 2012, 11:49 a.m.
Message ID <75a71f4d71a87d4dc94785e22821452af93c27ba.1332589589.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/24479/
State Accepted
Commit 863b14ebf2c7443ce6df362f24af6395e520edbc
Headers show

Comments

Dongxiao Xu - March 24, 2012, 11:49 a.m.
In Hob advanced setting, if "defaultsetup" is selected, we need to
leave DISTRO variable not set in bitbake server.

Otherwise, defaultsetup.conf will be parsed twice, causing TMPDIR and
its related variables mess up.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/ui/crumbs/hobeventhandler.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index 4b8aabc..e342811 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -274,7 +274,8 @@  class HobHandler(gobject.GObject):
         self.server.runCommand(["setVariable", "IMAGE_FSTYPES", " ".join(image_fstypes).lstrip(" ")])
 
     def set_distro(self, distro):
-        self.server.runCommand(["setVariable", "DISTRO", distro])
+        if distro != "defaultsetup":
+            self.server.runCommand(["setVariable", "DISTRO", distro])
 
     def set_package_format(self, format):
         package_classes = ""