]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/PlatformAutoGen: MAKE_FLAGS and MAKE_PATH fixes
authorMichael D Kinney <michael.d.kinney@intel.com>
Fri, 9 Apr 2021 04:35:38 +0000 (21:35 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 14 Apr 2021 16:28:41 +0000 (16:28 +0000)
commitc055be5b82d3591c531ced88965523dfdbe1b9ae
tree9b5aa94f9e63a353787ba4091fe86725ec40a3d8
parent037090cb7c0063bcb7788982cab73bf7c5b66924
BaseTools/PlatformAutoGen: MAKE_FLAGS and MAKE_PATH fixes

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

Update parsing of MAKE_FLAGS in DSC [BuildOptions] sections
to split the flags into a list to be compatible with
running the make command using Popen().  Parsing MAKE_FLAGS
from tools_def.txt already uses _SplitOption().  This change
uses the same _SplitOption() method for MAKE_FLAGS from a
DSC [BuildOptions] section.

Also update the parsing of MAKE_PATH to support MAKE_PATH
from tools_def.txt or the DSC [BuildOptions] section.  MAKE_PATH
in DSC [BuildOptions] section is higher priority than MAKE_PATH
in tools_def.txt.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Yuwei Chen <yuwei.chen@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/PlatformAutoGen.py