Gary Lin 
							
						 
					 
					
						
						
						
						
							
						
						
							bfa65b61dd 
							
						 
					 
					
						
						
							
							BaseTools: Use absolute import in GenFds  
						
						... 
						
						
						
						Based on "futurize -f libfuturize.fixes.fix_absolute_import"
Since circular import is not allowed after adopting absolute import, the
following changes are applied to break the circles.
* BaseTools/Source/Python/GenFds/Capsule.py
  - Delay "from .GenFds import GenFds" until GenCapsule()
  - Delay "from .GenFds import FindExtendTool" until GenFmpCapsule()
  To break the circle:
  AutoGen.AutoGen => GenFds.FdfParser => GenFds.Capsule => GenFds.GenFds =>
  GenFds.FdfParser
* BaseTools/Source/Python/GenFds/Fd.py
  - Delay "from .GenFds import GenFds" until GenFd()
  To break the circle:
  AutoGen.AutoGen => GenFds.FdfParser => GenFds.Fd => GenFds.GenFds =>
  GenFds.FdfParser
* BaseTools/Source/Python/GenFds/Fv.py
  - Delay "from .GenFds import GenFds" until AddToBuffer()
  To break the circle:
  AutoGen.AutoGen => GenFds.FdfParser => GenFds.Fd => GenFds.Fv =>
  GenFds.GenFds => GenFds.FdfParser
* BaseTools/Source/Python/GenFds/GuidSection.py
  - Delay "from .GenFds import FindExtendTool" until GuidSection()
  To break the circle:
  AutoGen.AutoGen => GenFds.FdfParser => GenFds.Fd => GenFds.Fv =>
  GenFds.AprioriSection => GenFds.FfsFileStatement => GenFds.GuidSection =>
  GenFds.GenFds => GenFds.FdfParser
* BaseTools/Source/Python/GenFds/OptRomInfStatement.py
  - Delay "from . import OptionRom" until __GetOptRomParams()
  To break the circle:
  AutoGen.AutoGen => GenFds.FdfParser => GenFds.OptionRom =>
  GenFds.OptRomInfStatement => GenFds.OptionRom
* BaseTools/Source/Python/GenFds/OptionRom.py
  - Remove the unused "from GenFds import GenFds"
  To break the circle:
  AutoGen.AutoGen => GenFds.FdfParser => GenFds.OptionRom =>
  GenFds.GenFds => GenFds.FdfParser
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> 
						
						
					 
					
						2018-07-16 11:22:13 +08:00 
						 
				 
			
				
					
						
							
							
								Liming Gao 
							
						 
					 
					
						
						
						
						
							
						
						
							f7496d7173 
							
						 
					 
					
						
						
							
							BaseTools: Clean up source files  
						
						... 
						
						
						
						1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com> 
						
						
					 
					
						2018-07-09 10:25:47 +08:00 
						 
				 
			
				
					
						
							
							
								Gary Lin 
							
						 
					 
					
						
						
						
						
							
						
						
							86379ac48b 
							
						 
					 
					
						
						
							
							BaseTools: Replace StringIO.StringIO with io.BytesIO  
						
						... 
						
						
						
						Replace StringIO.StringIO with io.BytesIO to be compatible with python3.
This commit also removes "import StringIO" from those python scripts
that don't really use it.
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com> 
						
						
					 
					
						2018-06-27 16:33:28 +08:00 
						 
				 
			
				
					
						
							
							
								Carsey, Jaben 
							
						 
					 
					
						
						
						
						
							
						
						
							4231a8193e 
							
						 
					 
					
						
						
							
							BaseTools: Remove equality operator with None  
						
						... 
						
						
						
						replace "== None" with "is None" and "!= None" with "is not None"
Cc: Yonghong Zhu <yonghong.zhu@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: Yonghong Zhu <yonghong.zhu@intel.com> 
						
						
					 
					
						2018-03-30 08:25:13 +08:00 
						 
				 
			
				
					
						
							
							
								Yonghong Zhu 
							
						 
					 
					
						
						
						
						
							
						
						
							37de70b764 
							
						 
					 
					
						
						
							
							BaseTools: Update Makefile to support FFS file generation  
						
						... 
						
						
						
						Update Makefile to support FFS file generation with new build option
--genfds-multi-thread.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com> 
						
						
					 
					
						2017-12-05 09:26:22 +08:00 
						 
				 
			
				
					
						
							
							
								Yonghong Zhu 
							
						 
					 
					
						
						
						
						
							
						
						
							2a6402d490 
							
						 
					 
					
						
						
							
							BaseTools: Fix the bug for OptionRom generation with different arch  
						
						... 
						
						
						
						The GenFds tool uses the same output for the same module with the
different arch, IA32 and X64 module will have the same output. The
solution is add the arch info in the output directory.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com> 
						
						
					 
					
						2016-11-02 09:47:41 +08:00 
						 
				 
			
				
					
						
							
							
								Hess Chen 
							
						 
					 
					
						
						
						
						
							
						
						
							1be2ed90a2 
							
						 
					 
					
						
						
							
							There is a limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. There is an OS API provided by Microsoft to add “\\?\” before the path header to support the long file path. Enable this feature on basetools.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <hesheng.chen@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15809  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-08-15 03:06:48 +00:00 
						 
				 
			
				
					
						
							
							
								lgao4 
							
						 
					 
					
						
						
						
						
							
						
						
							40d841f6a8 
							
						 
					 
					
						
						
							
							Sync EDKII BaseTools to BaseTools project r1971  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10502  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2010-05-18 05:04:32 +00:00 
						 
				 
			
				
					
						
							
							
								vanjeff 
							
						 
					 
					
						
						
						
						
							
						
						
							fd171542e0 
							
						 
					 
					
						
						
							
							Sync basetools' source and binary files with r1707 of the basetools project.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9257  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-09-11 03:14:43 +00:00 
						 
				 
			
				
					
						
							
							
								lgao4 
							
						 
					 
					
						
						
						
						
							
						
						
							30fdf1140b 
							
						 
					 
					
						
						
							
							Check In tool source code based on Build tool project revision r1655.  
						
						... 
						
						
						
						git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8964  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2009-07-17 09:10:31 +00:00