[edk2] [PATCH v2] MdePkg Base.h: Update field name in VERIFY_UINTXX_ENUM_SIZE to follow style

2016-11-13 Thread Liming Gao
In V2, add comments on why uses __ prefix in enum type name. For field name in structure, its first character should be upper case. Cc: Michael Kinney <michael.d.kin...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com>

[edk2] [Patch] MdePkg IndustryStandard: Add DDR3, DDR4 and LPDDR definition per SPD spec

2016-11-11 Thread Liming Gao
https://bugzilla.tianocore.org/show_bug.cgi?id=201 Cc: Giri P Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Include/IndustryStandard/SdramSpd.h | 1682

[edk2] [Patch] MdePkg Base.h: Update field name in VERIFY_UINTXX_ENUM_SIZE to follow style

2016-11-10 Thread Liming Gao
For field name in structure, its first character should be upper case. Cc: Michael Kinney <michael.d.kin...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Include/Base.h | 6 +++--- 1 file changed, 3 inse

[edk2] [Patch] UefiCpuPkg PeiCpuExceptionHandlerLib: Add the missing nasm files in INF

2016-10-30 Thread Liming Gao
All CpuExceptionHandlerLib library instances use nasm source files. Cc: Reviewed-by: Jeff Fan <jeff@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLi

[edk2] [Patch 3/3] IntelFrameworkModulePkg LzmaDecompressLib: Update LZMA to new 16.04 version

2016-10-27 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../LzmaCustomDecompressLib/LZMA-SDK-README.txt| 6 +- .../LzmaArchCustomDecompressLib.inf| 10 +- .../LzmaCustomDecompressLib.inf

[edk2] [Patch 2/3] MdeModulePkg LzmaDecompressLib: Update LZMA to new 16.04 version

2016-10-27 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../LzmaCustomDecompressLib/LZMA-SDK-README.txt| 6 +- .../LzmaArchCustomDecompressLib.inf| 10 +- .../LzmaCustomDecompressLib.inf

[edk2] [Patch 0/3] Update LZMA SDK to new 16.04 version

2016-10-27 Thread Liming Gao
New version LZMA improves the compression performance, and has no change on the compression algorithm. So, the decompression library can work with the old and new LZMA SDK. To be consistent, LZMA tool and library are both updated to new 16.04 version. Liming Gao (3): BaseTools LzmaCompress

[edk2] [Patch] edksetup.bat: make sure BASE_TOOLS_PATH be set correctly

2016-10-25 Thread Liming Gao
Move checkNt32Flag before set BASE_TOOLS_PATH env to make sure it be set Cc: Yonghong Zhu <yonghong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- edksetup.bat | 3 ++- 1 file changed, 2 insertions(+)

[edk2] [Patch] MdePkg ACPI60: Update MADT Revision per ACPI 6.0 Errata A

2016-10-25 Thread Liming Gao
Fix issue: https://bugzilla.tianocore.org/show_bug.cgi?id=94 Cc: Jiewen Yao <jiewen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Include/IndustryStandard/Acpi60.h | 6 +++--- 1 file changed, 3 inse

[edk2] [Patch] BaseTools VS Makefile: Use /MT in replace of /MD to remove specific dll

2016-10-20 Thread Liming Gao
/MD option will introduce the specific version dll dependency. It will cause the compiled C tools not work on some system. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/Makefiles/ms.common | 4 ++-- 1 file c

[edk2] [Patch] MdePkg BaseMemoryLibOptDxe: Add function comment for InternalMemCompareGuid

2016-10-19 Thread Liming Gao
Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Library/BaseMemoryLibOptDxe/Arm/MemLibGuid.c | 13 + 1 file changed, 13 insertions(+) diff --git a/Md

[edk2] [Patch] MdeModulePkg LoadFileOnFv2: Correct the parameter name in function comment

2016-10-19 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv

[edk2] [Patch] MdePkg ACPI51: Update GIC version per ACPI 5.1 Errata B

2016-10-14 Thread Liming Gao
Fix issue: https://bugzilla.tianocore.org/show_bug.cgi?id=95 Cc: Jiewen Yao <jiewen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Include/IndustryStandard/Acpi51.h | 8 1 file changed,

[edk2] [Patch] MdePkg BaseSynchronizationLib: Update InterlockedCompareExchange64.nasm

