]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: look for *-image* to be more flexible for image names
authorSaul Wold <sgw@linux.intel.com>
Fri, 4 Nov 2011 00:37:30 +0000 (17:37 -0700)
committerSaul Wold <sgw@linux.intel.com>
Tue, 29 Nov 2011 08:20:07 +0000 (00:20 -0800)
We can't just look for *image* since it will catch up bzimage

Signed-off-by: Saul Wold <sgw@linux.intel.com>
scripts/runqemu

index 31e98226936c81d37616025434207da78ebf7485..4adeacece1c60de9bad6d1056f041f2691b70b06 100755 (executable)
@@ -114,7 +114,7 @@ while [ $i -le $# ]; do
                 usage
             fi
             ;;
-        *-image-*)
+        *-image*)
             if [ -z "$ROOTFS" ]; then
                 if [ -f "$arg" ]; then
                     process_filename $arg
@@ -307,7 +307,7 @@ findimage() {
 
     # Sort rootfs candidates by modification time - the most
     # recently created one is the one we most likely want to boot.
-    filenames=`ls -t $where/*core-image*$machine.$extension 2>/dev/null | xargs`
+    filenames=`ls -t $where/*-image*$machine.$extension 2>/dev/null | xargs`
     for name in $filenames; do
         if [[ "$name" =~ core-image-sato-sdk ||
               "$name" =~ core-image-sato     ||