[edk2] [Patch] BaseTools: Append FILE_GUID to basename if basename is not unique.

2015-06-07 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/AutoGen.py| 3 ++- BaseTools/Source/Python/Common/Misc.py| 27 +++ BaseTools/Source/Python/GenFds/FfsInfStatement.py | 5 - 3 files

[edk2] [Patch] BaseTools: Added extern declaration for protocols/PPI/GUID in AutoGhen.h

2015-06-08 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/GenC.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/BaseTools/Source/Python/AutoGen/GenC.py b/BaseTools/Source/Python/AutoGen/GenC.py index 9bdb036..e73ba79 100644

[edk2] [Patch] BaseTools: Append FILE_GUID to BaseName.

2015-06-08 Thread Yingke Liu
This patch makes sure the EFI file in $(BIN_DIR) is unique. If there are modules with same BaseName, the FILE_GUID is appended. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Conf/build_rule.template | 14 -- BaseTools/Source

[edk2] [Patch] BaseTools: Support build options for specific module type in DSC.

2015-06-09 Thread Yingke Liu
This patch extended BuildOptions section in DSC to support [BuildOptions.$(arch).CodeBase.$(MODULE_TYPE)] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/AutoGen.py | 11 --- BaseTools/Source/Python

[edk2] [Patch] BaseTools: Generate a binary file and list it in Binary section of As Built INF.

2015-06-10 Thread Yingke Liu
This binary file contains offset of VFR and UNI data. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/AutoGen.py | 74 ++ 1 file changed, 74 insertions(+) diff --git a/BaseTools/Source/Python

[edk2] [Patch] BaseTools: Fixed an error reported during generating report.

2015-06-10 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/build/BuildReport.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build

[edk2] [Patch] BaseTools: Generate a FV EXT entry for FV UI name.

2015-06-11 Thread Yingke Liu
This patch also removed a warning message. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/AutoGen.py | 1 - BaseTools/Source/Python/GenFds/Fv.py | 21 + 2 files changed, 21 insertions(+), 1

[edk2] [Patch] BaseTools: Supported FMP capsule image.

2015-06-15 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/Common/Misc.py | 21 .../Source/Python/CommonDataClass/FdfClass.py | 1 + BaseTools/Source/Python/GenFds/Capsule.py | 89 +++ BaseTools

[edk2] [Patch] BaseTools: Fixed a bug to generate correct path of PACKAGE_RELATIVE_PATH

2015-06-15 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/GenMake.py | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py b/BaseTools/Source/Python/AutoGen

[edk2] [Patch] BaseTools: Fixed Build Option override bugs.

2015-06-16 Thread Yingke Liu
if '==' is specified, it overrides all options that specified by '='; if no '==' is specified, all options that match current build criteria are combined. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/So

[edk2] [Patch] BaseTools: Build report should not be generated if build failed.

2015-06-18 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/build/build.py | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index 9b48ac0

[edk2] [Patch] BaseTools: Fix a bug that UNI file can't have comment after #include "file.uni"

2015-06-19 Thread Yingke Liu
The include regular expression cannot match spaces before or after this statement. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/UniClassObject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[edk2] [Patch] BaseTools: Fixed a bug that Build Report always uses DEC default value for VPD PCD.

2015-06-19 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/Workspace/WorkspaceDatabase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py b/BaseTools/Source/Python

[edk2] [Patch] BaseTools: The token values cannot be numeric same with different PCDs.

2015-06-22 Thread Yingke Liu
Current check only compared string format of toke value. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/AutoGen.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen

[edk2] [Patch] BaseTools: Update IASL download link and remove specific version info.

2015-06-22 Thread Yingke Liu
The version of IASL compiler in the tools_def.template file no longer exists on the acpica.org site. Update the tools_def.template file to remove the specific version info from the tools_def.template file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu

[edk2] [Patch 0/3] Supported 4K aligned ELF to 4K aligned PE

2015-06-23 Thread Yingke Liu
aligned; For others, updated link option to merge .data and .rdata Yingke Liu (3): BaseTools: Updated tool_def to support 4K alignment. BaseTools: Update GenFw to support 4K alignment. BaseTools: Added GCC ld script to support 4K alignment. BaseTools/Conf/tools_def.template| 128

[edk2] [Patch 1/3] BaseTools: Updated tool_def to support 4K alignment.

2015-06-23 Thread Yingke Liu
Replace '/MERGE:.data=.text /MERGE:.rdata=.text' with /MERGE:.rdata=.data Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Conf/tools_def.template | 128 +++--- 1 file changed, 64 insertions(+), 64 deletion

[edk2] [Patch 2/3] BaseTools: Update GenFw to support 4K alignment.

2015-06-23 Thread Yingke Liu
If current ELF file is 4K aligned, the converted PE should also be 4K aligned. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/C/GenFw/Elf32Convert.c | 8 ++-- BaseTools/Source/C/GenFw/Elf64Convert.c | 6 +- 2 files changed, 11

[edk2] [Patch 3/3] BaseTools: Added GCC ld script to support 4K alignment.

2015-06-23 Thread Yingke Liu
This script can be used to generate 4K aligned ELF file. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Scripts/gcc-4K-align-ld-script | 44 1 file changed, 44 insertions(+) create mode 100644 BaseTools/Scripts

[edk2] [Patch] BaseTools: Checked return value of malloc for EfiCompress.

2015-06-29 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/C/Common/EfiCompress.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/BaseTools/Source/C/Common/EfiCompress.c b/BaseTools/Source/C/Common/EfiCompress.c index bd86d12..b225fee

[edk2] [Patch] BaseTools: Do not create an empty file if Rsa2048Sha256Sign was failed.

2015-06-29 Thread Yingke Liu
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- .../Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py b

[edk2] [Patch] BaseTools: Fixed BuildOptions bug.

2015-07-01 Thread Yingke Liu
The BuildOptions in an INF should also follow override rule: If '==' is used, all other options with '=' are overridden. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/AutoGen/AutoGen.py | 14 --

[edk2] [Patch] BaseTools: Fixed incorrect alignment bug.

2015-07-14 Thread Yingke Liu
The alignment in rule section is shared by modules that use this rule to generate FFS, it should not be modified by certain module. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu --- BaseTools/Source/Python/GenFds/EfiSection.py | 7 --- 1 file changed, 4