2016-10-14 Thread Liming Gao
Remove extra qword in nasm code to make it pass build. This file is only built in INTEL ICC compiler. So, there is missing build check for it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../BaseSynchronizationLi

[edk2] [Patch] Nt32Pkg SecMain: Update SecMain.inf to support VS2015x86 X64 Mode

2016-10-12 Thread Liming Gao
--nt32 build -p Nt32Pkg\Nt32Pkg.dsc -a X64 # for 64 build -p Nt32Pkg\Nt32Pkg.dsc -a IA32 # for 32 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Chan <chan...@sina.com> Tested-by: Liming Gao <liming@intel.com> --- Nt32Pkg/Sec/SecMain.inf | 6 +++---

[edk2] [Patch] DuetPkg DxeIpl and EfiLdr: Add the missing EFIAPI for the function

2016-10-10 Thread Liming Gao
The function with the variable parameters should have EFIAPI. Cc: Ruiyu Ni <ruiyu...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- DuetPkg/DxeIpl/Debug.c | 1 + DuetPkg/DxeIpl/Debug.h | 1 + DuetPkg/EfiLdr

[edk2] [Patch] MdeModulePkg RegularExpressionDxe: Add the missing EFIAPI for the function

2016-10-08 Thread Liming Gao
The function with the variable parameters should have EFIAPI. Cc: Feng Tian <feng.t...@intel.com> Cc: Cinnamon Shia <cinnamon.s...@hpe.com> Cc: Cecil Sheng <cecil.sh...@hpe.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <

[edk2] [Patch] BaseTools Build: Fix build break for clean target in Linux

2016-09-29 Thread Liming Gao
From: Hao Wu <hao.a...@intel.com> In Linux, Command needs to be String instead of list when Command run as shell with True. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/Python/build/build.py | 6 ++

[edk2] [Patch 3/4] BaseTools GenVtf: Initialize the return point as NULL

2016-09-29 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/GenVtf/GenVtf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b/BaseTools/Source/C/GenVtf/GenVtf.c index 9a3f508..f

[edk2] [Patch 2/4] BaseTools Makefile: Enable O2 option to replace Od for VS tool chain

2016-09-29 Thread Liming Gao
Enable O2 option to generate fast code for performance improvement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/Makefiles/ms.app| 2 +- BaseTools/Source/C/Makefiles/ms.common | 4 ++-- 2 files chan

[edk2] [Patch 4/4] BaseTools Makefile: Enable Ofast option for GCC tool chain

2016-09-29 Thread Liming Gao
Enable Ofast option to generate fast code for performance improvement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/Makefiles/header.makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[edk2] [Patch 1/4] BaseTools EfiLdrImage: Remove unnecessary exit (0)

2016-09-29 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c b/BaseTools/Source/C/EfiLdrImage/EfiLdrI

[edk2] [Patch 0/4] BaseTools: Enable optimization to generate fast code in C tools

2016-09-29 Thread Liming Gao
0.107s LzmaCompress (VS Od) 3.047s 0.210s LzmaCompress (VS O2) 1.551s 0.126s Liming Gao (4): BaseTools EfiLdrImage: Remove unnecessary exit (0) BaseTools Makefile: Enable O2 option to replace Od for VS tool chain BaseTools GenVtf: Initialize the return

[edk2] [Patch] BaseTools VS Makefile: Don't include ms.common in ms.app

2016-09-29 Thread Liming Gao
ms.common is included by every tool Makefile. it is not necessary to be placed in ms.app again. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/Makefiles/ms.app | 2 -- 1 file changed, 2 deletions(-) diff

[edk2] [Patch] BaseTools Makefile: Missing LFAGS in app.makefile

2016-09-29 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/Makefiles/app.makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/Makefiles/app.makefile b/BaseTools/Source/C/Mak

[edk2] [PATCH v2] MdeModulePkg FormBrowserEx: Change its structure name with EDKII_ prefix

2016-09-22 Thread Liming Gao
EDKII implementation protocol should be with EDKII_ prefix. V2: add gEdkiiFormBrowserExProtocolGuid to align its structure name. Cc: Eric Dong <eric.d...@intel.com> Cc: Feng Tian <feng.t...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming

