diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-08-01 14:10:20 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-08-08 11:00:08 +0800 |
commit | 53c1e7e55262c22744efe1a606f948c3f4d24615 (patch) | |
tree | f578c64a286ca8d0edefd16b3c6a77738dfe6bfb | |
parent | f2ecdbf0042f242913fdec230ec2643c2e2dcf38 (diff) | |
download | edk2-53c1e7e55262c22744efe1a606f948c3f4d24615.tar.gz edk2-53c1e7e55262c22744efe1a606f948c3f4d24615.tar.bz2 edk2-53c1e7e55262c22744efe1a606f948c3f4d24615.zip |
NetworkPkg 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: Siyuan Fu <siyuan.fu@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
-rw-r--r-- | NetworkPkg/NetworkPkg.dsc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/NetworkPkg/NetworkPkg.dsc b/NetworkPkg/NetworkPkg.dsc index 3c809d5009..1ef353e698 100644 --- a/NetworkPkg/NetworkPkg.dsc +++ b/NetworkPkg/NetworkPkg.dsc @@ -123,3 +123,6 @@ NetworkPkg/IScsiDxe/IScsiDxe.inf
NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
NetworkPkg/Application/Ping6/Ping6.inf
+
+[BuildOptions]
+ *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|