This allows the user to specify a rootfs type
(e.g, poky-image-sato) without typing out the full filename
and path (assuming we can infer a valid MACHINE and FSTYPE).
This fixes [BUGID #415]
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
KERNEL=""
FSTYPE=""
ROOTFS=""
+LAZY_ROOTFS=""
SCRIPT_QEMU_OPT=""
SCRIPT_KERNEL_OPT=""
*-image-*)
if [ -z "$ROOTFS" ]; then
ROOTFS=$arg
+ LAZY_ROOTFS="true"
else
echo "Error: conflicting ROOTFS args [$ROOTFS] and [$arg]"
usage
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