aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
AgeCommit message (Expand)Author
2016-04-14runqemu: let ramfs equal to cpio.gzRobert Yang
2016-03-29runqemu: fix for isoRobert Yang
2016-03-23runqemu-internal: cleanup unsed codeRobert Yang
2016-03-23runqemu: simplify checking for iso and ramfsRobert Yang
2016-03-23runqemu: add support for qcow2 and vdiRobert Yang
2016-03-23runqemu: remove ISO and RAMFS from help textRobert Yang
2016-03-23runqemu: simplify the checking for vm imagesRobert Yang
2016-03-23runqemu: fix ROOTFS for vmdkRobert Yang
2016-02-15runqemu: support path/to/<image>-<machine>.wicEd Bartosh
2016-02-15runqemu: don't set KERNEL for wic imagesEd Bartosh
2016-02-15runqemu: add support for wic imagesEd Bartosh
2015-11-16scripts: runqemu: remove QEMUARCH from help messageRuslan Bilovol
2015-11-16runqemu: don't specify IP when starting a VNC serverRoss Burton
2015-10-24runqemu: Enable support for kvm without vhost in x86 and x86_64Aníbal Limón
2015-09-28runqemu: don't complain about conflicting machines if they are equalPascal Bach
2015-09-12runqemu: avoid image file name mismatchesPatrick Ohly
2015-09-12runqemu: Define OECORE_MACHINE_SYSROOT on setup_sysrootLeonardo Sandoval
2015-09-06runqemu: support full-disk imagesPatrick Ohly
2015-08-24runqemu: Add a tcpserial optionRandy Witt
2015-06-23runqemu: fix MACHINE being detected as qemuarm for qemuarm64 kernel imageJagadeesh Krishnanjanappa
2015-03-20scripts/runqemu: Allow FSTYPE to be changed from the environmentRichard Purdie
2015-03-05scripts/runqemu: clarify help textBernhard Reutner-Fischer
2015-02-21machine/qemu: Switch from ext3 to ext4Richard Purdie
2015-02-14runqemu: Add option for BIOS binary filenameRicardo Neri
2014-12-22runqemu: add qemuarm64 support.Kai Kang
2014-05-08scripts/runqemu: avoid pipe with sedMatthieu Crapet
2014-03-21runqemu: Add option for custom BIOS directoryRicardo Neri
2014-02-25runqemu: Use readlink instead of realpathSaul Wold
2014-02-20runqemu: Ensure ROOTFS path is absoluteSaul Wold
2014-02-13runqemu: enforce right CPU type for qemux86/x86-64Cristian Iorga
2014-01-28runqemu, runqemu-internal: Allow slirp for NFS and KVM useJason Wessel
2013-12-20runqemu: Allow user to set -vga option with qemuparamsValentin Popa
2013-12-09runqemu: remove core-image-* whitelistScott Garman
2013-09-26runqemu: Use correct kvm CPU options for qemux86* with kvmRichard Purdie
2013-09-24scripts/runqemu: write temp file into correct locationPaul Eggleton
2013-09-12bitbake.conf: include machine name in DEPLOY_DIR_IMAGEPaul Eggleton
2013-09-04scripts/runqemu: Fix MACHINE regexMihai Prica
2013-07-09scripts/runqemu: Add support for 'qemumicroblaze' machineNathan Rossi
2013-07-09scripts/runqemu: Add support for 'qemuzynq' machineNathan Rossi
2013-07-09lib/oeqa/utils/qemurunner.py: class to handle qemu instanceRadu Moisan
2013-05-24SLiRP support in runqemuAndrei Dinu
2013-05-12scripts/runqemu: add ext4 to the list of extracted extensionsStefan Stanacar
2013-03-20runqemu: Improve error handling/exit codesRichard Purdie
2013-02-11runqemu: add option to make the VNC server publically availableRoss Burton
2013-01-16runqemu scripts: add support for booting an ISO imageChen Qi
2012-12-25runqemu: change terminal's INTR key in 'serial' modeTrevor Woerner
2012-12-25Fix typo in kvm capability detection in runqemuBjörn Stenberg
2012-12-14runqemu: add support for FSTYPE=vmdkTrevor Woerner
2012-10-03qemu: Fixed running QEMU with virtio error reportingCristian Iorga
2012-09-20qemux86: Support for KVM, paravirt and virtio addedCristian Iorga
span class="s s-Atom">elif command_name == "getAllKeysWithFlags": dump = {} flaglist = commandArray[1] for k in self._sc._variables.keys(): try: if not k.startswith("__"): v = self._sc._variables[k]['v'] dump[k] = { 'v' : v , 'history' : self._sc._variables[k]['history'], } for d in flaglist: dump[k][d] = self._sc._variables[k][d] except Exception as e: print(e) return (dump, None) else: raise Exception("Command %s not implemented" % commandArray[0]) def terminateServer(self): """ do not do anything """ pass class EventReader(): def __init__(self, sc): self._sc = sc self.firstraise = 0 def _create_event(self, line): def _import_class(name): assert len(name) > 0 assert "." in name, name components = name.strip().split(".") modulename = ".".join(components[:-1]) moduleklass = components[-1] module = __import__(modulename, fromlist=[str(moduleklass)]) return getattr(module, moduleklass) # we build a toaster event out of current event log line try: event_data = json.loads(line.strip()) event_class = _import_class(event_data['class']) event_object = pickle.loads(json.loads(event_data['vars'])) except ValueError as e: print("Failed loading ", line) raise e if not isinstance(event_object, event_class): raise Exception("Error loading objects %s class %s ", event_object, event_class) return event_object def waitEvent(self, timeout): nextline = self._sc._eventfile.readline() if len(nextline) == 0: # the build data ended, while toasterui still waits for events. # this happens when the server was abruptly stopped, so we simulate this self.firstraise += 1 if self.firstraise == 1: raise KeyboardInterrupt() else: return None else: self._sc.lineno += 1 return self._create_event(nextline) def _readVariables(self, variableline): self._variables = json.loads(variableline.strip())['allvariables'] def __init__(self, file_name): self.connection = FileReadEventsServerConnection.MockConnection(self) self._eventfile = open(file_name, "r") # we expect to have the variable dump at the start of the file self.lineno = 1 self._readVariables(self._eventfile.readline()) self.events = FileReadEventsServerConnection.EventReader(self) class MockConfigParameters(): """ stand-in for cookerdata.ConfigParameters; as we don't really config a cooker, this serves just to supply needed interfaces for the toaster ui to work """ def __init__(self): self.observe_only = True # we can only read files # run toaster ui on our mock bitbake class if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: %s event.log " % sys.argv[0]) sys.exit(1) file_name = sys.argv[-1] mock_connection = FileReadEventsServerConnection(file_name) configParams = MockConfigParameters() # run the main program and set exit code to the returned value sys.exit(toasterui.main(mock_connection.connection, mock_connection.events, configParams))