mirror_edk2/BaseTools/Source/Python
Qiu Shumin 9979bab783 BaseTools/GenFds: Fix 'NoneType' object is not iterable error.
When adding section VERSION in FDF file, for example:
FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
    SECTION RAW = MdeModulePkg/Logo/Logo.bmp
    SECTION UI = "Logo"
    SECTION VERSION = "0001"
  }
GenFds will report the following error:
Traceback (most recent call last):
  File "GenFds.py", line 276, in main
  File "GenFds.py", line 391, in GenFd
  File "Fd.py", line 93, in GenFd
  File "Region.py", line 106, in AddToBuffer
  File "Fv.py", line 114, in AddToBuffer
  File "FfsFileStatement.py", line 117, in GenFfs
  File "VerSection.py", line 80, in GenSection
  File "GenFdsGlobalVariable.py", line 401, in GenerateSection
TypeError: 'NoneType' object is not iterable.
We found in GenFdsGlobalVariable.py line 401 'list' requires a iteralbe object as parameter while the 'Input' is None.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18205 6f19259b-4bc3-4df7-8a09-765794883524
2015-08-12 01:27:31 +00:00
..
AutoGen BaseTools: Make AutoGen.h array declaration match AutoGen.c definition 2015-07-26 08:04:10 +00:00
BPDG 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. 2014-08-15 03:06:48 +00:00
build BaseTools: Build report should not be generated if build failed. 2015-06-23 06:49:25 +00:00
Common BaseTools/Build: Fix the range expression evaluation error. 2015-07-06 00:55:15 +00:00
CommonDataClass BaseTools: Add a keyword FvNameString in FDF 2015-07-28 05:53:08 +00:00
Ecc BaseTools/Ecc: Fix a bug when checking copyright format 2015-07-02 06:05:26 +00:00
Eot 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. 2014-08-15 03:06:48 +00:00
GenFds BaseTools/GenFds: Fix 'NoneType' object is not iterable error. 2015-08-12 01:27:31 +00:00
GenPatchPcdTable 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. 2014-08-15 03:06:48 +00:00
PatchPcdValue 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. 2014-08-15 03:06:48 +00:00
Rsa2048Sha256Sign BaseTools: Do not create an empty file if Rsa2048Sha256Sign was failed. 2015-07-01 05:14:28 +00:00
Table BaseTools/Ecc: Add a checkpoint for invalid UNI file. 2015-06-25 07:50:55 +00:00
TargetTool License header updated to match correct format. 2014-08-28 13:53:34 +00:00
Trim BaseTools/Trim: Fixed a bug that cannot trim long values 2015-08-06 08:05:59 +00:00
UPT BaseTools/Upt: Add a BOM check for UNI file and fix some help message error 2015-07-08 05:43:22 +00:00
Workspace BaseTools: Fixed BuildOptions bug. 2015-07-02 03:42:34 +00:00
GNUmakefile Sync BaseTool trunk (version r2599) into EDKII BaseTools. 2013-08-23 02:18:16 +00:00
Makefile Adds new files to the Makefile for testing changed sources 2015-06-10 14:34:40 +00:00
sitecustomize.py License header updated to match correct format. 2014-08-28 13:53:34 +00:00