[edk2] [Patch 0/3] BaseTools: Add build support to generate HII image package

2016-09-20 Thread Liming Gao
on it to generate the binary HII image package. Liming Gao (2): MdePkg UefiHii: Add IMAGE_TOKEN macro to access image resource in C and VFR MdeModulePkg HiiDatabaseDxe: Ignore new EFI_HII_IIBT_IMAGE_PNG type Image Yonghong Zhu (1): BaseTools: support generating image package from BMP/JPEG/PNG

[edk2] [Patch 3/3] BaseTools: support generating image package from BMP/JPEG/PNG files

2016-09-20 Thread Liming Gao
ileName". 2) New IMAGE_TOKEN macro is used to refer to IMAGE_ID. 3) New AutoGen header file $(MODULE_NAME)ImgDefs.h to include the generated ImageId definition. 4) New $(MODULE_NAME)Idf.hpk or $(MODULE_NAME)Images are generated as the output binary HII image package. Cc: Liming Gao <l

[edk2] [Patch 2/3] MdeModulePkg HiiDatabaseDxe: Ignore new EFI_HII_IIBT_IMAGE_PNG type Image

2016-09-20 Thread Liming Gao
HiiImage protocol implementation doesn't support EFI_HII_IIBT_IMAGE_PNG. Cc: Eric Dong <eric.d...@intel.com> Cc: Dandan Bi <dandan...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Univer

[edk2] [Patch 1/3] MdePkg UefiHii: Add IMAGE_TOKEN macro to access image resource in C and VFR

2016-09-20 Thread Liming Gao
Cc: Eric Dong <eric.d...@intel.com> Cc: Dandan Bi <dandan...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Include/Uefi/UefiInternalFormRepresentation.h | 8 +++- 1 file changed, 7 inserti

[edk2] [Patch 2/4] BaseTools: Update python tool to call external tools with shell true mode

2016-09-12 Thread Liming Gao
oCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/Python/Common/VpdInfoFile.py | 7 --- BaseTools/Source/Python/build/build.py| 5 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BaseTools/Source/Python/

[edk2] [Patch 4/4] BaseTools: Update toolsetup.bat to set PYTHONPATH env to run python source

2016-09-12 Thread Liming Gao
d-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/toolsetup.bat | 101 +--- 1 file changed, 44 insertions(+), 57 deletions(-) diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.ba

[edk2] [Patch 1/4] BaseTools: Add Windows batch files to run python tool from Source

2016-09-12 Thread Liming Gao
Add 13 windows batch files for every python tool. Cc: Yonghong Zhu <yonghong@intel.com> Cc: Michael Kinney <michael.d.kin...@intel.com> Cc: Erik Bjorge <erik.c.bjo...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <

[edk2] [Patch 3/4] BaseTools: Update Python Makefile not to depend on PYTHON_FREEZER_PATH

2016-09-12 Thread Liming Gao
If PYTHON_FREEZER_PATH is not set, Python tools will not be freeze. Cc: Yonghong Zhu <yonghong@intel.com> Cc: Michael Kinney <michael.d.kin...@intel.com> Cc: Erik Bjorge <erik.c.bjo...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by:

[edk2] [Patch 0/4] Add support for running python tools from source on Windows

2016-09-12 Thread Liming Gao
When Python tool exe files don't exist, toolsetup.bat will configure PYTHONPATH to python source code, and set BaseTools\BinWrappers\WindowsLike into system PATH directory. Then, windows batch files will be used to run python tools from source files. Liming Gao (4): BaseTools: Add Windows

[edk2] [Patch 4/4] BaseTools VfrCompile Pccts: Update GCC Flags to the specific one with BUILD_ prefix

2016-09-05 Thread Liming Gao
This change is also applied to VfrCompile Pccts antlr and dlg tool. In V2, add the missing C rules. Cc: Giri P Mudusuru <giri.p.mudus...@intel.com> Cc: Yonghong Zhu <yonghong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <limin

[edk2] [Patch 3/4] BaseTools VfrCompile GNU makefile: Replace CXX with BUILD_CXX

2016-09-05 Thread Liming Gao
The change is missing in VfrComile GNUmakefile. Cc: Giri P Mudusuru <giri.p.mudus...@intel.com> Cc: Yonghong Zhu <yonghong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/VfrCompil

