summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index f4d0420109..69cd44864e 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -375,7 +375,7 @@ class BaseConfig(object):
375 re.search('zImage', p) or re.search('vmlinux', p) or \ 375 re.search('zImage', p) or re.search('vmlinux', p) or \
376 re.search('fitImage', p) or re.search('uImage', p): 376 re.search('fitImage', p) or re.search('uImage', p):
377 self.kernel = p 377 self.kernel = p
378 elif os.path.exists(p) and (not os.path.isdir(p)) and '-image-' in os.path.basename(p): 378 elif os.path.isfile(p) and ('-image-' in os.path.basename(p) or '.rootfs.' in os.path.basename(p)):
379 self.rootfs = p 379 self.rootfs = p
380 # Check filename against self.fstypes can handle <file>.cpio.gz, 380 # Check filename against self.fstypes can handle <file>.cpio.gz,
381 # otherwise, its type would be "gz", which is incorrect. 381 # otherwise, its type would be "gz", which is incorrect.