Skip to content

Commit

Permalink
packages/OVMF-TDX: add debug support
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft committed Nov 22, 2024
1 parent 64c07c2 commit 219d7eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/by-name/OVMF-TDX/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
# SPDX-License-Identifier: AGPL-3.0-only

{
lib,
edk2,
nasm,
acpica-tools,
debug ? false,
}:

edk2.mkDerivation "OvmfPkg/IntelTdx/IntelTdxX64.dsc" rec {
name = "OVMF-TDX";

buildFlags = lib.optionals debug [ "-D DEBUG_ON_SERIAL_PORT=TRUE" ];

buildConfig = if debug then "DEBUG" else "RELEASE";

nativeBuildInputs = [
nasm
acpica-tools
Expand Down

0 comments on commit 219d7eb

Please sign in to comment.