Beispiel #1
0
def main():
    p = QProject(descriptions=[
        CustomSBDDescription(  # This class is defined by `@describable`
            name="custom_device",
            directory="misc",
            mmio_num=1),
    ])

    # We need information about target Qemu source tree.
    # QDT gets it starting from build directory (where `configure` has work).
    qemu_build = environ["QEMU_BUILD_DIR"]

    qemu_version_description = qvd_load_with_cache(qemu_build,
                                                   version="v4.1.0")
    # First time the loading may take few minutes because Qemu sources
    # are analyzed.
    # Then result is cached in a file to be reused.

    # Apply Qemu's source code environment.
    qemu_version_description.use()

    # And finally, generate the boilerplate.
    p.gen_all(qemu_src=qemu_version_description.src_path)
Beispiel #2
0
def Q35Project_2_6_0():
    return QProject(old_devices() + [Q35MachineNode_2_6_0()])