]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg DSC: Add build option to disable deprecated APIs
authorHao Wu <hao.a.wu@intel.com>
Mon, 1 Aug 2016 06:09:43 +0000 (14:09 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 8 Aug 2016 03:00:08 +0000 (11:00 +0800)
Add the following definition in the [BuildOptions] section in package DSC
files to disable APIs that are deprecated:

[BuildOptions]
  *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/MdePkg.dsc

index 7fe9e6bb4ae97e4b3a65c210b85a2f6880091d05..ab57689c626c3bf7721b8d0a1cc37fa325641c8e 100644 (file)
 \r
 [Components.ARM, Components.AARCH64]\r
   MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
+\r
+[BuildOptions]\r
+  *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r