[edk2] [Patch 1/4] BaseTools GNU makefile: Add BUILD_CXXFLAGS to align make built-in rule

2016-09-05 Thread Liming Gao
t 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/Makefiles/footer.makefile | 2 +- BaseTools/Source/C/Makefiles/header.makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/C/Makefiles/footer.makefile b/BaseTools/

[edk2] [Patch 0/4] BaseTools GNU makefile: Update GCC Flags to the specific one with BUILD_ prefix

2016-09-05 Thread Liming Gao
The following 4 patches clean up the remaining issues in GNU makefile. With those changes, all GNU makefiles have been updated. Liming Gao (4): BaseTools GNU makefile: Add BUILD_CXXFLAGS to align make built-in rule BaseTools GNU makefile: remove unused .S rule BaseTools VfrCompile GNU

[edk2] [PATCH v2] MdeModulePkg UefiBootManagerLib: Ignore BootManagerMenu from LoadFile

2016-09-01 Thread Liming Gao
BootManagerMenu boot option is handled by EfiBootManagerGetBootManagerMenu. Don't need to handle it again when parse LoadFile protocol. In V2, use "BootManagerMenu" instead of "BootMenuApp". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao &

[edk2] [PATCH v2] MdeModulePkg UefiBootManagerLib: Rename BootMenuApp to BootManagerMenu

2016-09-01 Thread Liming Gao
Rename local function name BootMenuApp to BootManagerMenu to align to other public function name. In V2, use "BootManagerMenu" instead of "BootMenuApp". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Re

[edk2] [Patch] MdeModulePkg UefiBootManagerLib: Rename BootMenuApp to BootManagerMenuApp

2016-08-31 Thread Liming Gao
Rename local function name BootMenuApp to BootManagerMenuApp to align to other public function name. Cc: Ruiyu Ni <ruiyu...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Library/UefiBootManager

[edk2] [Patch] MdeModulePkg UefiBootManagerLib: Ignore BootManagerMenuApp from LoadFile

2016-08-31 Thread Liming Gao
BootManagerMenuApp boot option is handled by EfiBootManagerGetBootManagerMenu. Don't need to handle it again when parse LoadFile protocol. Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Eric Dong <eric.d...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by

[edk2] [Patch] BaseTools GnuMakefile: Update GCC Flags to the specific one with BUILD_ prefix

2016-08-22 Thread Liming Gao
To avoid the conflict with the default GCC flag name, BUILD_ prefix is added. Cc: Giri P Mudusuru <giri.p.mudus...@intel.com> Cc: Yonghong Zhu <yonghong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> ---

[edk2] [Patch] BaseTools GNU Makefile: Add the missing rules for cpp source file

2016-08-22 Thread Liming Gao
Cc: Giri P Mudusuru <giri.p.mudus...@intel.com> Cc: Yonghong Zhu <yonghong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/Makefiles/footer.makefile | 5 - 1 file changed,

[edk2] [Patch] BaseTools PeCoffLib: Fix the issue to get RelocationsStripped from TE image

2016-08-21 Thread Liming Gao
. But, it is missing in BaseTools BasePeCoffLib. Cc: Ard Biesheuvel <ard.biesheu...@linaro.org> Cc: Yonghong Zhu <yonghong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Source/C/Common/BasePeCoff.c | 4 ++

[edk2] [Patch] CryptoPkg IntrinsicLib: Add the missing nasm source file

2016-08-10 Thread Liming Gao
Add two name files IntrinsicLib Ia32 MathLShiftS64.nasm and MathRShiftU64.nasm Cc: Qin Long <qin.l...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/IntrinsicLib/Ia32/MathLShiftS64

[edk2] [Patch] MdeModulePkg LoadFileOnFv2: Fix the potential NULL pointer access

2016-08-01 Thread Liming Gao
Check NULL pointer before access it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MdeModulePkg/Universal/LoadFil

[edk2] [Patch] MdeModulePkg LoadFileOnFv2: Correct copy right format

2016-08-01 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv

[edk2] [Patch 1/3] BaseTools: Correct ReadMe.txt file with CRLF line ending

2016-07-28 Thread Liming Gao
Cc: Yonghong Zhu <yonghong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/ReadMe.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BaseTools/ReadMe.txt b/BaseTools/Read

