> -----Original Message----- > From: openembedded-core-boun...@lists.openembedded.org <openembedded- > core-boun...@lists.openembedded.org> On Behalf Of Jagadeesh > Krishnanjanappa > Sent: den 14 augusti 2018 04:52 > To: openembedded-core@lists.openembedded.org > Subject: [OE-core] [PATCH v3] runqemu: exit gracefully with an error > message if qemu system is not evaluated > > It solves below error: > -- snip -- > return 'qemu-system-%s' % qbsys > UnboundLocalError: local variable 'qbsys' referenced before assignment > -- snip -- > > [YOCTO #12846] > > * v3 changes: > Added yocto bugzilla ID in the required format
The two lines above belong after the --- line below as they are only relevant during the patch submission process, not once the change is integrated. > > Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjana...@mvista.com> > --- > scripts/runqemu | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/scripts/runqemu b/scripts/runqemu > index f52b9a8..409d17c 100755 > --- a/scripts/runqemu > +++ b/scripts/runqemu > @@ -1118,6 +1118,11 @@ class BaseConfig(object): > qbsys = 'riscv64' > elif mach == 'qemuriscv32': > qbsys = 'riscv32' > + else: > + logger.error("Unable to determine QEMU PC System emulator > for %s machine." % mach) > + logger.error("As %s is not among valid QEMU machines such > as," % mach) > + logger.error("qemux86-64, qemux86, qemuarm64, qemuarm, > qemumips64, qemumips64el, qemumipsel, qemumips, qemuppc") > + raise RunQemuError("Set qb_system_name with suitable QEMU > PC System emulator in .*qemuboot.conf.") > > return 'qemu-system-%s' % qbsys > > -- > 1.8.3.1 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core