[edk2] [PATCH v2] BaseTools: Add error condition for the path in PACKAGES_PATH env

2016-05-20 Thread Liming Gao
on Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong@intel.com> Reviewed-by: Liming Gao <liming@intel.com> Reviewed by: Andrew Fish <af...@apple.com> --- BaseTools/Source/Python/build/build.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/BaseTools/Source/

[edk2] [Patch] MdePkg: Update StatusCode Runtime Protocol comments to follow PI spec.

2016-05-17 Thread Liming Gao
Cc: Star Zeng <star.z...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Include/Protocol/StatusCode.h | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/MdePkg/Incl

[edk2] [Patch] SecurityPkg: Use PcdGet32() to access PcdPeiCoreMaxFvSupported

2016-05-16 Thread Liming Gao
FixedPcdGet32() limits PcdPeiCoreMaxFvSupported type as FixedAtBuild. PcdGet32() allows PCD be configured as FixedAtBuild or PatchableInModule. Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@

[edk2] [Patch] MdeModulePkg: DxeCore MemoryPool Algorithm Update

2016-04-27 Thread Liming Gao
in our X64 platform with DEBUG enable. 64 byte: 22 seconds in BDS phase 128 byte: 19.6 seconds in BDS phase Cc: Michael Kinney <michael.d.kin...@intel.com> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming

[edk2] [Patch] MdeModulePkg: Add description to MdeModulePkg AcpiTable driver.

2016-04-24 Thread Liming Gao
Cc: Star Zeng <star.z...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf | 3 +++ MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.uni | 8 +++--

[edk2] [Patch] MdeModulePkg: Correct PlatformHookLibSerialPortPpi module type.

2016-04-14 Thread Liming Gao
This library instance is PEIM type, not BASE type. It has the PPI dependency for PEIM. Cc: Feng Tian <feng.t...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../PlatformHookLibS

[edk2] [PATCH v2 3/3] MdeModulePkg: Update Guid/Protocol usages in INF files.

2016-04-13 Thread Liming Gao
V2: Update VariableSmm inf to align the change in VariableRuntimeDxe.inf. Cc: Star Zeng <star.z...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/VarCheckUefiLib/VarCheckUefiLib

[edk2] [Patch] QuarkSocPkg: Add /Oi option to let MemoryInit pass build.

2016-04-11 Thread Liming Gao
MemoryInit uses the intrinsic memset function. To keep it pass build in VS tool chain without source code change, /Oi option will be added. Cc: Michael Kinney <michael.d.kin...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@

[edk2] [Patch] QuarkSocPkg: Remove intrinsic memset function usages in MemoryInit

2016-04-10 Thread Liming Gao
Use BaseMemoryLib ZeroMem replace memset function. Cc: Michael Kinney <michael.d.kin...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/meminit.c | 11 ++- 1

[edk2] [PATCH v2 2/2] MdeModulePkg: Update PerformanceLib instances not to check Identifier.

2016-04-08 Thread Liming Gao
In PerformanceLib, Identifier is for single PERF, not the pair of PERF. When find the matched START and END pair, the identifier will not be checked. Cc: Star Zeng <star.z...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@

[edk2] [PATCH v2 0/2] Update PerformanceLib not to check Identifier.

2016-04-08 Thread Liming Gao
In V2, update function header comments not to check Identifier. In V1, update PerformanceLib instance not to check Identifier. Liming Gao (2): MdePkg: Update PerformanceLib comments not to check Identifier. MdeModulePkg: Update PerformanceLib instances not to check Identifier. .../Library

[edk2] [PATCH v2 1/2] MdePkg: Update PerformanceLib comments not to check Identifier.

2016-04-08 Thread Liming Gao
In PerformanceLib, Identifier is for single PERF, not the pair of PERF. When find the matched START and END pair, the identifier will not be checked. Cc: Star Zeng <star.z...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@

[edk2] [Patch] MdeModulePkg: Update PerformanceLib instances not to check Identifier.

2016-04-08 Thread Liming Gao
Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c | 5 ++--- MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c | 5 ++--- MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c | 5 ++

[edk2] [Patch] Update edksetup.bat to check EDK_TOOLS_PATH before set it.

