]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg: don't set PcdDebugPrintErrorLevel in RELEASE builds
authorLaszlo Ersek <lersek@redhat.com>
Wed, 6 Feb 2019 09:08:53 +0000 (10:08 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 13 Feb 2019 06:10:13 +0000 (07:10 +0100)
According to the

  PCDs not used by modules or in conditional directives

sections of all the build reports for

  {AARCH64,ARM} x {Qemu,QemuKernel,Xen} x {RELEASE} x {feat-0,feat-1}

(12 builds in total), the PCD is not used in any of those builds. Restrict
the PCD setting to ($(TARGET) != RELEASE).

("feat-1" stands for "-D HTTP_BOOT_ENABLE -D NETWORK_IP6_ENABLE -D
SECURE_BOOT_ENABLE -D TTY_TERMINAL", while "feat-0" stands for "".)

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Julien Grall <julien.grall@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ArmVirtPkg/ArmVirt.dsc.inc

index 31b15a42be8377da35e24197b0443325c410fa99..1f8da7feb7da8a33c026e2101987ae9e63834725 100644 (file)
   #  DEBUG_VERBOSE   0x00400000  // Detailed debug messages that may\r
   #                              // significantly impact boot performance\r
   #  DEBUG_ERROR     0x80000000  // Error\r
+!if $(TARGET) != RELEASE\r
   gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)\r
+!endif\r
 \r
   #\r
   # Optional feature to help prevent EFI memory map fragments\r