diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-08-01 14:03:03 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-08-08 11:00:04 +0800 |
commit | 1da1e8ab22e91569ccff3350243bfeeb1bfe7020 (patch) | |
tree | 799d982e05ae2affffa419c7b69332235a972281 | |
parent | a61f87eb09e0188395f42781f8022aaf21476c75 (diff) | |
download | edk2-1da1e8ab22e91569ccff3350243bfeeb1bfe7020.tar.gz edk2-1da1e8ab22e91569ccff3350243bfeeb1bfe7020.tar.bz2 edk2-1da1e8ab22e91569ccff3350243bfeeb1bfe7020.zip |
IntelFrameworkPkg DSC: Add build option to disable deprecated APIs
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: Jeff Fan <jeff.fan@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>
-rw-r--r-- | IntelFrameworkPkg/IntelFrameworkPkg.dsc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IntelFrameworkPkg/IntelFrameworkPkg.dsc b/IntelFrameworkPkg/IntelFrameworkPkg.dsc index afda3e7aff..2985d38bb2 100644 --- a/IntelFrameworkPkg/IntelFrameworkPkg.dsc +++ b/IntelFrameworkPkg/IntelFrameworkPkg.dsc @@ -70,3 +70,6 @@ IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLibSmbusPpi.inf
IntelFrameworkPkg/Library/PeiHobLibFramework/PeiHobLibFramework.inf
+[BuildOptions]
+ *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
+
|