2016-04-08 Thread Liming Gao
If EDK_TOOLS_PATH is set, then not set it again. If EDK_TOOLS_PATH is not set, then set it. Cc: Yonghong Zhu <yonghong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- edksetup.bat | 30 -

[edk2] [Patch 3/3] MdeModulePkg: Update Guid/Protocol usages in INF files.

2016-04-07 Thread Liming Gao
Cc: Star Zeng <star.z...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/VarCheckUefiLib/VarCheckUefiLib.inf| 78 +++--- .../Variable/RuntimeDxe/VariableRuntimeDxe.inf | 10

[edk2] [Patch 1/3] SecurityPkg: Update protocol usage in module INF files.

2016-04-07 Thread Liming Gao
Update TCG and Library module uses gEdkiiVariableLockProtocolGuid as SOMETIMES_CONSUMES instead of CONSUMES to follow the code logic. Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@

[edk2] [Patch 2/3] ShellPkg: Update Guid/Protocol usages in INF files.

2016-04-07 Thread Liming Gao
Cc: Jaben Carsey <jaben.car...@intel.com> Cc: Shumin Qiu <shumin@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- ShellPkg/Application/Shell/Shell.inf | 10 - .../Ue

[edk2] [Patch] MdeModulePkg: Update PeiCore dispatcher to handle PEIM and PEI_CORE only

2016-02-05 Thread Liming Gao
When PcdShadowPeimOnBoot is FALSE, they are not copied to memory and execute from their original locations. Here, this policy should only apply for PEIM and PEI_CORE, not for other file type, such as DXE_CORE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao

[edk2] [Patch] MdeModulePkg: Update DxeCore dispatcher to ignore PEI and SMM depex for FV.

2016-02-03 Thread Liming Gao
If FV image without DXE depex, it will be dispatched by DxeCore. If FV image with SMM depex, it is the invalid image. ASSERT will be trig. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Core/Dxe/Dispatcher/Dispat

[edk2] [Patch 3/3] BaseTools/GenFw: Correct datatypes in diagnostic messages and check for string termination

2016-01-31 Thread Liming Gao
From: Michael LeMay This patch revises multiple diagnostic messages to use correct datatypes. It also checks that a symbol name that is about to be used in a diagnostic message is terminated by a null character within the contents of the string table section so that the

[edk2] [Patch 5/8] MdeModulePkg: Update SerialDxe inf to include the module uni

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Universal/SerialDxe/SerialDxe.inf | 4 1 file changed, 4 insertions(+) diff --git a/MdeModulePkg/Universal/SerialDxe/SerialDxe.inf b/MdeModulePkg/Universal/Ser

[edk2] [Patch 7/8] NetworkPkg: Update module inf to include the missing uni file

2015-12-23 Thread Liming Gao
Update DnsDxe and HttpUtilitiesDxe inf files. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- NetworkPkg/DnsDxe/DnsDxe.inf | 5 +++-- NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf | 5 +++-- 2 files chan

[edk2] [Patch 2/8] MdeModulePkg: Add the missing Library uni files of ImageDecode instances

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../BmpImageDecoderLib/BmpImageDecoderLib.inf | 1 + .../BmpImageDecoderLib/BmpImageDecoderLib.uni | 26 ++ MdeModulePkg/Library/BootLogoLib/BootLogoL

[edk2] [Patch 1/8] MdeModulePkg: Add the missing Library uni files of Ipmi instances

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/BaseIpmiLibNull/BaseIpmiLibNull.inf| 1 + .../Library/BaseIpmiLibNull/BaseIpmiLibNull.uni| 25 ++ .../DxeIpmiLibIpmiProtoc

[edk2] [Patch 4/8] MdeModulePkg: Add the missing module uni in RegularExpressionDxe

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../RegularExpressionDxe/RegularExpressionDxe.inf | 3 +++ .../RegularExpressionDxe/RegularExpressionDxe.uni | 26 ++ .../RegularExpressionDxeExt

[edk2] [Patch 0/8] Add the missing module uni and extra uni files

2015-12-23 Thread Liming Gao
Liming Gao (8): MdeModulePkg: Add the missing Library uni files of Ipmi instances MdeModulePkg: Add the missing Library uni files of ImageDecode instances MdeModulePkg: Add the missing library uni files of UI instances MdeModulePkg: Add the missing module uni in RegularExpressionDxe

