4 Commits
Author SHA1 Message Date
f60d5ca97f BaseTools: BaseTools changes for RISC-V platform.
Python code changes for building EDK2 RISC-V platform.

Signed-off-by: Abner Chang <[email protected]>
Co-authored-by: Gilbert Chen <[email protected]>
Co-authored-by: Daniel Helmut Schaefer <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]>
Reviewed-by: Bob Feng <[email protected]>

Cc: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Leif Lindholm <[email protected]>
Cc: Gilbert Chen <[email protected]>
2020-04-29 02:52:08 +00:00
Fan, ZhijuX 4465cd124f 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 <[email protected]>

Cc: Liming Gao <[email protected]>
Cc: Bob Feng <[email protected]>
Reviewed-by: Bob Feng <[email protected]>
2020-01-13 02:08:46 +00:00
Bob Feng 08a54c9e0a BaseTools: Move buildoptions.py to Common folder
buildoptions is used by build.py and TargetTxtClassObj.py
Move buildoptions.py to Common folder so that
build tool and ECC tool work fine.

Cc: Liming Gao <[email protected]>
Signed-off-by: Bob Feng <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
2019-08-14 13:54:49 +08:00
Feng, Bob C c60fb00f6c BaseTools: Move BuildOption parser out of build.py
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1875

Build tool supports user to specify the conf folder.
To make the build options be evaluated at the beginning
of launching build, extract the buildoption function
from build.py to a new .py file.

Signed-off-by: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>
Acked-by: Laszlo Ersek <[email protected]>
Tested-by: Laszlo Ersek <[email protected]>
Acked-by: Liming Gao <[email protected]>
2019-08-09 23:15:54 +08:00