[edk2] [Patch 0/3] Correct Source file with CRLF line ending

2016-07-28 Thread Liming Gao
edk2 project source files are CRLF line ending. BaseTools\Scripts\PatchCheck.py script can detect Line ending issue in patch. Liming Gao (3): BaseTools: Correct ReadMe.txt file with CRLF line ending MdePkg PeiDxePostCodeLibReportStatusCode: Correct files with CRLF line ending ShellPkg

[edk2] [Patch 3/3] ShellPkg: Correct files with CRLF line ending

2016-07-28 Thread Liming Gao
Cc: Ruiyu Ni <ruiyu...@intel.com> Cc: Jaben Carsey <jaben.car...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../UefiHandleParsingLib/UefiHandleParsingLib.h| 6 ++-- .../UefiHandleParsingLib/UefiHa

[edk2] [Patch 2/3] MdePkg PeiDxePostCodeLibReportStatusCode: Correct files with CRLF line ending

2016-07-28 Thread Liming Gao
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../PeiDxePostCodeLibReportStatusCode.inf | 4 ++-- .../PeiDxePostCodeLibReportStatusCode.uni | 4 ++-- 2 files chan

[edk2] [Patch] EdkCompatibilityPkg: Fix GCC build failure

2016-07-28 Thread Liming Gao
Edk2 enables Os option and ms_va_list in GCC tool chain. This change makes VA_LIST is not pointer, and cause GCC failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../EdkIIGlueLib/Library/DxeReportStatusC

[edk2] [Patch 2/8] MdeModulePkg UefiBootManagerLib: Support LoadFile Protocol based on FV

2016-07-25 Thread Liming Gao
New LoadFileOnFv2 driver will install LoadFile protocol based on FV file. Update UefiBootManagerLib to find BootMenuApp with LoadFile protocol. Cc: Ruiyu Ni <ruiyu...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@

[edk2] [Patch 5/8] MdeModulePkg LoadFileOnFv2: Add new LoadFileOnFv2 driver

2016-07-25 Thread Liming Gao
handle Shell application. Cc: Ruiyu Ni <ruiyu...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Universal/LoadFileOnFv2/LoadFileOnFv2.c| 421 + .../Universal/LoadFileOnFv2/LoadF

[edk2] [Patch 3/8] MdeModulePkg UefiBootManagerLib: Update LoadFile boot description

2016-07-25 Thread Liming Gao
Update boot description to support LoadFile protocol based on FV file. Cc: Ruiyu Ni <ruiyu...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/UefiBootManagerLib/BmBootDescription.c | 47 +

[edk2] [Patch 6/8] MdeModulePkg: Add new LoadFileOnFv2 in Package DSC for Build

2016-07-25 Thread Liming Gao
Cc: Ruiyu Ni <ruiyu...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/MdeModulePkg.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModuleP

[edk2] [Patch 4/8] MdeModulePkg UefiBootManagerLib: Enhance EfiBootManagerFindLoadOption

2016-07-25 Thread Liming Gao
-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/UefiBootManagerLib/BmLoadOption.c | 44 -- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmLoa

[edk2] [Patch 1/8] MdeModulePkg UefiBootManagerLib: Add BmIsBootMenuAppFilePath internal API

2016-07-25 Thread Liming Gao
This function abstracts the common logic to find BootMenuApp file. Cc: Ruiyu Ni <ruiyu...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 49 +++-

[edk2] [Patch] BaseTools PatchCheck.py: Add line number in the print error message

2016-07-21 Thread Liming Gao
PatchCheck script prints File and Line information in error message. This patch adds line number in the error message to help detect the issue. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- BaseTools/Scripts/PatchCheck.p

[edk2] [Patch 3/3] IntelFsp2Pkg: Add missing modules in Package DSC

2016-07-14 Thread Liming Gao
Package DSC is used to verify the module source build. Cc: Jiewen Yao <jiewen@intel.com> Cc: Giri Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- IntelFsp2Pkg/IntelFsp2Pkg.

[edk2] [Patch 2/3] IntelFsp2WrapperPkg: Add missing modules in Package DSC

2016-07-14 Thread Liming Gao
Package DSC is used to verify the module source build. Cc: Jiewen Yao <jiewen@intel.com> Cc: Giri Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- IntelFsp2WrapperPkg/IntelFsp2

