diff options
Diffstat (limited to 'scripts/poky-qemu')
-rwxr-xr-x | scripts/poky-qemu | 10 |
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:=""} | |||
44 | KERNEL="" | 44 | KERNEL="" |
45 | FSTYPE="" | 45 | FSTYPE="" |
46 | ROOTFS="" | 46 | ROOTFS="" |
47 | LAZY_ROOTFS="" | ||
47 | SCRIPT_QEMU_OPT="" | 48 | SCRIPT_QEMU_OPT="" |
48 | SCRIPT_KERNEL_OPT="" | 49 | SCRIPT_KERNEL_OPT="" |
49 | 50 | ||
@@ -74,6 +75,7 @@ while [ $i -le $# ]; do | |||
74 | *-image-*) | 75 | *-image-*) |
75 | if [ -z "$ROOTFS" ]; then | 76 | if [ -z "$ROOTFS" ]; then |
76 | ROOTFS=$arg | 77 | ROOTFS=$arg |
78 | LAZY_ROOTFS="true" | ||
77 | else | 79 | else |
78 | echo "Error: conflicting ROOTFS args [$ROOTFS] and [$arg]" | 80 | echo "Error: conflicting ROOTFS args [$ROOTFS] and [$arg]" |
79 | usage | 81 | usage |
@@ -260,6 +262,14 @@ if [ -z "$FSTYPE" ]; then | |||
260 | fi | 262 | fi |
261 | # FSTYPE is now set for all cases | 263 | # FSTYPE is now set for all cases |
262 | 264 | ||
265 | # Handle cases where a ROOTFS type is given instead of a filename, e.g. | ||
266 | # poky-image-sato | ||
267 | if [ "$LAZY_ROOTFS" = "true" ]; then | ||
268 | setup_tmpdir | ||
269 | echo "Assuming $ROOTFS really means $TMPDIR/deploy/images/$ROOTFS-$MACHINE.$FSTYPE" | ||
270 | ROOTFS=$TMPDIR/deploy/images/$ROOTFS-$MACHINE.$FSTYPE | ||
271 | fi | ||
272 | |||
263 | if [ -z "$ROOTFS" ]; then | 273 | if [ -z "$ROOTFS" ]; then |
264 | setup_tmpdir | 274 | setup_tmpdir |
265 | T=$TMPDIR/deploy/images | 275 | T=$TMPDIR/deploy/images |