summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 3a339acc2a..c24528eac8 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -369,12 +369,13 @@ class BaseConfig(object):
369 - Check whether it is an NFS dir 369 - Check whether it is an NFS dir
370 - Check whether it is an OVMF flash file 370 - Check whether it is an OVMF flash file
371 """ 371 """
372 n = os.path.basename(p)
372 if p.endswith('.qemuboot.conf'): 373 if p.endswith('.qemuboot.conf'):
373 self.qemuboot = p 374 self.qemuboot = p
374 self.qbconfload = True 375 self.qbconfload = True
375 elif re.search('\\.bin$', p) or re.search('bzImage', p) or \ 376 elif re.search('\\.bin$', n) or re.search('bzImage', n) or \
376 re.search('zImage', p) or re.search('vmlinux', p) or \ 377 re.search('zImage', n) or re.search('vmlinux', n) or \
377 re.search('fitImage', p) or re.search('uImage', p): 378 re.search('fitImage', n) or re.search('uImage', n):
378 self.kernel = p 379 self.kernel = p
379 elif os.path.isfile(p) and ('-image-' in os.path.basename(p) or '.rootfs.' in os.path.basename(p)): 380 elif os.path.isfile(p) and ('-image-' in os.path.basename(p) or '.rootfs.' in os.path.basename(p)):
380 self.rootfs = p 381 self.rootfs = p