[edk2] [Patch 0/3] IntelFsp2Pkg IntelFsp2WrapperPkg: Add the missing modules in DSC

2016-07-14 Thread Liming Gao
Package DSC is used to verify the module source build. Liming Gao (3): IntelFsp2WrapperPkg SecFspWrapperPlatformSecLibSample:Update code to pass build IntelFsp2WrapperPkg: Add missing modules in Package DSC IntelFsp2Pkg: Add missing modules in Package DSC IntelFsp2Pkg/IntelFsp2Pkg.dsc

[edk2] (no subject)

2016-07-14 Thread Liming Gao
Package DSC is used to verify the module source build. Liming Gao (3): IntelFsp2WrapperPkg SecFspWrapperPlatformSecLibSample:Update code to pass build IntelFsp2WrapperPkg: Add missing modules in Package DSC IntelFsp2Pkg: Add missing modules in Package DSC IntelFsp2Pkg/IntelFsp2Pkg.dsc

[edk2] [Patch 1/3] IntelFsp2WrapperPkg SecFspWrapperPlatformSecLibSample:Update code to pass build

2016-07-14 Thread Liming Gao
1. Update its library class to PlatformSecLib 2. Update source code to refer to the matched header file Cc: Jiewen Yao <jiewen@intel.com> Cc: Giri Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <limin

[edk2] [Patch] MdePkg BaseLib: Add the missing nasm source file InternalSwitchStack.nasm

2016-07-14 Thread Liming Gao
BaseLib Ia32 InternalSwitchStack.S has no matched InternalSwitchStack.nasm. Use ObjDump to verify the output object files be same. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- MdePkg/Library/BaseLib/BaseLib.inf

[edk2] [Patch] IntelFsp2WrapperPkg: Remove unused header files from Fspm and Fsps WrapperPeim

2016-07-13 Thread Liming Gao
PlatformSecLib.h is not used and removed. Cc: Giri P Mudusuru <giri.p.mudus...@intel.com> Cc: Jiewen Yao <jiewen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- IntelFsp2WrapperPkg/FspmWrapperPeim/Fsp

[edk2] [PATCH v2 1/5] SecurityPkg SecureBootConfigDxe: Add check for the external PE/COFF image.

2016-07-13 Thread Liming Gao
Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image. In V2, add specific ImageRead() to make sure the PE/COFF image content read is within the image buffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Re

[edk2] [PATCH v2 0/5] SecurityPkg: Add check for the external PE/COFF image

2016-07-13 Thread Liming Gao
ImageRead() to make sure the PE/COFF image content read is within the image buffer. Liming Gao (5): SecurityPkg SecureBootConfigDxe: Add check for the external PE/COFF image. SecurityPkg TrEEDxe: Add check for the PE/COFF image. SecurityPkg Tcg2Dxe: Add check for the PE/COFF image

[edk2] [PATCH v2 5/5] SecurityPkg DxeTpmMeasureBootLib: Add comments in TcgMeasurePeImage()

2016-07-13 Thread Liming Gao
The input PeImage in TcgMeasurePeImage() has been checked. Cc: Jiewen Yao <jiewen@intel.com> Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- SecurityPkg/Library/Dx

[edk2] [PATCH v2 2/5] SecurityPkg TrEEDxe: Add check for the PE/COFF image.

2016-07-13 Thread Liming Gao
Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image. In V2, add specific ImageRead() to make sure the PE/COFF image content read is within the image buffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Re

[edk2] [PATCH v2 4/5] SecurityPkg DxeImageVerificationLib: Add comments in HashPeImage()

2016-07-13 Thread Liming Gao
The input PeImage in HashPeImage() has been checked. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Reviewed-by: Jiewen Yao <jiewen@intel.com> Reviewed-by: Chao Zhang <chao.b.zh...@intel.com> --- .../Library/DxeIm

[edk2] [PATCH v2 3/5] SecurityPkg Tcg2Dxe: Add check for the PE/COFF image

2016-07-13 Thread Liming Gao
Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image. In V2, add specific ImageRead() to make sure the PE/COFF image content read is within the image buffer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Re

[edk2] [Patch] SecurityPkg DxeTpmMeasureBootLib: Add comments in TcgMeasurePeImage()