[edk2] [Patch 6/8] UefiCpuPkg: Add the missing module uni for CpuS3DataDxe

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf | 4 +++ UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.uni | 40 +++ UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxeExtra.un

[edk2] [Patch 8/8] IntelFrameworkModulePkg: Remove the undefined PCD help and prompt strings

2015-12-23 Thread Liming Gao
IntelFrameworkModulePkg.uni includes some undefined PCD help and prompt strings, which will be removed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../IntelFrameworkModulePkg.uni| 26 +--

[edk2] [Patch 3/8] MdeModulePkg: Add the missing library uni files of UI instances

2015-12-23 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../BootMaintenanceManagerLib.inf | 1 + .../BootMaintenanceManagerLib.uni | 26 ++ .../Library/BootManagerLib/BootManagerL

[edk2] [PATCH v2] Nt32Pkg: Fix VS2015 Build Failure

2015-12-21 Thread Liming Gao
need to link vcruntime.lib and ucrt.lib. More detail is in http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- Nt32Pkg/Sec/SecMain.inf | 6 +-

[edk2] [Patch] BaseTools: Update Scripts to support VS2015 env

2015-12-21 Thread Liming Gao
edk2 Edk2Setup.bat depends on those scripts to configure VS env. Update them to support VS2015. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Scripts/SetVisualStudio.bat | 5 + BaseTools/Scripts/ShowEnvironme

[edk2] [Patch] Nt32Pkg: Fix VS2015 Build Failure

2015-12-18 Thread Liming Gao
need to link vcruntime.lib and ucrt.lib. More detail is in http://blogs.msdn.com/b/vcblog/archive/2015/03/03/introducing-the-universal-crt.aspx Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- Nt32Pkg/Sec/SecMain.inf | 6 +-

[edk2] [Patch] MdePkg: Convert IoLibEbc.c source file to DOS format

2015-12-16 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Library/BaseIoLibIntrinsic/IoLibEbc.c | 342 +-- 1 file changed, 171 insertions(+), 171 deletions(-) diff --git a/MdePkg/Library/BaseIoLibInt

[edk2] [PATCH v2 3/3] EdkCompatibilityPkg: Fix GCC error to avoid the duplicated global variables

