From: Saul Wold Date: Fri, 4 Nov 2011 00:37:30 +0000 (-0700) Subject: runqemu: look for *-image* to be more flexible for image names X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~43524 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2f88c658b73da67d93312591b3e67b42f629fe3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git runqemu: look for *-image* to be more flexible for image names We can't just look for *image* since it will catch up bzimage Signed-off-by: Saul Wold --- diff --git a/scripts/runqemu b/scripts/runqemu index 31e98226936..4adeacece1c 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -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 ||