aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/poky-qemu10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu
index ad4bdbf91c..4ce9e31a6b 100755
--- a/scripts/poky-qemu
+++ b/scripts/poky-qemu
@@ -44,6 +44,7 @@ MACHINE=${MACHINE:=""}
KERNEL=""
FSTYPE=""
ROOTFS=""
+LAZY_ROOTFS=""
SCRIPT_QEMU_OPT=""
SCRIPT_KERNEL_OPT=""
@@ -74,6 +75,7 @@ while [ $i -le $# ]; do
*-image-*)
if [ -z "$ROOTFS" ]; then
ROOTFS=$arg
+ LAZY_ROOTFS="true"
else
echo "Error: conflicting ROOTFS args [$ROOTFS] and [$arg]"
usage
@@ -260,6 +262,14 @@ if [ -z "$FSTYPE" ]; then
fi
# FSTYPE is now set for all cases
+# Handle cases where a ROOTFS type is given instead of a filename, e.g.
+# poky-image-sato
+if [ "$LAZY_ROOTFS" = "true" ]; then
+ setup_tmpdir
+ echo "Assuming $ROOTFS really means $TMPDIR/deploy/images/$ROOTFS-$MACHINE.$FSTYPE"
+ ROOTFS=$TMPDIR/deploy/images/$ROOTFS-$MACHINE.$FSTYPE
+fi
+
if [ -z "$ROOTFS" ]; then
setup_tmpdir
T=$TMPDIR/deploy/images