]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
BaseTools/Build: Consider only build-specified architectures
authorThomas Palmer <thomas.palmer@hpe.com>
Sat, 16 Apr 2016 01:45:02 +0000 (09:45 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Tue, 19 Apr 2016 02:30:54 +0000 (10:30 +0800)
commit77177984087654ff2888e182d40c20480da29811
tree222a59e35952e0133a80b6f40ca039f1d25a91c9
parent0b42d7d8a34a99a02becf4dece78481d3cd2b2fc
BaseTools/Build: Consider only build-specified architectures

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.

This fixes scenario whereby a build occurs in a source tree that was
been cleaned of non-essential directories.  For instance, X64 builds
do not require the ArmPkg directory to build a firmware image.  This
condition (build break when ArmPkg is absent) occurs when included
DSCs have sections for multiple architectures.

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/GenFds/FfsInfStatement.py
BaseTools/Source/Python/Workspace/WorkspaceDatabase.py