2016-07-12 Thread Liming Gao
The input PeImage in TcgMeasurePeImage() has been checked. Cc: Jiewen Yao <jiewen@intel.com> Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- SecurityPkg/Library/Dx

[edk2] [Patch 0/4] SecurityPkg: Add check for the external PE/COFF image

2016-07-12 Thread Liming Gao
External PE/COFF image may not be valid and cause memory corruption. These patches uses PeCoffLib PeCoffLoaderGetImageInfo() to check the PE format. If this API has been used to check PE format, the addtional comments will be added to describe PE image has been checked. Liming Gao (4

[edk2] [Patch 3/4] SecurityPkg Tcg2Dxe: Add check for the PE/COFF image

2016-07-12 Thread Liming Gao
Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image. Cc: Jiewen Yao <jiewen@intel.com> Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- Secur

[edk2] [Patch 1/4] SecurityPkg SecureBootConfigDxe: Add check for the external PE/COFF image.

2016-07-12 Thread Liming Gao
Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image. Cc: Jiewen Yao <jiewen@intel.com> Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- SecurityP

[edk2] [Patch 4/4] SecurityPkg DxeImageVerificationLib: Add comments in HashPeImage()

2016-07-12 Thread Liming Gao
The input PeImage in HashPeImage() has been checked. Cc: Jiewen Yao <jiewen@intel.com> Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Library/DxeIm

[edk2] [Patch 2/4] SecurityPkg TrEEDxe: Add check for the PE/COFF image.

2016-07-12 Thread Liming Gao
Use BasePeCoffLib PeCoffLoaderGetImageInfo() to check the PE/COFF image. Cc: Jiewen Yao <jiewen@intel.com> Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- Secur

[edk2] [Patch 1/2] UefiCpuPkg CpuIo2Dxe: Update INF to refer to NASM source file

2016-07-10 Thread Liming Gao
Cc: Jeff Fan <jeff@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/UefiCpuPkg/CpuIo2Dxe/CpuI

[edk2] [Patch 0/2] UefiCpuPkg Update INF to refer to NASM source file

2016-07-10 Thread Liming Gao
NASM is used as the default assembly source file. Liming Gao (2): UefiCpuPkg CpuIo2Dxe: Update INF to refer to NASM source file UefiCpuPkg CpuMpPei: Update INF to refer to NASM source file UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf | 12 +--- UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 10

[edk2] [Patch 2/2] UefiCpuPkg CpuMpPei: Update INF to refer to NASM source file

2016-07-10 Thread Liming Gao
Cc: Jeff Fan <jeff@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/UefiCpuPkg/CpuMpPei/Cp

[edk2] [Patch] UefiCpuPkg SecCore: Update SecCore inf to refer to nasmb source

2016-07-10 Thread Liming Gao
Cc: Jeff Fan <jeff@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- UefiCpuPkg/SecCore/SecCore.inf | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/UefiCpuPkg/SecCore/SecCore.inf

[edk2] [Patch 4/5] IntelFsp2Pkg BaseFspSwitchStackLib: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao <jiewen@intel.com> Cc: Giri Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../BaseFspSwitchStackLib.inf

[edk2] [Patch 5/5] IntelFsp2Pkg SecFspSecPlatformLibNull: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao <jiewen@intel.com> Cc: Giri Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../SecFspSecPlatformLibNull/Ia32/Flat

[edk2] [Patch 3/5] IntelFsp2Pkg BaseFspDebugLibSerialPort: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao <jiewen@intel.com> Cc: Giri Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../BaseFspDebugLibSerialPort.inf

[edk2] [Patch 2/5] IntelFsp2WrapperPkg SecFspWrapperPlatformSecLibSample: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao <jiewen@intel.com> Cc: Giri Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../Ia32/PeiCoreEntry.S

[edk2] [Patch 0/5] Remove MASM/GAS from new IntelFsp2Pkg/IntelFps2WrapperPkg

2016-07-08 Thread Liming Gao
. Here, I would like to propose to add NASM only for IA32 and X64 assembly files in new modules and packages. If there is the real request for MASM or GAS, we can consider to add them later. Liming Gao (5): IntelFsp2WrapperPkg BaseFspWrapperApiLib: Remove MASM/GAS files IntelFsp2WrapperPkg

[edk2] [Patch 1/5] IntelFsp2WrapperPkg BaseFspWrapperApiLib: Remove MASM/GAS files

2016-07-08 Thread Liming Gao
Keep NASM file only for new added modules. Cc: Jiewen Yao <jiewen@intel.com> Cc: Giri Mudusuru <giri.p.mudus...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../BaseFspWrapperApiLib/BaseFspWrappe

[edk2] [Patch] IntelFrameworkModulePkg StatusCode RuntimeDxe: Remove duplicated structure.

2016-06-29 Thread Liming Gao
RUNTIME_MEMORY_STATUSCODE_HEADER has been moved into MdeModulePkg public header file Include/Guid/MemoryStatusCodeRecord.h. It should be removed from the driver. Cc: Cinnamon Shia <cinnamon.s...@hpe.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao &

[edk2] [Patch 0/2] PcAtChipsetPkg: Update ResetSystemLib with PCDs for Reset Control Register and Value

2016-06-23 Thread Liming Gao
Liming Gao (2): PcAtChipsetPkg: Add two PCDs for Reset Control Register and Value PcAtChipsetPkg: Update ResetSystemLib with PCDs PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.c | 6 +++--- PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.inf | 6 +- PcAtChipsetPkg

[edk2] [Patch 1/2] PcAtChipsetPkg: Add two PCDs for Reset Control Register and Value

2016-06-23 Thread Liming Gao
PcdResetControlRegister for Reset Control Register address. PcdResetControlValueColdReset for Reset Control Register code reset value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- PcAtChipsetPkg/PcAtChipsetPkg.de

[edk2] [Patch 2/2] PcAtChipsetPkg: Update ResetSystemLib with PCDs

2016-06-23 Thread Liming Gao
Update ResetSystemLib with PCDs for Reset Control Register and Value instead of hard code 0x64 and 0xFE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.c

[edk2] [Patch 2/2] SecurityPkg: Update PlatformSecureLibNull with PCD to get physical presence.

2016-06-23 Thread Liming Gao
ser wants this behavior, he can still configure PcdUserPhysicalPresence value to TRUE in the platform DSC file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- .../PlatformSecureLibNull/PlatformSecureLibNul

[edk2] [Patch 1/2] SecurityPkg: Add PcdUserPhysicalPresence to indicate use physical presence.

2016-06-23 Thread Liming Gao
This PCD supports all configuration type. Its default value is FALSE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- SecurityPkg/SecurityPkg.dec | 6 ++ SecurityPkg/SecurityPkg.uni | 9 + 2 files changed, 15 inse

[edk2] [Patch 0/2] Update PlatformSecureLibNull with PCD to get user physical presence

2016-06-23 Thread Liming Gao
Liming Gao (2): SecurityPkg: Add PcdUserPhysicalPresence to indicate use physical presence. SecurityPkg: Update PlatformSecureLibNull with PCD to get physical presence. .../PlatformSecureLibNull/PlatformSecureLibNull.c | 29 -- .../PlatformSecureLibNull.inf

[edk2] [Patch] MdeModulePkg: Remove NORETURN for PeiCore() and DxeMain() function

2016-06-22 Thread Liming Gao
-off-by: Liming Gao <liming@intel.com> Cc: Marvin Haeuser <marvin.haeu...@outlook.com> --- MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 1 - MdeModulePkg/Core/Pei/PeiMain.h | 1 - MdeModulePkg/Core/Pei/PeiMain/PeiMain.c | 1 - 3 files changed, 3 deletions(-) diff --git a/MdeMo

[edk2] [Patch 000/351] Convert EDK II core packages to NASM for IA32/X64

2016-06-15 Thread Liming Gao
These patches are available in https://github.com/lgao4/edk2.git nasm-v1. The nasm-v1 branch sha1 is 42bec457c575b6cb7c9fc1730cbea263ffce7b1c Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> Signed-off-by: Jordan Justen <jor

[edk2] [Patch] BaseTools: Fix GenFds issue to wrongly get file without postfix.

2016-05-20 Thread Liming Gao
GenFds GenSection will search the output file based on the file extension. If the output file has no extension, it should be skip. Cc: Andrew Fish <af...@apple.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming@intel.com> --- Base

<    1   2   3   4   5   >