Re: [edk2] [edk2-platforms Patch] Platform: Add SafeIntLib and BmpSupportLib to DSC files

2018-02-14 Thread Kinney, Michael D
The patch from Leif for this issue is a better solution using
a common DSC include.

Please ignore this one.

Mike

> -Original Message-
> From: Kinney, Michael D
> Sent: Tuesday, February 13, 2018 10:37 AM
> To: edk2-devel@lists.01.org
> Cc: Kinney, Michael D <michael.d.kin...@intel.com>; Sean
> Brogan <sean.bro...@microsoft.com>; Yao, Jiewen
> <jiewen@intel.com>; Ard Biesheuvel
> <ard.biesheu...@linaro.org>; Leif Lindholm
> <leif.lindh...@linaro.org>
> Subject: [edk2-platforms Patch] Platform: Add SafeIntLib
> and BmpSupportLib to DSC files
> 
> From: Michael D Kinney <michael.d.kin...@intel.com>
> 
> https://bugzilla.tianocore.org/show_bug.cgi?id=800
> 
> Based on content from the following branch/commits:
> https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsule
> Support
> https://github.com/Microsoft/MS_UEFI/commit/33bab4031a417
> d7d5a7d356c15a14c2e60302b2d
> https://github.com/Microsoft/MS_UEFI/commit/ca516b1a61315
> c2d823f453e12d2135098f53d61
> https://github.com/Microsoft/MS_UEFI/commit/2b9f111f2e74a
> 4c2ef4c4e32379e111f016dbd9b
> 
> BootGraphicsResourceTableDxe, GenericBdsLib, and
> CapsuleLib
> use BmpSupportLib and SafeIntLib to convert a GOP BLT
> buffers to a BMP graphics images and BMP graphics images
> to
> GOP BLT buffers.  Add library mappings for these new
> library classes.
> 
> Cc: Sean Brogan <sean.bro...@microsoft.com>
> Cc: Jiewen Yao <jiewen@intel.com>
> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org>
> Cc: Leif Lindholm <leif.lindh...@linaro.org>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Michael D Kinney
> <michael.d.kin...@intel.com>
> ---
>  Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
> | 2 ++
>  Platform/Hisilicon/D02/Pv660D02.dsc
> | 2 ++
>  Platform/Hisilicon/D03/D03.dsc
> | 2 ++
>  Platform/Hisilicon/D05/D05.dsc
> | 2 ++
>  Platform/Socionext/DeveloperBox/DeveloperBox.dsc
> | 2 ++
> 
> Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.
> dsc | 2 ++
>  6 files changed, 12 insertions(+)
> 
> diff --git
> a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
> b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
> index 48018abc6..5e879b16f 100644
> --- a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
> +++ b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
> @@ -49,6 +49,8 @@ [LibraryClasses.common]
> 
> DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErro
> rLevelLib/BaseDebugPrintErrorLevelLib.inf
> 
>BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
> +
> SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.i
> nf
> +
> BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/Base
> BmpSupportLib.inf
> 
> SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/
> BaseSynchronizationLib.inf
> 
> PerformanceLib|MdePkg/Library/BasePerformanceLibNull/Base
> PerformanceLibNull.inf
>PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
> diff --git a/Platform/Hisilicon/D02/Pv660D02.dsc
> b/Platform/Hisilicon/D02/Pv660D02.dsc
> index 9e826aeb6..c6e539c0c 100644
> --- a/Platform/Hisilicon/D02/Pv660D02.dsc
> +++ b/Platform/Hisilicon/D02/Pv660D02.dsc
> @@ -65,6 +65,8 @@ [LibraryClasses.common]
> 
> 
> CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCaps
> uleLibNull.inf
> 
> GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsL
> ib/GenericBdsLib.inf
> +
> SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.i
> nf
> +
> BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/Base
> BmpSupportLib.inf
> 
> PlatformBdsLib|Silicon/Hisilicon/Library/PlatformIntelBds
> Lib/PlatformIntelBdsLib.inf
> 
> CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDispl
> ayLib/CustomizedDisplayLib.inf
> 
> diff --git a/Platform/Hisilicon/D03/D03.dsc
> b/Platform/Hisilicon/D03/D03.dsc
> index c49630637..e922f98d3 100644
> --- a/Platform/Hisilicon/D03/D03.dsc
> +++ b/Platform/Hisilicon/D03/D03.dsc
> @@ -66,6 +66,8 @@ [LibraryClasses.common]
> 
> PlatformSysCtrlLib|Silicon/Hisilicon/Hi1610/Library/Platf
> ormSysCtrlLibHi1610/PlatformSysCtrlLibHi1610.inf
> 
> 
> GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsL
> ib/GenericBdsLib.inf
> +
> SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.i
> nf
> +
> BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/Base
> BmpSupportLib.inf
> 
> PlatformBdsLib|Silicon/Hisilicon/Library/PlatformIntelBds
> Lib/PlatformIntelBdsLib.inf
> 
> BmcConfigBootLib|Silicon/Hisilicon/Library/BmcConfigBootL
> ib/BmcConfigBootLib.inf
> 
> UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLi
> b/UefiBootManagerLib.inf

