Feng, Bob C 
							
						 
					 
					
						
						
							
						
						8189be6fd7 
					 
					
						
						
							
							BaseTools: Eot tool Python3 adaption  
						
						... 
						
						
						
						v2:
The python files under CParser4 are generated by antlr4 and for
python3 usage. They have python3 specific syntax, for example
the data type declaration for the arguments of a function. That
is not compitable with python2. this patch is to remove these syntax.
Eot tool Python3 adaption.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-02-01 11:09:25 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						c60377d7f9 
					 
					
						
						
							
							BaseTools: ECC tool Python3 adaption  
						
						... 
						
						
						
						v2:
The python files under CParser4 are generated by antlr4 and for
python3 usage. They have python3 specific syntax, for example
the data type declaration for the arguments of a function. That
is not compitable with python2. this patch is to remove these syntax.
ECC tool Python3 adaption.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-02-01 11:09:25 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						d943b0c339 
					 
					
						
						
							
							BaseTools: Handle the bytes and str difference  
						
						... 
						
						
						
						Deal with bytes and str is different, remove the unicode(),
correct open file parameter.
Using utcfromtimestamp instead of fromtimestamp.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:24 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						f8d11e5a4a 
					 
					
						
						
							
							BaseTools: the list and iterator translation  
						
						... 
						
						
						
						In python3,The keys of the dictionary not a list,It needs to be converted
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:24 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						7fa0e68afd 
					 
					
						
						
							
							BaseTools:ord() don't match in py2 and py3  
						
						... 
						
						
						
						In python2, the FvHeaderBuffer Type is a str
In python3, the FvHeaderBuffer Type is a bytes
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:24 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						4a3773e578 
					 
					
						
						
							
							BaseTools:Fixed Rsa issue and a set define issue.  
						
						... 
						
						
						
						ValueError: non-hexadecimal number found in
 fromhex() arg at position 0
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:23 +08:00 
						 
				 
			
				
					
						
							
							
								Liming Gao 
							
						 
					 
					
						
						
							
						
						7aef7b7cbf 
					 
					
						
						
							
							BaseTools: Update PYTHON env to PYTHON_COMMAND  
						
						... 
						
						
						
						Update PYTHON env to PYTHON_COMMAND.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:23 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						fd2d74007b 
					 
					
						
						
							
							BaseTools:Update build tool to print python version information  
						
						... 
						
						
						
						print PYTHON3_ENABLE and PYTHON_COMMAND in build tool
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:22 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						9c2d68c0a2 
					 
					
						
						
							
							BaseTools: Update windows and linux run scripts file to use Python3  
						
						... 
						
						
						
						Modify windows script, PosixLike script, edksetup.sh, edksetup.bat to
use Python3 based on PYTHON3_ENABLE environment.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:22 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						94c912950c 
					 
					
						
						
							
							BaseTools: Similar to octal data rectification  
						
						... 
						
						
						
						In python3, if Value is octal data, the int(Value, 0) report an error
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:22 +08:00 
						 
				 
			
				
					
						
							
							
								Zhiju Fan 
							
						 
					 
					
						
						
							
						
						30e65c4e19 
					 
					
						
						
							
							BaseTools:There is extra blank line in datalog  
						
						... 
						
						
						
						There should be no blank line across every
line in datalog if open it with Notepad++.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:22 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						b3e94a0617 
					 
					
						
						
							
							BaseTools: change the Division Operator  
						
						... 
						
						
						
						PEP 238 -- Changing the Division Operator
x/y to return a reasonable approximation of the mathematical result
    of the division ("true division")
x//y to return the floor ("floor division")
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:21 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						f935bdd270 
					 
					
						
						
							
							BaseTools:File open failed for VPD MapFile  
						
						... 
						
						
						
						correct open MapFile support python2 and python3
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:21 +08:00 
						 
				 
			
				
					
						
							
							
								Zhiju Fan 
							
						 
					 
					
						
						
							
						
						62cb98c254 
					 
					
						
						
							
							BaseTools:Double carriage return inserted from Trim.py on Python3  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=1379 
