diff options
| author | Raito Bezarius <masterancpp@gmail.com> | 2023-11-25 12:49:21 +0100 |
|---|---|---|
| committer | Raito Bezarius <masterancpp@gmail.com> | 2023-11-25 12:49:21 +0100 |
| commit | 770194fac17ea9bb018e612f426239f4f13c1785 (patch) | |
| tree | 02b9ec838b25eba0c67378d410e2dad0a4a88bb8 | |
| parent | edk2: support RISC-V (diff) | |
| download | nixpkgs-770194fac17ea9bb018e612f426239f4f13c1785.tar.gz | |
OVMF: disable `sourceDebug` by default
`sourceDebug` enables a source-level debugger agent inside the UEFI code
that can be leveraged via a certain bus (USB or serial for example) to debug the platform.
See: https://github.com/tianocore/tianocore.github.io/wiki/SourceLevelDebugPkg for more information.
`sourceDebug` is almost something you never want when you debug UEFI in a virtual machine.
Debugging with GDB can be achieved via: https://github.com/tianocore/tianocore.github.io/wiki/How-to-debug-OVMF-with-QEMU-using-GDB.
| -rw-r--r-- | pkgs/applications/virtualization/OVMF/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/virtualization/OVMF/default.nix b/pkgs/applications/virtualization/OVMF/default.nix index eada778e1c69..20353696d161 100644 --- a/pkgs/applications/virtualization/OVMF/default.nix +++ b/pkgs/applications/virtualization/OVMF/default.nix @@ -7,7 +7,9 @@ , tpmSupport ? false , tlsSupport ? false , debug ? false -, sourceDebug ? debug +# Usually, this option is broken, do not use it except if you know what you are +# doing. +, sourceDebug ? false }: assert csmSupport -> seabios != null; |
