From: Richard Purdie <[email protected]> The autobuilder managed to pass the nographic option with "sdl gl" due to a problem elsewhere. It would have been useful for runqemu to have errored rather than passing conflicting options to qemu. Add an error for this invalid usecase.
Signed-off-by: Richard Purdie <[email protected]> (cherry picked from commit 377a6ffbcba0d3c5ede470c989756c4d1636873f) Signed-off-by: Steve Sakoman <[email protected]> --- scripts/runqemu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/runqemu b/scripts/runqemu index 398f0a0910..b24ac1c804 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -436,6 +436,10 @@ class BaseConfig(object): if arg in self.fstypes + self.vmtypes + self.wictypes: self.check_arg_fstype(arg) elif arg == 'nographic': + if ('sdl' in sys.argv): + raise RunQemuError('Option nographic makes no sense alongside the sdl option.' % (arg)) + if ('gtk' in sys.argv): + raise RunQemuError('Option nographic makes no sense alongside the gtk option.' % (arg)) self.qemu_opt_script += ' -nographic' self.kernel_cmdline_script += ' console=ttyS0' elif arg == 'sdl': -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#141992): https://lists.openembedded.org/g/openembedded-core/message/141992 Mute This Topic: https://lists.openembedded.org/mt/76518896/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