2015-12-16 Thread Liming Gao
SmmBaseHelper uses the same name global variables to the one in SmmMemoryAllocateLib. Update SmmBaseHelper to use SmmMemLib SmmIsBufferOutsideSmmValid(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Compatibility/SmmBase

[edk2] [Patch] NetworkPkg: Correct gEfiUdp4ProtocolGuid usage in DnsDxe

2015-12-16 Thread Liming Gao
DnsDxe driver locates gEfiUdp4ProtocolGuid. Its usage should be TO_START. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- NetworkPkg/DnsDxe/DnsDxe.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Netw

[edk2] [Patch] EdkCompatibilityPkg: Fix wrong guid value of gEfiManagedNetworkProtocolGuid

2015-12-16 Thread Liming Gao
UEFI2.1B corrects the guid value of gEfiManagedNetworkProtocolGuid. ECP package updates its value in ManagedNetwork.h, but miss the one in EdkIIGlueLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/EdkIIG

[edk2] [Patch 2/3] DuetPkg: Fix GCC error to avoid the duplicated global variable in SmbiosGenDxe

2015-12-16 Thread Liming Gao
Update SmbiosGenDxe to use UefiHiiServicesLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- DuetPkg/SmbiosGenDxe/SmbiosGen.c | 11 --- DuetPkg/SmbiosGenDxe/SmbiosGen.h | 1 + DuetPkg/SmbiosGenDxe/SmbiosGen.inf |

[edk2] [Patch 1/3] DuetPkg: Fix GCC error to avoid the duplicated global variables in EfiLdr

2015-12-16 Thread Liming Gao
Move the global variable definitions into source code instead of head filer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- DuetPkg/EfiLdr/EfiLdr.h| 3 --- DuetPkg/EfiLdr/EfiLoader.c | 3 +++ 2 files changed, 3 insertions

[edk2] [Patch 0/3] Fix GCC error to avoid the duplicated global variables

2015-12-16 Thread Liming Gao
GCC adds the compiler options to detect the duplicated global variables. Update the below modules to avoid it and pass GCC build. Liming Gao (3): DuetPkg: Fix GCC error to avoid the duplicated global variables in EfiLdr DuetPkg: Fix GCC error to avoid the duplicated global variable

[edk2] [Patch] MdeModulePkg: Update print error level for RuntimeDriver alignment check

2015-12-15 Thread Liming Gao
-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c b/MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c index 3486737..adfc91c

[edk2] [Patch 4/4] SourceLevelDebugPkg: Correct gEfiDebugAgentGuid usage in DxeDebugAgentLib

2015-12-14 Thread Liming Gao
DxeDebugAgentLib instance produces gEfiDebugAgentGuid system table. Its usage should be PRODUCES instead of SOMETIMES_PRODUCES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentL

[edk2] [Patch 1/4] SecurityPkg: Correct Pcd Usage PcdTcg2HashAlgorithmBitmap

2015-12-14 Thread Liming Gao
HashLibBaseCryptoRouter sets PcdTcg2HashAlgorithmBitmap. Its usage should be both SOMETIMES_CONSUMES and SOMETIMES_PRODUCES. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/HashLibBaseCrypto

[edk2] [Patch 0/4] Correct Pcd/Guid/Protocol Usage in module INF

2015-12-14 Thread Liming Gao
Liming Gao (4): SecurityPkg: Correct Pcd Usage PcdTcg2HashAlgorithmBitmap SecurityPkg: Correct Pcd Usage PcdTpm2HashMask in Tcg2Pei MdeModulePkg: Correct usage gEfiIp4Config2ProtocolGuid in Ip4Dxe SourceLevelDebugPkg: Correct gEfiDebugAgentGuid usage in DxeDebugAgentLib MdeModulePkg

[edk2] [Patch 0/6] Fix VS2015 warnings in EDKII packages.

2015-12-02 Thread Liming Gao
AtChipsetPkg, PerformancePkg, IntelFrameworkModulePkg, IntelFrameworkPkg, CryptoPkg, IntelFspPkg, IntelFspWrapperPkg and FatPkg can pass VS2015. Ovmf can pass VS2015. Nt32 is failure in VS2015, still under investigation. Other package owners can choose to fix or disable them in your own packages. Liming Gao (

[edk2] [Patch 1/6] MdePkg: Disable VS2015 warning C4701 & C4703

2015-12-02 Thread Liming Gao
C4701 & C4703 may cause false positive issues. They have been disabled in VS2013. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Include/Ia32/ProcessorBind.h | 6 +++--- MdePkg/Include/X64/ProcessorBind.h | 6 +++--

[edk2] [Patch 3/6] MdeModulePkg: Fix VS2015 warning C4456 in RegularExpressionDxe

2015-12-02 Thread Liming Gao
warning C4456: declaration of 'q' hides previous local declaration. Update code to use the different local variable name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Cc: El-Haj-Mahmoud Samer <samer.el-haj-mahm..

[edk2] [Patch 2/6] MdeModulePkg: Fix VS2015 warning C4459 in DriverSampleDxe

2015-12-02 Thread Liming Gao
warning C4459: declaration of 'PrivateData' hides global declaration. Update DriverSampleDxe to rename global variable name to be different. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Universal/DriverSampleDxe/DriverSa

[edk2] [Patch 4/6] MdeModulePkg: Fix VS2015 warning C4311 & C4312 in RegularExpressionDxe

2015-12-02 Thread Liming Gao
warning C4311: pointer truncation from 'void *' to 'unsigned long' warning C4312: conversion from 'unsigned long' to 'void *' of greater size Update code to convert type to UINTN first, then convert it to other type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming

[edk2] [Patch 6/6] OvmfPkg: Fix VS2015 warning C4459 in XenBusDxe

2015-12-02 Thread Liming Gao
warning C4459: declaration of 'xs' hides global declaration. Update code to rename local variable xs to xsp to be different. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Cc: Justen Jordan <jordan.l.jus...@intel.com>

[edk2] [PATCH v2] MdePkg: Add more DataBits support to Port80 output

2015-11-09 Thread Liming Gao
The BasePostCodeLibPort80 instance just prints UINT8 to IoPort 80. Some boards may support 16bit or 32bit. To support them, new PCD PcdPort80DataWidth is introduced to specify the width of data bits to Port80. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao

[edk2] [Patch] BaseTools: Print PACKAGES_PATH build environment if it is set.

2015-11-03 Thread Liming Gao
Print the optional build environment PACKAGES_PATH and EDK_TOOLS_BIN. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/Python/build/build.py | 4 1 file changed, 4 insertions(+) diff --git a/BaseTools/

[edk2] [Patch] BaseTools: Don't require ECP pkg in WORKSPACE when PACKAGES_PATH is set

2015-11-03 Thread Liming Gao
When PACKAGES_PATH is set, ECP pkg may be in another directory, not exist in WORKSPACE. So, keep this check in single WORKSPACE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/Python/build/build.p

[edk2] [Patch] MdePkg: Add more DataBits support to Port80 output

2015-11-02 Thread Liming Gao
The BasePostCodeLibPort80 instance just prints UINT8 to IoPort 80. Some boards may support 16bit or 32bit. To support them, new PCD PcdPort80DataWidth is introduced to specify the width of data bits to Port80. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao

[edk2] [Patch] BaseTools: Fix the issue to support windows root directory

2015-10-14 Thread Liming Gao
Use os.path.relpath to get the relative directory instead of directly trim it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/Python/Common/MultipleWorkspace.py | 2 +- 1 file changed, 1 insertion(+), 1 de

[edk2] [Patch] BaseTools: Add MultipleWorkspace.py in the common dependency.

2015-10-14 Thread Liming Gao
Add new added MultipleWorkspace.py in the common dependency to freeze python tools for Windows. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/Python/Makefile | 1 + 1 file changed, 1 insertion(+) diff

[edk2] [Patch] edk2: Change BaseTools owner in Maintainers.txt

2015-09-11 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- Maintainers.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Maintainers.txt b/Maintainers.txt index 1a07314..acb717e 100644 --- a/Maintainers.txt

[edk2] [Patch 2/6] BaseTools: Update UPT tool to support multiple workspaces

2015-09-10 Thread Liming Gao
Update UPT to refer MultipleWorkspace class to convert the file path from WORKSPACE and PACKAGES_PATH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hesheng Chen <hesheng.c...@intel.com> Reviewed-by: Liming Gao <liming@intel.com> --- .../Pyt

[edk2] [Patch 5/6] BaseTools: Update Edk2Setup.bat to support multiple workspaces

2015-09-10 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Reviewed-by: Wu Hao A <hao.a...@intel.com> --- BaseTools/Scripts/SetVisualStudio.bat | 2 +- BaseTools/Scripts/ShowEnvironment.bat | 2 ++ Edk2Setup.bat

[edk2] [Patch 0/6] Add multiple workspaces feature

2015-09-10 Thread Liming Gao
. This feature still supports current working models. If you have the different tree layout, you can configure PACKAGES_PATH to enable this feature. Liming Gao (6): BaseTools: Update Build tool to support multiple workspaces BaseTools: Update UPT tool to support multiple workspaces BaseTools

[edk2] [Patch 4/6] BaseTools: Update edksetup.bat to support multiple workspaces

2015-09-10 Thread Liming Gao
Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Reviewed-by: Wu Hao A <hao.a...@intel.com> --- BaseTools/toolsetup.bat | 150 +++- edksetup.bat| 30 -- 2 files changed, 122 insertions(+), 58 deleti

[edk2] [Patch] CryptoPkg: Fix one wrong parameter for weak key checking

2015-09-02 Thread Liming Gao
Fix one wrong offset which is passed into DES weak key checking in TdesInit(). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long CC: Jiaxin Wu --- CryptoPkg/Library/BaseCryptLib/Cipher/CryptTdes.c | 6 +++--- 1 file

[edk2] [PATCH v2] MdeModulePkg: Fix the issue in DxeCore CoreInitializeMemoryServices()

2015-09-01 Thread Liming Gao
sure the free memory range not include the memory allocation hob. CC: Benjamin Herrenschmidt <b...@kernel.crashing.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Core/Dxe/Gc

[edk2] [Patch 0/3] Add the missing module UNI files

2015-08-27 Thread Liming Gao
Liming Gao (3): MdePkg: Add the missing module UNI files MdeModulePkg: Add the missing module UNI files. IntelFrameworkModulePkg: Ad the missing module UNI files. .../LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf| 1 + .../LegacyBootMaintUiLib/LegacyBootMaintUiLib.uni

[edk2] [Patch 3/3] IntelFrameworkModulePkg: Ad the missing module UNI files.

2015-08-27 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com --- .../LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf| 1 + .../LegacyBootMaintUiLib/LegacyBootMaintUiLib.uni| Bin 0 - 1800 bytes .../LegacyBootManagerLib

[edk2] [Patch 2/3] MdeModulePkg: Add the missing module UNI files.

2015-08-27 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com --- MdeModulePkg/Application/UiApp/UiApp.inf | 6 +- MdeModulePkg/Application/UiApp/UiApp.uni | Bin 0 - 1616 bytes MdeModulePkg/Application/UiApp/UiAppExtra.uni

[edk2] [Patch 1/3] MdePkg: Add the missing module UNI files

2015-08-27 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com --- MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf | 1 + MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.uni | Bin 0 - 1942 bytes 2 files changed, 1 insertion(+) create mode

[edk2] [Patch] BaseTools: Fix the missing depex file in GenFds

2015-08-24 Thread Liming Gao
If FDF FfsRule describes |.depex for depex file on source build, it may be missed in the generated FD image. GenFds tool needs to check the output file list and find the matched one. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com Reviewed

[edk2] [PATCH v2 0/6] Add generic PcdGetSize() API

2015-08-21 Thread Liming Gao
PcdGetValue(), it supports all PCD types and all PCD data types. BaseTools generates PCD size macros in AutoGen code. MdePkg PcdLib adds PcdGetSize() APIs to match those generated macros. Modules use PcdGetSize() API to replace LibPcdGetSize() and LibPcdGetExSize() APIs. Liming Gao (6

[edk2] [PATCH v2 5/6] MdePkg: Add two PcdApi for Patch VOID* PCD set operation.

2015-08-21 Thread Liming Gao
Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com Reviewed-by: Star Zeng star.z...@intel.com --- MdePkg/Include/Library/PcdLib.h| 83 +-- MdePkg/Library/BasePcdLibNull/PcdLib.c | 120 +++-- MdePkg/Library/DxePcdLib/DxePcdLib.c | 119

[edk2] [PATCH v2 3/6] BaseTools: Update SetPcdPtr in AutoGen Code

2015-08-21 Thread Liming Gao
For patchable PCD, map SetPcdPtr() to LibPatchPcdSetPtrAndSize(), then the size of the updated VOID* value can be cached. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com Reviewed-by: Star Zeng star.z...@intel.com --- BaseTools/Source/Python

[edk2] [PATCH v2 2/6] BaseTools: Fix AutoGen issue for Patchable VOID* PCD.

2015-08-21 Thread Liming Gao
Patchable VOID* PCD set operation should map LibPatchPcdSetPtr() and LibPatchPcdSetPtrS() API. This has been done when PCD is used in driver, but not done when PCD is used in library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com Reviewed

[edk2] [PATCH v2 1/6] BaseTools: Generate macro for the size of PCD value

2015-08-21 Thread Liming Gao
PcdLib introduces new APIs to get the size of PCD value. BaseTools generates those macros in AutoGen code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bob Feng bob.c.f...@intel.com Reviewed-by: Star Zeng star.z...@intel.com --- BaseTools/Source/Python/AutoGen/GenC.py |

[edk2] [PATCH v2 4/6] MdePkg: Add four PcdGetSize() API in PcdLib

2015-08-21 Thread Liming Gao
Add below four PcdGetSize() API in PcdLib header file. They can be used to get the size of PCD value. FixedPcdGetSize() PatchPcdGetSize() PcdGetSize() PcdGetExSize() Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com Reviewed-by: Star Zeng

[edk2] [PATCH v2 6/6] SecurityPkg: Use PcdGetSize to get the size of VOID* PCD value.

2015-08-21 Thread Liming Gao
PcdLib introduces generic API to get the size of VOID* PCD value. Update Pei and Dxe RsaGuidedLib to use generic PCD API instead of GetEx API. This change can remove PCD type limitation in these two libraries. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao

[edk2] [Patch] BaseTools: Add NULL pointer check in AutoGen code

2015-08-19 Thread Liming Gao
For DynamicEx PCD, if NULL pointer is specified as token space GUID, it will directly be used to compare GUID value in AutoGen code. To avoid access NULL pointer, NULL pointer will be checked first. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming

[edk2] [Patch] MdePkg: Update DEC and DSC version from 1.05 to 1.06

2015-08-19 Thread Liming Gao
UEFI2.5 and PI1.4 have been added in MdePkg. Update DEC and DSC version to reflect those changes in MdePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com --- MdePkg/MdePkg.dec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[edk2] [PATCH v2] MdePkg: Update DEC and DSC version from 1.05 to 1.06

2015-08-19 Thread Liming Gao
UEFI2.5 and PI1.4 have been added in MdePkg. Update DEC and DSC version to reflect those changes in MdePkg. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com --- MdePkg/MdePkg.dec | 2 +- MdePkg/MdePkg.dsc | 2 +- 2 files changed, 2 insertions

[edk2] [Patch 5/6] MdePkg: Add two PcdApi for Patch VOID* PCD set operation.

2015-08-18 Thread Liming Gao
Two new APIs LibPatchPcdSetPtrAndSize() and LibPatchPcdSetPtrAndSizeS() are added to catch the size of the updated VOID* PCD value buffer, then PcdGetSize() API can return the actual size. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com

[edk2] [Patch 3/6] BaseTools: Update SetPcdPtr in AutoGen Code

2015-08-18 Thread Liming Gao
For patchable PCD, map SetPcdPtr() to LibPatchPcdSetPtrAndSize(), then the size of the updated VOID* value can be cached. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com --- BaseTools/Source/Python/AutoGen/GenC.py | 8 1 file

[edk2] [Patch 0/6] Add generic PcdGetSize() API

2015-08-18 Thread Liming Gao
PcdGetSize() APIs to match those generated macros. Modules use PcdGetSize() API to replace LibPcdGetSize() and LibPcdGetExSize() APIs. Liming Gao (6): BaseTools: Generate macro for the size of PCD value BaseTools: Fix AutoGen issue for Patchable VOID* PCD. BaseTools: Update SetPcdPtr in AutoGen

[edk2] [Patch 1/6] BaseTools: Generate macro for the size of PCD value

2015-08-18 Thread Liming Gao
PcdLib introduces new APIs to get the size of PCD value. BaseTools generates those macros in AutoGen code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bob Feng bob.c.f...@intel.com --- BaseTools/Source/Python/AutoGen/GenC.py | 70 ++--- 1

[edk2] [Patch 2/6] BaseTools: Fix AutoGen issue for Patchable VOID* PCD.

2015-08-18 Thread Liming Gao
Patchable VOID* PCD set operation should map LibPatchPcdSetPtr() and LibPatchPcdSetPtrS() API. This has been done when PCD is used in driver, but not done when PCD is used in library. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com

[edk2] [Patch] BaseTools: Add /arch:IA32 option in VS2012 and VS2013

2015-08-13 Thread Liming Gao
-by: Liming Gao liming@intel.com CC: Michael Kinney michael.d.kin...@intel.com --- BaseTools/Conf/tools_def.template | 48 +++ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template

[edk2] [PATCH v2] MdeModulePkg PeiCore: Add PCD to specify PEIM Shadow

2015-07-30 Thread Liming Gao
. To support such usage, new PCD PcdShadowPeimOnBoot is introduced to specify whether loads PEIM in memory by default. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com --- MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 21

[edk2] [Patch] MdeModulePkg PeiCore: Add PCD to specify PEIM Shadow

2015-07-27 Thread Liming Gao
: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao liming@intel.com --- MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 21 ++--- MdeModulePkg/Core/Pei/Image/Image.c | 25 + MdeModulePkg/Core/Pei/PeiMain.inf | 1

<    1   2   3   4   5