]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
BaseTools/Build: Better DSC arch filtering
authorThomas Palmer <thomas.palmer@hpe.com>
Wed, 27 Apr 2016 22:32:17 +0000 (06:32 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Fri, 29 Apr 2016 06:53:27 +0000 (14:53 +0800)
commitcdd1b5e5486460ac96f44cddf1edfda25b1fdce9
tree705b7996aad7185501aeb98cef87f3e897507e09
parent35217a337cb6d262d4a3b5165bd86ba150a6c088
BaseTools/Build: Better DSC arch filtering

Description:
When building for any specific architecture, the build script today is loading
DSC sections for other architectures not in the build. The build process should
disregard DSC sections that are not relevant to the build.

My previous patch only fixed issue for one section type (Components). This
patch will handle all section types by updating the MetaFileParser class, which
now takes a Arch argument and will filter the DSC table results as they are
returned from the database.  The database still contains all information from
DSCs for when builds support multiple arch's

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/Workspace/MetaFileParser.py
BaseTools/Source/Python/Workspace/WorkspaceDatabase.py