[edk2-devel] [edk2-platforms] [PATCH v2 1/5] Platform/ARM/SgiPkg: Disable use of deprecated APIs

Leif Lindholm leif at nuviainc.com
Thu Feb 13 16:56:23 UTC 2020


On Wed, Feb 12, 2020 at 18:59:23 +0530, Vijayenthiran Subramaniam wrote:
> Add the `DISABLE_NEW_DEPRECATED_INTERFACES` build option in DSC file to
> make sure that the deprecated APIs are not used SgiPkg.
> 
> Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam at arm.com>

Reviewed-by: Leif Lindholm <leif at nuviainc.com>

> ---
>  Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc | 3 +++
>  Platform/ARM/SgiPkg/SgiPlatform.dsc          | 3 +++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc b/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc
> index 7ae19560eaca..38bf6020ba4c 100644
> --- a/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc
> +++ b/Platform/ARM/SgiPkg/PlatformStandaloneMm.dsc
> @@ -132,3 +132,6 @@ [Components.AARCH64]
>  ###################################################################################################
>  [BuildOptions.AARCH64]
>    GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp
> +
> +[BuildOptions]
> +  *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
> diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dsc b/Platform/ARM/SgiPkg/SgiPlatform.dsc
> index a5b7eea1d3a8..e38cc7da52a5 100644
> --- a/Platform/ARM/SgiPkg/SgiPlatform.dsc
> +++ b/Platform/ARM/SgiPkg/SgiPlatform.dsc
> @@ -23,6 +23,9 @@ [Defines]
>  
>  !include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
>  
> +[BuildOptions]
> +  *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
> +
>  [LibraryClasses.common]
>    ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
>    ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
> -- 
> 2.7.4
> 

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#54370): https://edk2.groups.io/g/devel/message/54370
Mute This Topic: https://groups.io/mt/71211938/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list