mirror of https://github.com/acidanthera/audk.git
BaseTools:Override the MAKE_FLAGS by BuildOptions in DSC
The issue that *_*_*_MAKE_FLAGS doesn't work in DSC [BuildOptions] section. It means MAKE flags can't be set in platform DSC file. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
1c06bd485e
commit
02a908fc6d
|
@ -1907,6 +1907,13 @@ class PlatformAutoGen(AutoGen):
|
|||
NewOption = self.ToolDefinition["MAKE"]["FLAGS"].strip()
|
||||
if NewOption != '':
|
||||
self._BuildCommand += SplitOption(NewOption)
|
||||
if "MAKE" in self.EdkIIBuildOption:
|
||||
if "FLAGS" in self.EdkIIBuildOption["MAKE"]:
|
||||
Flags = self.EdkIIBuildOption["MAKE"]["FLAGS"]
|
||||
if Flags.startswith('='):
|
||||
self._BuildCommand = [self._BuildCommand[0]] + [Flags[1:]]
|
||||
else:
|
||||
self._BuildCommand += [Flags]
|
||||
return self._BuildCommand
|
||||
|
||||
## Get tool chain definition
|
||||
|
|
Loading…
Reference in New Issue