From ce4f8356796bc797d9156ed252a4ed638a2150d5 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 15 Dec 2010 23:22:16 +0000 Subject: 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 --- scripts/poky-qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/poky-qemu b/scripts/poky-qemu index 67af439ea9..19305e2a81 100755 --- a/scripts/poky-qemu +++ b/scripts/poky-qemu @@ -204,7 +204,7 @@ SPITZ_DEFAULT_ROOTFS="poky-image-sato" setup_tmpdir() { if [ -z "$TMPDIR" ]; then - if [ "x$BUILDDIR" = "x" ]; then + if [ "x$BUILDDIR" = "x" -o ! -d "$BUILDDIR/tmp" ]; then # BUILDDIR unset, try and get TMPDIR from bitbake type -P bitbake &>/dev/null || { echo "In order for this script to dynamically infer paths"; -- cgit v1.2.3-54-g00ecf