]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
BaseTools: Fix New Target/ToolChain/Arch in DSC [BuildOptions] issues
authorMichael D Kinney <michael.d.kinney@intel.com>
Fri, 30 Apr 2021 02:01:05 +0000 (19:01 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 3 May 2021 18:16:23 +0000 (18:16 +0000)
commit8c8f49f0dc86e3c58d94766e6b194b83c1bef5c9
tree4e07af93de690a2684899d48a164a4dd99fa689e
parent1e6b0394d6c001802dc454ecff19076aaa80f51c
BaseTools: Fix New Target/ToolChain/Arch in DSC [BuildOptions] issues

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3359

* Save/Restore global state in GetToolChainAndFamilyFromDsc()
  This resolves an issue where the multi-arch build for
  UefiPayloadPkg would skip the autogen and build of IA32
  components.
* Expand tools wildcard.
  This resolves the issue where autogen makefile contents
  would have a BUIDLRULEFAMILY tools definitions with an
  '*' in the tool field that breaks the build from invalid
  makefile syntax.
* Build rule family higher priority than Family.
  This resolves the issue where flags were appended from
  both the BUILDRULEFAMILY and FAMILY when only
  BUILDRULEFAMILY should be appended when present.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Steven Shi <steven.shi@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Acked-by: Rebecca Cran <rebecca@bsdio.com>
Reviewed-by: Andrew Fish <afish@apple.com>
BaseTools/Source/Python/AutoGen/ModuleAutoGenHelper.py
BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
BaseTools/Source/Python/build/build.py