diff options
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 1316aa4b5c..b231ae6f83 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -290,7 +290,7 @@ class BaseConfig(object): | |||
290 | def check_arg_fstype(self, fst): | 290 | def check_arg_fstype(self, fst): |
291 | """Check and set FSTYPE""" | 291 | """Check and set FSTYPE""" |
292 | if fst not in self.fstypes + self.vmtypes: | 292 | if fst not in self.fstypes + self.vmtypes: |
293 | logger.warn("Maybe unsupported FSTYPE: %s" % fst) | 293 | logger.warning("Maybe unsupported FSTYPE: %s" % fst) |
294 | if not self.fstype or self.fstype == fst: | 294 | if not self.fstype or self.fstype == fst: |
295 | if fst == 'ramfs': | 295 | if fst == 'ramfs': |
296 | fst = 'cpio.gz' | 296 | fst = 'cpio.gz' |
@@ -352,7 +352,7 @@ class BaseConfig(object): | |||
352 | self.qemuboot = qb | 352 | self.qemuboot = qb |
353 | self.qbconfload = True | 353 | self.qbconfload = True |
354 | else: | 354 | else: |
355 | logger.warn("%s doesn't exist" % qb) | 355 | logger.warning("%s doesn't exist" % qb) |
356 | else: | 356 | else: |
357 | raise RunQemuError("Can't find FSTYPE from: %s" % p) | 357 | raise RunQemuError("Can't find FSTYPE from: %s" % p) |
358 | 358 | ||
@@ -692,7 +692,7 @@ class BaseConfig(object): | |||
692 | if not self.get('QB_AUDIO_DRV'): | 692 | if not self.get('QB_AUDIO_DRV'): |
693 | raise RunQemuError("QB_AUDIO_DRV is NULL, this board doesn't support audio") | 693 | raise RunQemuError("QB_AUDIO_DRV is NULL, this board doesn't support audio") |
694 | if not self.get('QB_AUDIO_OPT'): | 694 | if not self.get('QB_AUDIO_OPT'): |
695 | logger.warn('QB_AUDIO_OPT is NULL, you may need define it to make audio work') | 695 | logger.warning('QB_AUDIO_OPT is NULL, you may need define it to make audio work') |
696 | else: | 696 | else: |
697 | self.qemu_opt_script += ' %s' % self.get('QB_AUDIO_OPT') | 697 | self.qemu_opt_script += ' %s' % self.get('QB_AUDIO_OPT') |
698 | os.putenv('QEMU_AUDIO_DRV', self.get('QB_AUDIO_DRV')) | 698 | os.putenv('QEMU_AUDIO_DRV', self.get('QB_AUDIO_DRV')) |
@@ -714,7 +714,7 @@ class BaseConfig(object): | |||
714 | if self.get('DEPLOY_DIR_IMAGE'): | 714 | if self.get('DEPLOY_DIR_IMAGE'): |
715 | deploy_dir_image = self.get('DEPLOY_DIR_IMAGE') | 715 | deploy_dir_image = self.get('DEPLOY_DIR_IMAGE') |
716 | else: | 716 | else: |
717 | logger.warn("Can't find qemuboot conf file, DEPLOY_DIR_IMAGE is NULL!") | 717 | logger.warning("Can't find qemuboot conf file, DEPLOY_DIR_IMAGE is NULL!") |
718 | return | 718 | return |
719 | 719 | ||
720 | if self.rootfs and not os.path.exists(self.rootfs): | 720 | if self.rootfs and not os.path.exists(self.rootfs): |
@@ -1058,9 +1058,9 @@ class BaseConfig(object): | |||
1058 | # virtio might have been selected explicitly (just use it), or | 1058 | # virtio might have been selected explicitly (just use it), or |
1059 | # is used as fallback (then warn about that). | 1059 | # is used as fallback (then warn about that). |
1060 | if not drive_type.startswith("/dev/vd"): | 1060 | if not drive_type.startswith("/dev/vd"): |
1061 | logger.warn("Unknown QB_DRIVE_TYPE: %s" % drive_type) | 1061 | logger.warning("Unknown QB_DRIVE_TYPE: %s" % drive_type) |
1062 | logger.warn("Failed to figure out drive type, consider define or fix QB_DRIVE_TYPE") | 1062 | logger.warning("Failed to figure out drive type, consider define or fix QB_DRIVE_TYPE") |
1063 | logger.warn('Trying to use virtio block drive') | 1063 | logger.warning('Trying to use virtio block drive') |
1064 | vm_drive = '-drive if=virtio,file=%s,format=%s' % (self.rootfs, rootfs_format) | 1064 | vm_drive = '-drive if=virtio,file=%s,format=%s' % (self.rootfs, rootfs_format) |
1065 | 1065 | ||
1066 | # All branches above set vm_drive. | 1066 | # All branches above set vm_drive. |
@@ -1275,7 +1275,7 @@ class BaseConfig(object): | |||
1275 | self.bitbake_e = subprocess.check_output(cmd, shell=True).decode('utf-8') | 1275 | self.bitbake_e = subprocess.check_output(cmd, shell=True).decode('utf-8') |
1276 | except subprocess.CalledProcessError as err: | 1276 | except subprocess.CalledProcessError as err: |
1277 | self.bitbake_e = '' | 1277 | self.bitbake_e = '' |
1278 | logger.warn("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8')) | 1278 | logger.warning("Couldn't run 'bitbake -e' to gather environment information:\n%s" % err.output.decode('utf-8')) |
1279 | 1279 | ||
1280 | def validate_combos(self): | 1280 | def validate_combos(self): |
1281 | if (self.fstype in self.vmtypes) and self.kernel: | 1281 | if (self.fstype in self.vmtypes) and self.kernel: |