mirror_edk2/BaseTools/Source/Python/GenFds
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
..
__init__.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
AprioriSection.py 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
Attribute.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
Capsule.py BaseTools: Supported FMP capsule image. 2015-06-23 06:46:01 +00:00
CapsuleData.py BaseTools: Supported FMP capsule image. 2015-06-23 06:46:01 +00:00
ComponentStatement.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
CompressSection.py License header updated to match correct format. 2014-08-28 13:53:34 +00:00
DataSection.py 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
DepexSection.py License header updated to match correct format. 2014-08-28 13:53:34 +00:00
EfiSection.py BaseTools: Fixed incorrect alignment bug. 2015-07-16 00:56:14 +00:00
Fd.py 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
FdfParser.py BaseTools: Add a keyword FvNameString in FDF 2015-07-28 05:53:08 +00:00
Ffs.py Sync BaseTools Trunk (version r2518) to EDKII main trunk. 2012-04-10 07:18:20 +00:00
FfsFileStatement.py License header updated to match correct format. 2014-08-28 13:53:34 +00:00
FfsInfStatement.py 1. Update UpdateBuildVersion.py; 2015-02-06 03:40:27 +00:00
Fv.py BaseTools: Add a keyword FvNameString in FDF 2015-07-28 05:53:08 +00:00
FvImageSection.py 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.py Support DSC and FDF file out of WORKSPACE by GenFds. 2014-09-16 08:33:40 +00:00
GenFdsGlobalVariable.py License header updated to match correct format. 2014-08-28 13:53:34 +00:00
GuidSection.py Enhance error handling for external tool. 2014-12-01 08:22:07 +00:00
OptionRom.py 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
OptRomFileStatement.py 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
OptRomInfStatement.py Sync BaseTools Branch (version r2362) to EDKII main trunk. 2011-10-11 02:49:48 +00:00
Region.py 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
Rule.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
RuleComplexFile.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
RuleSimpleFile.py Sync EDKII BaseTools to BaseTools project r1971 2010-05-18 05:04:32 +00:00
Section.py BaseTools: Update GenFds to handle file type Ffs Rule 2015-06-08 09:44:01 +00:00
UiSection.py 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
VerSection.py BaseTools/GenFds: Fix 'NoneType' object is not iterable error. 2015-08-12 01:27:31 +00:00
Vtf.py 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