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

Method __init__

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

Source from the content-addressed store, hash-verified

45
46class QEMURunner:
47 def __init__(self) -> None:
48
49 # Properties that can be adjusted by the user or class
50 self.cmdline: list[str] = []
51 self.efi: bool = False
52 self.gdb: bool = False
53 self.gdb_bin: str = ''
54 self.gh_json_file: Path = utils.UNINIT_PATH
55 self.initrd: Path = utils.UNINIT_PATH
56 self.interactive: bool = False
57 self.kernel: Path = utils.UNINIT_PATH
58 self.kernel_dir: Path = utils.UNINIT_PATH
59 self.memory: str = '1G'
60 self.modules: Path = utils.UNINIT_PATH
61 self.supports_efi: bool = False
62 # It may be tempting to use self.use_kvm during initialization of
63 # subclasses to set certain properties but the user can explicitly opt
64 # out of KVM after instantiation, so any decisions based on it should
65 # be confined to run().
66 self.use_kvm: bool = False
67 self.smp: int = 0
68 self.timeout: str = ''
69
70 self._default_kernel_path: Path = utils.UNINIT_PATH
71 self._dtbs: list[str] = []
72 self._efi_img: Path = utils.UNINIT_PATH
73 self._efi_vars: Path = utils.UNINIT_PATH
74 self._initrd_arch: str = ''
75 self._kvm_cpu: list[str] = ['host']
76 self._qemu_arch: str = ''
77 self._qemu_args: list[Path | str] = [
78 '-display', 'none',
79 '-nodefaults',
80 ] # fmt: off
81 self._qemu_path: Path = utils.UNINIT_PATH
82
83 def _find_dtb(self) -> Path:
84 if not self._dtbs:

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected