ClangBuiltLinux / boot-utils

Collection of files for booting Linux kernels
26 stars 7 forks source link

boot-qemu.py: Add support for booting arm64 and x86_64 guests under UEFI #79

Closed nathanchance closed 1 year ago

nathanchance commented 1 year ago

Booting under UEFI can expose potential issues that will impact real hardware, like CFI failures. Add support for booting under UEFI with arm64 and x86_64 by searching for firmare on the user's system, copying and modifying it as necessary, then passing it along to QEMU.

This is deliberately a separate option that is off by default, as I am not sure we can turn this on by default without regressing older trees or toolchains. It has only been tested with tip of tree Linux and LLVM.

Closes: https://github.com/ClangBuiltLinux/boot-utils/issues/14

nathanchance commented 1 year ago

I just pushed a small change to fix a flake8 warning, which I plan to enable in a future pull request. I will leave this open until Monday afternoon then merge it.