[edk2] [edk2-platforms Patch] Platform: Add SafeIntLib and BmpSupportLib to DSC files

2018-02-13 Thread Kinney, Michael D
From: Michael D Kinney 

https://bugzilla.tianocore.org/show_bug.cgi?id=800

Based on content from the following branch/commits:
https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport
https://github.com/Microsoft/MS_UEFI/commit/33bab4031a417d7d5a7d356c15a14c2e60302b2d
https://github.com/Microsoft/MS_UEFI/commit/ca516b1a61315c2d823f453e12d2135098f53d61
https://github.com/Microsoft/MS_UEFI/commit/2b9f111f2e74a4c2ef4c4e32379e111f016dbd9b

BootGraphicsResourceTableDxe, GenericBdsLib, and CapsuleLib
use BmpSupportLib and SafeIntLib to convert a GOP BLT
buffers to a BMP graphics images and BMP graphics images to
GOP BLT buffers.  Add library mappings for these new
library classes.

Cc: Sean Brogan 
Cc: Jiewen Yao 
Cc: Ard Biesheuvel 
Cc: Leif Lindholm 
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney 
---
 Platform/AMD/OverdriveBoard/OverdriveBoard.dsc   | 2 ++
 Platform/Hisilicon/D02/Pv660D02.dsc  | 2 ++
 Platform/Hisilicon/D03/D03.dsc   | 2 ++
 Platform/Hisilicon/D05/D05.dsc   | 2 ++
 Platform/Socionext/DeveloperBox/DeveloperBox.dsc | 2 ++
 Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.dsc | 2 ++
 6 files changed, 12 insertions(+)

diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc 
b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
index 48018abc6..5e879b16f 100644
--- a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
+++ b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
@@ -49,6 +49,8 @@ [LibraryClasses.common]
   
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
 
   BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
+  SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
+  BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
   
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
   
PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
   PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
diff --git a/Platform/Hisilicon/D02/Pv660D02.dsc 
b/Platform/Hisilicon/D02/Pv660D02.dsc
index 9e826aeb6..c6e539c0c 100644
--- a/Platform/Hisilicon/D02/Pv660D02.dsc
+++ b/Platform/Hisilicon/D02/Pv660D02.dsc
@@ -65,6 +65,8 @@ [LibraryClasses.common]
 
   CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
   GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
+  SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
+  BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
   
PlatformBdsLib|Silicon/Hisilicon/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
   
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
 
diff --git a/Platform/Hisilicon/D03/D03.dsc b/Platform/Hisilicon/D03/D03.dsc
index c49630637..e922f98d3 100644
--- a/Platform/Hisilicon/D03/D03.dsc
+++ b/Platform/Hisilicon/D03/D03.dsc
@@ -66,6 +66,8 @@ [LibraryClasses.common]
   
PlatformSysCtrlLib|Silicon/Hisilicon/Hi1610/Library/PlatformSysCtrlLibHi1610/PlatformSysCtrlLibHi1610.inf
 
   GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
+  SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
+  BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
   
PlatformBdsLib|Silicon/Hisilicon/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
   
BmcConfigBootLib|Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf
   
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
diff --git a/Platform/Hisilicon/D05/D05.dsc b/Platform/Hisilicon/D05/D05.dsc
index 0792b0814..a0922b388 100644
--- a/Platform/Hisilicon/D05/D05.dsc
+++ b/Platform/Hisilicon/D05/D05.dsc
@@ -82,6 +82,8 @@ [LibraryClasses.common]
   
PlatformSysCtrlLib|Silicon/Hisilicon/Hi1616/Library/PlatformSysCtrlLibHi1616/PlatformSysCtrlLibHi1616.inf
 
   GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
+  SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
+  BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
   
PlatformBdsLib|Silicon/Hisilicon/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
   
BmcConfigBootLib|Silicon/Hisilicon/Library/BmcConfigBootLib/BmcConfigBootLib.inf
   
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
diff --git a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc 
b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc
index 7e69eaba9..fdfaadd97 100644
--- a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc
+++ b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc
@@ -75,6 +75,8 @@ [LibraryClasses.common]