diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-03-24 19:44:11 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-25 12:23:32 +0100 |
commit | e9a5de67e7822dbb40edf248fbbcc1ec496b0cb0 (patch) | |
tree | 5d6fda8689052912420431eee80f0a02a92a59b0 | |
parent | 64cb3cde276a8aa5c879256c3f19ca05abc58b06 (diff) | |
download | poky-e9a5de67e7822dbb40edf248fbbcc1ec496b0cb0.tar.gz |
Hob: Avoid getting TMPDIR in hardcode
We should get TMPDIR from bitbake server instead of hardcode.
(Bitbake rev: 91bdd43468448385e07a57ac54ce25db9a8edf03)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index 2984490a76..7b6c116ee4 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -138,6 +138,7 @@ class Parameters: | |||
138 | self.runnable_image_types = params["runnable_image_types"].split() | 138 | self.runnable_image_types = params["runnable_image_types"].split() |
139 | self.runnable_machine_patterns = params["runnable_machine_patterns"].split() | 139 | self.runnable_machine_patterns = params["runnable_machine_patterns"].split() |
140 | self.deployable_image_types = params["deployable_image_types"].split() | 140 | self.deployable_image_types = params["deployable_image_types"].split() |
141 | self.tmpdir = params["tmpdir"] | ||
141 | 142 | ||
142 | class Builder(gtk.Window): | 143 | class Builder(gtk.Window): |
143 | 144 | ||
@@ -813,7 +814,7 @@ class Builder(gtk.Window): | |||
813 | 814 | ||
814 | if response == gtk.RESPONSE_YES: | 815 | if response == gtk.RESPONSE_YES: |
815 | source_env_path = os.path.join(self.parameters.core_base, "oe-init-build-env") | 816 | source_env_path = os.path.join(self.parameters.core_base, "oe-init-build-env") |
816 | tmp_path = os.path.join(os.getcwd(), "tmp") | 817 | tmp_path = self.parameters.tmpdir |
817 | if os.path.exists(image_path) and os.path.exists(kernel_path) \ | 818 | if os.path.exists(image_path) and os.path.exists(kernel_path) \ |
818 | and os.path.exists(source_env_path) and os.path.exists(tmp_path): | 819 | and os.path.exists(source_env_path) and os.path.exists(tmp_path): |
819 | cmdline = "/usr/bin/xterm -e " | 820 | cmdline = "/usr/bin/xterm -e " |
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index e34281113c..8042fbdf59 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -439,4 +439,5 @@ class HobHandler(gobject.GObject): | |||
439 | params["runnable_image_types"] = self.server.runCommand(["getVariable", "RUNNABLE_IMAGE_TYPES"]) or "" | 439 | params["runnable_image_types"] = self.server.runCommand(["getVariable", "RUNNABLE_IMAGE_TYPES"]) or "" |
440 | params["runnable_machine_patterns"] = self.server.runCommand(["getVariable", "RUNNABLE_MACHINE_PATTERNS"]) or "" | 440 | params["runnable_machine_patterns"] = self.server.runCommand(["getVariable", "RUNNABLE_MACHINE_PATTERNS"]) or "" |
441 | params["deployable_image_types"] = self.server.runCommand(["getVariable", "DEPLOYABLE_IMAGE_TYPES"]) or "" | 441 | params["deployable_image_types"] = self.server.runCommand(["getVariable", "DEPLOYABLE_IMAGE_TYPES"]) or "" |
442 | params["tmpdir"] = self.server.runCommand(["getVariable", "TMPDIR"]) or "" | ||
442 | return params | 443 | return params |