]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/TargetTool/TargetTool.py
BaseTools: Remove hard-coded strings for target and tools_def
authorPierre Gondois <Pierre.Gondois@arm.com>
Thu, 23 Sep 2021 08:59:03 +0000 (16:59 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 29 Sep 2021 14:31:37 +0000 (14:31 +0000)
commitc7d5b046d90805eacd5eb6df669d2e4998cb149c
treefa3771f89eeb44de7667c4e21c07cb71e7a0761a
parent445c39f757f5204c2259d00930972b960483f6a4
BaseTools: Remove hard-coded strings for target and tools_def

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

The "target.txt" and "tools_def.txt" filenames are hard-coded
at some places when global definitions are available at:
BaseTools/Source/Python/Common/TargetTxtClassObject.py:
DefaultTargetTxtFile
and
BaseTools/Source/Python/Common/ToolDefClassObject.py:
DefaultToolsDefFile

Use these global definitions instead.

Also remove the unused gBuildConfiguration and gToolsDefinition
variables from build.py

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Chris Jones <christopher.jones@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/GenFds/GenFds.py
BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py
BaseTools/Source/Python/TargetTool/TargetTool.py
BaseTools/Source/Python/Workspace/DscBuildData.py
BaseTools/Source/Python/build/build.py