summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-10-21 16:30:58 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-10-25 10:46:44 +0200
commit17dc8ebc0d76831cb9f7b0e32ccb87efa116b3ce (patch)
tree02285f1183c922b5eb02bd1f34d5cd324a7bb693 /ArmVirtPkg
parenta1848bc088c62ae5a19e20e95c22d7b4fb75d2cb (diff)
downloadedk2-17dc8ebc0d76831cb9f7b0e32ccb87efa116b3ce.tar.gz
edk2-17dc8ebc0d76831cb9f7b0e32ccb87efa116b3ce.tar.bz2
edk2-17dc8ebc0d76831cb9f7b0e32ccb87efa116b3ce.zip
ArmVirtPkg: disable deprecated interfaces
At this point no code in ArmVirtPkg (and apparently no code outside of ArmVirtPkg that the ArmVirt binaries depend on) uses the deprecated APIs, so we can disable them in the common platform DSC include file: BaseLib: - StrCpy - StrnCpy - StrCat - StrnCat - UnicodeStrToAsciiStr - AsciiStrCpy - AsciiStrnCpy - AsciiStrCat - AsciiStrnCat - AsciiStrToUnicodeStr PcdLib: - PcdSet8 - PcdSet16 - PcdSet32 - PcdSet64 - PcdSetPtr - PcdSetBool - PcdSetEx8 - PcdSetEx16 - PcdSetEx32 - PcdSetEx64 - PcdSetExPtr - PcdSetExBool UefiLib: - GetVariable - GetEfiGlobalVariable Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> # RVCT Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'ArmVirtPkg')
-rw-r--r--ArmVirtPkg/ArmVirt.dsc.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc
index c071988ad8..dbd6678acc 100644
--- a/ArmVirtPkg/ArmVirt.dsc.inc
+++ b/ArmVirtPkg/ArmVirt.dsc.inc
@@ -246,6 +246,12 @@
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
+ #
+ # Disable deprecated APIs.
+ #
+ RVCT:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
+ GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
+
################################################################################
#
# Pcd Section - list of all EDK II PCD Entries defined by this Platform