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
Feng, Bob C
db01c8e3d8
BaseTools: Singleton the object to handle build conf file
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1875
The build config files are target.txt, build rule, tooldef
During a build, the config is not changed, so the object to
handle them need to be singleton.
Cc: Liming Gao <[email protected] >
Signed-off-by: Bob Feng <[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:51 +08:00
Michael D Kinney
2e351cbe8e
BaseTools: Replace BSD License with BSD+Patent License
...
https://bugzilla.tianocore.org/show_bug.cgi?id=1373
Replace BSD 2-Clause License with BSD+Patent License. This change is
based on the following emails:
https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html
https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html
RFCs with detailed process for the license change:
V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html
V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html
V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <[email protected] >
Reviewed-by: Bob Feng <[email protected] >
2019-04-09 09:10:20 -07:00
Liming Gao
1ccc4d895d
Revert BaseTools: PYTHON3 migration
...
This reverts commit 6693f359b3c213513c5096a06c6f67244a44dc52..
678f851312 .
Python3 migration is the fundamental change. It requires every developer
to install Python3. Before this migration, the well communication and wide
verification must be done. But now, most people is not aware of this change,
and not try it. So, Python3 migration is reverted and be moved to edk2-staging
Python3 branch for the edk2 user evaluation.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <[email protected] >
2018-10-15 08:29:14 +08:00
Yunhua Feng
487062c048
BaseTools: Remove the "from __future__ import" items
...
Cc: Liming Gao <[email protected] >
Cc: Yonghong Zhu <[email protected] >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <[email protected] >
Reviewed-by: Liming Gao <[email protected] >
2018-10-13 09:50:40 +08:00
Gary Lin
f3fc5b47ad
BaseTools: Use absolute import in Common
...
Based on "futurize -f libfuturize.fixes.fix_absolute_import
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <[email protected] >
Cc: Liming Gao <[email protected] >
Signed-off-by: Gary Lin <[email protected] >
Reviewed-by: Jaben Carsey <[email protected] >
2018-07-16 11:22:16 +08:00
Gary Lin
72443dd250
BaseTools: Refactor python print statements
...
Refactor print statements to be compatible with python 3.
Based on "futurize -f libfuturize.fixes.fix_print_with_import"
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <[email protected] >
Cc: Liming Gao <[email protected] >
Signed-off-by: Gary Lin <[email protected] >
Reviewed-by: Yonghong Zhu <[email protected] >
2018-06-27 16:33:21 +08:00
Carsey, Jaben
eb2c0b2c80
BaseTools: remove uncalled functions
...
Cc: Liming Gao <[email protected] >
Cc: Yonghong Zhu <[email protected] >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <[email protected] >
Reviewed-by: Yonghong Zhu <[email protected] >
2018-04-10 10:00:00 +08:00
Carsey, Jaben
4231a8193e
BaseTools: Remove equality operator with None
...
replace "== None" with "is None" and "!= None" with "is not None"
Cc: Yonghong Zhu <[email protected] >
Cc: Liming Gao <[email protected] >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <[email protected] >
Reviewed-by: Yonghong Zhu <[email protected] >
2018-03-30 08:25:13 +08:00
Yingke Liu
97fa0ee9b1
License header updated to match correct format.
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <[email protected] >
Reviewed-by: Liming Gao <[email protected] >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15971 6f19259b-4bc3-4df7-8a09-765794883524
2014-08-28 13:53:34 +00:00
Hess Chen
1be2ed90a2
There is a limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. There is an OS API provided by Microsoft to add “\\?\” before the path header to support the long file path. Enable this feature on basetools.
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <[email protected] >
Reviewed-by: Yingke Liu <[email protected] >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15809 6f19259b-4bc3-4df7-8a09-765794883524
2014-08-15 03:06:48 +00:00
lgao4
08dd311f5d
Sync EDKII BaseTools to BaseTools project r2065.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10915 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-11 06:26:52 +00:00
lgao4
40d841f6a8
Sync EDKII BaseTools to BaseTools project r1971
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10502 6f19259b-4bc3-4df7-8a09-765794883524
2010-05-18 05:04:32 +00:00
lgao4
30fdf1140b
Check In tool source code based on Build tool project revision r1655.
...
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8964 6f19259b-4bc3-4df7-8a09-765794883524
2009-07-17 09:10:31 +00:00