]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Workspace/MetaFileParser.py
BaseTools: Enhance DEC Defines section format check
authorYunhua Feng <yunhuax.feng@intel.com>
Thu, 22 Jun 2017 03:19:47 +0000 (11:19 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Sat, 24 Jun 2017 15:01:37 +0000 (23:01 +0800)
commit778aad47e8eed49cecb7e1bd7650d878d9ea50e3
treeb0758efed1b98cfbc1ab90e225b61038b75b2456
parentdfa41b4a483e562f3c739acfbc2d911550f50e47
BaseTools: Enhance DEC Defines section format check

1. break if Dec Defines Section is missing
2. break if Dec have more than one Defines Section
3. break if Dec Defines Section have arch attribute
4. break if no section head, like as:
#[Defines]
 DEC_SPECIFICATION              = 0x00010005
 PACKAGE_NAME                   = Nt32Pkg

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/Workspace/MetaFileParser.py