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>
This commit is contained in:
parent
bb783afd4d
commit
e497b89cf3
|
@ -216,7 +216,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";
|
||||
|
|
Loading…
Reference in New Issue