summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2019-02-06 10:08:53 +0100
committerLaszlo Ersek <lersek@redhat.com>2019-02-13 07:10:13 +0100
commitcf83784509b10962783ae569d024a9b66be28e52 (patch)
tree1ac317aa3e144d222b21c1199c7a464b9def404b /ArmVirtPkg
parentb649ee19047fc75f843ab60ae453bf4abd7980a4 (diff)
downloadedk2-cf83784509b10962783ae569d024a9b66be28e52.tar.gz
edk2-cf83784509b10962783ae569d024a9b66be28e52.tar.bz2
edk2-cf83784509b10962783ae569d024a9b66be28e52.zip
ArmVirtPkg: don't set PcdDebugPrintErrorLevel in RELEASE builds
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>
Diffstat (limited to 'ArmVirtPkg')
-rw-r--r--ArmVirtPkg/ArmVirt.dsc.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc
index 31b15a42be..1f8da7feb7 100644
--- a/ArmVirtPkg/ArmVirt.dsc.inc
+++ b/ArmVirtPkg/ArmVirt.dsc.inc
@@ -320,7 +320,9 @@
# DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
# // significantly impact boot performance
# DEBUG_ERROR 0x80000000 // Error
+!if $(TARGET) != RELEASE
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
+!endif
#
# Optional feature to help prevent EFI memory map fragments