summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-12-15 23:22:16 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-15 23:22:16 +0000
commite497b89cf3325d82fb2f96df92af019c7d487a09 (patch)
tree6b9fa1153ee41c950e1f95ac2e7540f7c86737f4 /scripts/poky-qemu
parentbb783afd4daa3f57fb26e2bb86f5bc9cbeb11df0 (diff)
downloadpoky-e497b89cf3325d82fb2f96df92af019c7d487a09.tar.gz
scripts/poky-qemu: Improve tmp layout assumption
If someone has changed TMPDIR in local.conf to a non-standard location, the poky-qemu script currently doesn't handle this and assumes if BUILDDIR is set, $BUILDDIR/tmp will exist. Its simple to check if this exists and if not, to ask bitbake where the directory is so this patch changes the code to do that. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'scripts/poky-qemu')
-rwxr-xr-xscripts/poky-qemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu
index bfeefc7085..04349879c5 100755
--- a/scripts/poky-qemu
+++ b/scripts/poky-qemu
@@ -216,7 +216,7 @@ SPITZ_DEFAULT_ROOTFS="poky-image-sato"
216 216
217setup_tmpdir() { 217setup_tmpdir() {
218 if [ -z "$TMPDIR" ]; then 218 if [ -z "$TMPDIR" ]; then
219 if [ "x$BUILDDIR" = "x" ]; then 219 if [ "x$BUILDDIR" = "x" -o ! -d "$BUILDDIR/tmp" ]; then
220 # BUILDDIR unset, try and get TMPDIR from bitbake 220 # BUILDDIR unset, try and get TMPDIR from bitbake
221 type -P bitbake &>/dev/null || { 221 type -P bitbake &>/dev/null || {
222 echo "In order for this script to dynamically infer paths"; 222 echo "In order for this script to dynamically infer paths";