Line 208 of BaseTools/Source/Python/Trim/Trim.py uses
'NewLines.append(os.linesep)' to insert a new line into
the list that will be written to the output file.
This causes the '\r\n' inserted with os.linesep to be
written as '\r\r\n', causing some assemblers to error.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
					
						2019-02-01 11:09:21 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						3f7cb70c5a 
					 
					
						
						
							
							BaseTools: Make sure AllPcdList valid.  
						
						... 
						
						
						
						This patch is to make sure the AllPcdList is always evaluated.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-02-01 11:09:20 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						d7f40203dc 
					 
					
						
						
							
							BaseTools:Fv BaseAddress must set If it not set  
						
						... 
						
						
						
						If ForceRebase is not set, and FV is specified in FD region,
 it should have FvBaseAddress
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:20 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						2c2bb053a3 
					 
					
						
						
							
							Basetools: It went wrong when use os.linesep  
						
						... 
						
						
						
						in python2 and python3,use of line breaks
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:20 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						174a9d3cc8 
					 
					
						
						
							
							BaseTools/UPT:merge UPT Tool use Python2 and Python3  
						
						... 
						
						
						
						In UPT Tool,merge python2 and python3
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:19 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						1590d12315 
					 
					
						
						
							
							BaseTools:Similar to octal data rectification  
						
						... 
						
						
						
						In python3, if Value is octal data, the int(Value, 0) report an error
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:18 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						56ad03a5dc 
					 
					
						
						
							
							BaseTools: Update argparse arguments since it not have version now  
						
						... 
						
						
						
						argparse.ArgumentParser not have version parameter
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:18 +08:00 
						 
				 
			
				
					
						
							
							
								Yunhua Feng 
							
						 
					 
					
						
						
							
						
						af881abc65 
					 
					
						
						
							
							BaseTools: replace long by int  
						
						... 
						
						
						
						replace long by int
Because the long() was not exist in Python3
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:18 +08:00 
						 
				 
			
				
					
						
							
							
								Yunhua Feng 
							
						 
					 
					
						
						
							
						
						1d2aa01cdf 
					 
					
						
						
							
							BaseTools: Remove unnecessary super function  
						
						... 
						
						
						
						Remove unnecessary super function
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:17 +08:00 
						 
				 
			
				
					
						
							
							
								Yunhua Feng 
							
						 
					 
					
						
						
							
						
						b56abd91bc 
					 
					
						
						
							
							BaseTools: nametuple not have verbose parameter in python3  
						
						... 
						
						
						
						nametuple not have verbose parameter in python3
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:17 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						f56c83f815 
					 
					
						
						
							
							BaseTools: use OrderedDict instead of sdict  
						
						... 
						
						
						
						use OrderedDict instead of sdict, and delete sdict
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:17 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						00f86d89ab 
					 
					
						
						
							
							BaseTools: replace get_bytes_le() to bytes_le  
						
						... 
						
						
						
						UUID does not have the get_bytes_le() in python3
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:17 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						3a041437c9 
					 
					
						
						
							
							BaseTools: Rename iteritems to items  
						
						... 
						
						
						
						replace the list iteritems by items in Python3.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:16 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						2f28dca16f 
					 
					
						
						
							
							BaseTools:use iterate list to replace the itertools  
						
						... 
						
						
						
						itertools.imap() replace map(), itertools.ifilter() replace filter
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:16 +08:00 
						 
				 
			
				
					
						
							
							
								Zhijux Fan 
							
						 
					 
					
						
						
							
						
						e77e59c9bd 
					 
					
						
						
							
							BaseTool:Rename xrange() to range()  
						
						... 
						
						
						
						Because the xrange() was not exist in Python3
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-02-01 11:09:16 +08:00 
						 
				 
			
				
					
						
							
							
								Mike Turner 
							
						 
					 
					
						
						
							
						
						ca67441558 
					 
					
						
						
							
							BaseTools/DevicePath: Add a checking step  
						
						... 
						
						
						
						Add a checking step in DevicePathUtilities.c
