MCPcopy Create free account
hub / github.com/ClangBuiltLinux/boot-utils / __init__

Method __init__

boot-qemu.py:626–641  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

624
625
626class RISCVQEMURunner(QEMURunner):
627 def __init__(self) -> None:
628 super().__init__()
629
630 self.cmdline.append('earlycon')
631 self._default_kernel_path = Path('arch/riscv/boot/Image')
632 self._initrd_arch = 'riscv'
633 self._qemu_arch = 'riscv64'
634
635 deb_bios = '/usr/lib/riscv64-linux-gnu/opensbi/qemu/virt/fw_jump.elf'
636 if 'BIOS' in os.environ:
637 bios = os.environ['BIOS']
638 elif Path(deb_bios).exists():
639 bios = deb_bios
640 else:
641 bios = 'default'
642 self._qemu_args += ['-bios', bios, '-M', 'virt']
643
644

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected