]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools:Fix GenFds issue for BuildOption replace GenFdsOption
authorFan, ZhijuX <zhijux.fan@intel.com>
Fri, 10 Jan 2020 08:29:45 +0000 (16:29 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 13 Jan 2020 02:08:46 +0000 (02:08 +0000)
commit4465cd124fbcf5490faad6a1a834299b30b5d009
tree4260973bb45c8d922ad21172553ac44afb07b61a
parent072b9c28393d191733187e701307cdab166a4c4d
BaseTools:Fix GenFds issue for BuildOption replace GenFdsOption

BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2455

BuildOption is used by TargetTxtClassObj.py
GenFdsOption is used by GenFds.py
When the GenFds tool is used alone (e.g. python3 -m GenFds.GenFds -h)
With the OptionParser function, the first detected function
prints the help message

import TargetTxtClassObj to GenFds,
The BuildOption will be executed and replace GenFdsOption

We removed all objects associated with this problem that
were created directly during the import process
(e.g. BuildOption, BuildTarget = MyOptionParser(),
 TargetTxt = TargetTxtDict())

The Patch is going to fix this issue

Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/AutoGen/BuildEngine.py
BaseTools/Source/Python/Common/GlobalData.py
BaseTools/Source/Python/Common/TargetTxtClassObject.py
BaseTools/Source/Python/Common/ToolDefClassObject.py
BaseTools/Source/Python/Common/buildoptions.py [deleted file]
BaseTools/Source/Python/GenFds/GenFds.py
BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py
BaseTools/Source/Python/Workspace/DscBuildData.py
BaseTools/Source/Python/build/build.py
BaseTools/Source/Python/build/buildoptions.py [new file with mode: 0644]