to verify DevicePath.
https://bugzilla.tianocore.org/show_bug.cgi?id=1372 
v2: Remove ASSERT() and the redundant checking step.
    Update related description.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Yonghong Zhu <yonghong.zhu@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-01-31 20:19:22 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						f30e4aed99 
					 
					
						
						
							
							BaseTools/build/build: delete variable  
						
						... 
						
						
						
						delete the shared global variable from Common.Misc
delete the uncalled users of the variable from build.build
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-28 11:44:45 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						3aaacb2daf 
					 
					
						
						
							
							BaseTools/Common/Misc: Cleanup the imports  
						
						... 
						
						
						
						Refactor to 'dict' from 'IterableUserDict' which was only required for old
    python interpreter.
Sort imports according to PEP8
Remove those we dont need.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-28 11:44:44 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						fe5ff16128 
					 
					
						
						
							
							BaseTools/Common/Misc: remove uncalled code  
						
						... 
						
						
						
						no use for this code content.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-28 11:44:43 +08:00 
						 
				 
			
				
					
						
							
							
								Fan, ZhijuX 
							
						 
					 
					
						
						
							
						
						51f5233385 
					 
					
						
						
							
							BaseTools:Define Macro in Inf file, the pcdvalue Can't convert  
						
						... 
						
						
						
						Define Macro in Inf file, the pcdvalue Can't convert
in dec:
gUefiOvmfPkgGuid.test1|"ddd"|VOID*|0x3c
in inf:
DEFINE ABC=PATH
gUefiOvmfPkgTokenSpaceGuid.test1|$(ABC)
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-28 11:44:42 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						42bd17508e 
					 
					
						
						
							
							BaseTools/Common/Misc: move private functions  
						
						... 
						
						
						
						These 2 functions are only used internally.  move them to the smallest
scope and use them.
Cc: Bob Feng <Bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-28 11:44:42 +08:00 
						 
				 
			
				
					
						
							
							
								Fan, ZhijuX 
							
						 
					 
					
						
						
							
						
						e3ef8f0c52 
					 
					
						
						
							
							BaseTools: Fix Pcd Array changes build report issue.  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1472 
The Pcd Array feature changes the Pcd Default value
data structure which is used by build report. This
patch is going to update build report to adapt that change.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-28 11:44:41 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						5c5ca9f1fb 
					 
					
						
						
							
							BaseTools/GenFds/Capsule: move function logic  
						
						... 
						
						
						
						Move PackRegistryFormatGuid logic from Common.Misc to this file.
There were no other consumers of the function.
As it is one line, just replace the logic without the separate function.
v2 - change to fix the import statement
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-21 18:03:33 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						1bcc2cd63d 
					 
					
						
						
							
							BaseTools/AutoGen: move functions  
						
						... 
						
						
						
						Move SplitOption and ConvertStringToByteArray from
Common.Misc to this file.
There were no other consumers of the functions.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-21 18:03:33 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						2b95556c06 
					 
					
						
						
							
							BaseTools/DscBuildData: move function  
						
						... 
						
						
						
						Move IsFieldValuieAnArray from Common.Misc to this file.
There were no other consumers of the function.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-21 18:03:32 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						12ba816e61 
					 
					
						
						
							
							BaseTools/Workspace/InfBuildData: move functions  
						
						... 
						
						
						
						Move ProtocolValue and PpiValue from Common.Misc to this file.
There were no other consumers of these 2 functions.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-21 18:03:32 +08:00 
						 
				 
			
				
					
						
							
							
								Fan, ZhijuX 
							
						 
					 
					
						
						
							
						
						5f7650e497 
					 
					
						
						
							
							BaseTools:The BuildOptionPcd value is wrong  
						
						... 
						
						
						
						In GenFds.py, Due to the second assignment, the value is wrong
Its value should a list, not a string.and this line is not required
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-21 18:03:31 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						350c9ae081 
					 
					
						
						
							
							BaseTools: Fix build report issue.  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1472 
The Pcd Array feature changes the Pcd Default value
data structure which is used by build report. This
patch is going to update build report to adapt that change.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-01-21 18:03:31 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
							
						
						b298567268 
					 
					
						
						
							
							BaseTools/build/build: refactor and move functions  
						
						... 
						
						
						
						Move DataDump and DataRestore from Common.Misc to this file.
There were no other consumers of these 2 functions.
Import threading since that module is used in build.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-21 18:03:30 +08:00 
						 
				 
			
				
					
						
							
							
								Fan, ZhijuX 
							
						 
					 
					
						
						
							
						
						dd1988cf01 
					 
					
						
						
							
							BaseTools:build break if the Path contains SingleFile.Ext  
						
						... 
						
						
						
						BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1325 
if SingleFile.Path = "/foo/bar.Sap/yada/source.S" and
SingleFile.Ext = ".S". Then key would end up "/foo/bar"
instead of "/foo/bar.Sap/yada/source" as intended.
Cc: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com > 
						
						
					 
					
						2019-01-21 18:03:30 +08:00 
						 
				 
			
				
					
						
							
							
								Felix Polyudov 
							
						 
					 
					
						
						
							
						
						842695d2ff 
					 
					
						
						
							
							BaseTools: Fix incorrect formatting of GenFds command dictionary  
						
						... 
						
						
						
						GenFdsCommand returned dictionary with elements that
are not compatible with GenFdsApi.
As a result the following options were not processed by GenFdsApi:
-v, -q, -d, --genfds-multi-thread, --ignore-sources
The issue is introduced by commit b3497bad12felixp@ami.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-01-21 18:03:29 +08:00 
						 
				 
			
				
					
						
							
							
								Fan, ZhijuX 
							
						 
					 
					
						
						
							
						
						3e1ab49481 
					 
					
						
						
							
							BaseTools:Build fail when PCD use in the [DEPEX] section of INF files  
						
						... 
						
						
						
						Update _FixedPcdVoidTypeDict to FixedVoidTypePcds
'_FixedPcdVoidTypeDict' no longer exists because edk2 version (b23414f6bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com >
Reviewed-by: Bob Feng <bob.c.feng@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-01-21 18:03:28 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						cce9d76358 
					 
					
						
						
							
							BaseTools: Allow empty value for HiiPcd in Dsc  
						
						... 
						
						
						
						https://bugzilla.tianocore.org/show_bug.cgi?id=1466 
DEC file defines PCD default value and PCD supported type.
DSC can configure PCD type and value.
If the value is same to default value in DEC file,
DSC can only configure PCD type and leave empty for value.
This usage supports all type PCD except for DynamicHii type.
So, DynamicHii PCD should support this usage. Below is one example in DSC.
for example,
[PcdsDynamicHii.common.DEFAULT]
PcdPkgTokenSpaceGuid.PcdCName|L"VarName"|gVarGuid|0x00||NV,BS
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
					
						2019-01-18 10:20:01 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						c68b564900 
					 
					
						
						
							
							BaseTools: Remove EDK_SOURCE keyword from Inf Parser.  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 
Remove unused EDK_SOURCE keyword from Inf Parser.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-01-17 19:49:20 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						7f98ef37f6 
					 
					
						
						
							
							BaseTools: Remove EDK_SOURCE keyword from GenFds tool.  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 
Remove unused EDK_SOURCE keyword from GenFds tool.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Tested-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-01-17 19:49:20 +08:00 
						 
				 
			
				
					
						
							
							
								Feng, Bob C 
							
						 
					 
					
						
						
							
						
						0006d3fd0f 
					 
					
						
						
							
							BaseTools: Remove EDK_SOURCE keyword from ECC Tool  
						
						... 
						
						
						
						BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 
Remove EDK_SOURCE keyword from ECC Tool.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com > 
						
						
					 
					
						2019-01-17 19:49:20 +08:00 
						 
				 
			
				
					
						
							
							
								Liming Gao 
							
						 
					 
					
						
						
							
						
						9e90fb097c 
					 
					
						
						
							
							BaseTools VolInfo: Fix XCODE5 build issue  
						
						... 
						
						
						
						XCODE5 reports warning "equality comparison with extraneous parentheses".
Remove extraneous parentheses around the comparison to silence this warning.
This issue is caused by commit 8daa4278e8liming.gao@intel.com >
Cc: Feng Bob C <bob.c.feng@intel.com >
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com > 
						
						
					 
					
						2019-01-16 22:37:59 +08:00