efi/basetools/.git
11 years agoBUILDRULEFAMILY supports BuildOptions in INF and DSC.
lgao4 [Tue, 21 Jul 2009 10:15:37 +0000 (10:15 +0000)]
BUILDRULEFAMILY supports BuildOptions in INF and DSC.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1664 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix the bug that GenFw can not convert ELF to PE format correct, the root cause is...
klu2 [Mon, 20 Jul 2009 11:30:06 +0000 (11:30 +0000)]
Fix the bug that GenFw can not convert ELF to PE format correct, the root cause is invalid size of OptionalHeader is computed.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1663 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix VfrCompiler bug to create varstore name by varstore name field not structure...
lgao4 [Fri, 17 Jul 2009 11:07:47 +0000 (11:07 +0000)]
Fix VfrCompiler bug to create varstore name by varstore name field not structure field for framework Vfr.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1662 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoRemove binary tools.
lgao4 [Fri, 17 Jul 2009 10:26:24 +0000 (10:26 +0000)]
Remove binary tools.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1661 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoRemove unnecessary binary tool checkin log.
lgao4 [Fri, 17 Jul 2009 08:47:13 +0000 (08:47 +0000)]
Remove unnecessary binary tool checkin log.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1660 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoChange File name
lgao4 [Fri, 17 Jul 2009 08:18:18 +0000 (08:18 +0000)]
Change File name

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1659 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoCheck in the tools executables for
lgao4 [Fri, 17 Jul 2009 07:37:25 +0000 (07:37 +0000)]
Check in the tools executables for
Microsoft Windows 32-bit Operating Systems compiled by VS2005 and Python25

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1658 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAllow OptionRom overrides to be specified in any order.
jljusten [Tue, 14 Jul 2009 23:32:39 +0000 (23:32 +0000)]
Allow OptionRom overrides to be specified in any order.

Previously the code would fail if the overrides were not specified
in this order:
1. PCI_VENDOR_ID
2. PCI_CLASS_CODE
3. PCI_DEVICE_ID
4. PCI_REVISION
5. COMPRESS

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1657 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAllow COMPRESS to be specified in .inf file for OptionRom building.
jljusten [Tue, 14 Jul 2009 23:32:31 +0000 (23:32 +0000)]
Allow COMPRESS to be specified in .inf file for OptionRom building.
It can also be specified or overridden in the .fdf file.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1656 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix a bug that GenFv tool can't generate the correct top reset vector table.
lgao4 [Mon, 13 Jul 2009 02:56:04 +0000 (02:56 +0000)]
Fix a bug that GenFv tool can't generate the correct top reset vector table.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1655 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoIf PCD's datum type is VOID* and value is an unicode string, build tool need generate...
klu2 [Fri, 10 Jul 2009 09:24:57 +0000 (09:24 +0000)]
If PCD's datum type is VOID* and value is an unicode string, build tool need generate UINT16 array for it but *not* UINT8 array, because UINT16 array will guarantee string aligned at 16-bit boundary.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1654 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoMerge FdfParser.py updates to FdfParserLite.py
jlin16 [Fri, 10 Jul 2009 07:52:24 +0000 (07:52 +0000)]
Merge FdfParser.py updates to FdfParserLite.py

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1653 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoRemove definitions of build machine specific types.
jljusten [Fri, 10 Jul 2009 05:57:36 +0000 (05:57 +0000)]
Remove definitions of build machine specific types.

Remove EFI_IMAGE_OPTIONAL_HEADER, EFI_IMAGE_NT_HEADERS,
EFI_IMAGE_NT_OPTIONAL_HDR_MAGIC, and EFI_IMAGE_MACHINE_TYPE_SUPPORTED,
since these were defined differently based on the architecture
of the build machine.  The BaseTools should support the edk2
supported processor architectures and not depend on the architecture
of the build platform.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1652 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoReplace EFI_IMAGE_NT_HEADERS with EFI_IMAGE_OPTIONAL_HEADER_UNION. (GenFv)
jljusten [Fri, 10 Jul 2009 05:57:28 +0000 (05:57 +0000)]
Replace EFI_IMAGE_NT_HEADERS with EFI_IMAGE_OPTIONAL_HEADER_UNION. (GenFv)

The code referencing EFI_IMAGE_NT_HEADERS has been modified to
refer to EFI_IMAGE_OPTIONAL_HEADER_UNION => Pe32/Pe32Plus.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1651 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoConvert to use EFI_IMAGE_OPTIONAL_HEADER_UNION.
jljusten [Fri, 10 Jul 2009 05:57:20 +0000 (05:57 +0000)]
Convert to use EFI_IMAGE_OPTIONAL_HEADER_UNION.

The EFI_IMAGE_OPTIONAL_HEADER type depended on the architecture
of the machine that the build occured on, but EfiRom should
handle all architectures and image formats independantly from
the architecture of the build machine.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1650 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoReplace EFI_IMAGE_NT_HEADERS with EFI_IMAGE_OPTIONAL_HEADER_UNION.
jljusten [Fri, 10 Jul 2009 05:57:12 +0000 (05:57 +0000)]
Replace EFI_IMAGE_NT_HEADERS with EFI_IMAGE_OPTIONAL_HEADER_UNION.

The code has been modified to only refer to
EFI_IMAGE_OPTIONAL_HEADER_UNION.Pe32 for now, and it needs
further modifications to support other image formats.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1649 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoReplace EFI_IMAGE_NT_HEADERS with EFI_IMAGE_OPTIONAL_HEADER_UNION. (GenFw)
jljusten [Fri, 10 Jul 2009 05:57:05 +0000 (05:57 +0000)]
Replace EFI_IMAGE_NT_HEADERS with EFI_IMAGE_OPTIONAL_HEADER_UNION. (GenFw)

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1648 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoReplace EFI_IMAGE_NT_HEADERS usage with EFI_IMAGE_OPTIONAL_HEADER_UNION.
jljusten [Fri, 10 Jul 2009 01:41:07 +0000 (01:41 +0000)]
Replace EFI_IMAGE_NT_HEADERS usage with EFI_IMAGE_OPTIONAL_HEADER_UNION.

EFI_IMAGE_NT_HEADERS depends on the value of the ARCH environment variable
at the time the BaseTools are built.  This tool should handle all images
architecture and have no dependencies on the architecture of the build
machine.

This change fixes a build error where on x86-64 Linux, the build ARCH
will be X64, and therefore EFI_IMAGE_NT_HEADERS will not have a
BaseOfData member.

This change does not ensure that all input & output images will be
properly handled.  In fact, this tool should be referencing
EFI_IMAGE_OPTIONAL_HEADER_UNION.Pe32Plus to properly support 64-bit
images.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1647 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdded support for the ARM processor type
ajfish [Thu, 9 Jul 2009 23:15:54 +0000 (23:15 +0000)]
Added support for the ARM processor type
Added RVCT as a ToolChainFamily (Real View Compiler Tools from ARM)
Enabled FixedAtBuild 32-bit PCDs to be used from GCC or RVCT assembler.
Updated GenFw to support RVCT ELF images and removed #ifdefs for ELF. Also made ELF to PE/COFF features available on all supported build targets for the tools by adding some FreeBSD ELF headers.
Updated GenFv to support the ARM reset vector in ZeroBytes of the FV header.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1646 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix the issue that ECP directory must exist for build.
xli24 [Thu, 9 Jul 2009 05:01:34 +0000 (05:01 +0000)]
Fix the issue that ECP directory must exist for build.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1645 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd error handling logic that if a source override path in DSC file does not exist...
rsun3 [Thu, 9 Jul 2009 02:46:32 +0000 (02:46 +0000)]
Add error handling logic that if a source override path in DSC file does not exist, the build should break letting the developer know that the SOURCE_OVERRIDE_PATH does not exist.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1644 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoUpdate GenFds to convert workspace path to OS normcase path
lgao4 [Thu, 9 Jul 2009 02:34:57 +0000 (02:34 +0000)]
Update GenFds to convert workspace path to OS normcase path

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1643 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix bugs in conditional statement processing (!if !<Macro> and !ifndef ) in the FDF...
rsun3 [Thu, 9 Jul 2009 02:27:26 +0000 (02:27 +0000)]
Fix bugs in conditional statement processing (!if !<Macro> and !ifndef ) in the FDF Parser.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1642 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoUpdate Build tool to get build rule by BuildRuleFamily and ToolChainFamily.
lgao4 [Thu, 9 Jul 2009 01:22:05 +0000 (01:22 +0000)]
Update Build tool to get build rule by BuildRuleFamily and ToolChainFamily.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1641 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd error check for environment path existence.
xli24 [Wed, 8 Jul 2009 15:44:37 +0000 (15:44 +0000)]
Add error check for environment path existence.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1640 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix the bug of unmatched path due to case-sensitive comparison on case-insensitive...
xli24 [Wed, 8 Jul 2009 08:41:31 +0000 (08:41 +0000)]
Fix the bug of unmatched path due to case-sensitive comparison on case-insensitive systems.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1639 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix the bug that TE image from PIC PeImage can't be dispatched by PeiCore.
lgao4 [Wed, 8 Jul 2009 07:54:06 +0000 (07:54 +0000)]
Fix the bug that TE image from PIC PeImage can't be dispatched by PeiCore.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1638 7335b38e-4728-0410-8992-fb3ffe349368

11 years ago1. Support BuildRuleFamily attribute of tool chain tag to be filtered build rule.
lgao4 [Mon, 6 Jul 2009 09:52:43 +0000 (09:52 +0000)]
1. Support BuildRuleFamily attribute of tool chain tag to be filtered build rule.
2. Enhance GenFds tool to get the default PcdValue from DEC file.
3. Enhance AutoGen to generate library function constructors for SEC type module.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1637 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoreducing down to a single location for the templates that are used for EDK II module...
eric_tian [Thu, 2 Jul 2009 07:18:36 +0000 (07:18 +0000)]
reducing down to a single location for the templates that are used for EDK II module/platform development, Base Tools development, and the build pool. BaseTools project doesn't depend on these files.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1636 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdjust the regular expression to handle more include case.
klu2 [Tue, 30 Jun 2009 07:37:35 +0000 (07:37 +0000)]
Adjust the regular expression to handle more include case.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1634 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAllow ECC to find config.ini from Python's sys.path when Ecc is invoked
jljusten [Wed, 24 Jun 2009 00:15:37 +0000 (00:15 +0000)]
Allow ECC to find config.ini from Python's sys.path when Ecc is invoked
with the BaseTools/BinWrappers/PosixLike/RunToolFromSource script.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1633 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAllow source sub-directories to be symlinks.
jljusten [Wed, 24 Jun 2009 00:15:35 +0000 (00:15 +0000)]
Allow source sub-directories to be symlinks.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1632 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd common python module into dependent files list for freezing binary.
klu2 [Tue, 23 Jun 2009 07:38:34 +0000 (07:38 +0000)]
Add common python module into dependent files list for freezing binary.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1631 7335b38e-4728-0410-8992-fb3ffe349368

11 years agofix the issue that the dependency of some header files is missed in Gnu makefile
klu2 [Tue, 23 Jun 2009 05:29:48 +0000 (05:29 +0000)]
fix the issue that the dependency of some header files is missed in Gnu makefile

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1630 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoECC: replace hard-coded skip directories with reading a list from config.ini file.
jlin16 [Tue, 23 Jun 2009 02:00:46 +0000 (02:00 +0000)]
ECC: replace hard-coded skip directories with reading a list from config.ini file.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1629 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd additional checking for whether need renew the immediate file workspace database...
klu2 [Fri, 19 Jun 2009 15:48:45 +0000 (15:48 +0000)]
Add additional checking for whether need renew the immediate file workspace database, the renew reason maybe:
The renew reason maybe:
1) If user force to renew;
2) If user do not force renew, and
    a) If the time of last modified python source is newer than database file;
    b) If the time of last modified frozen executable file is newer than database file, the executable file is build.exe in window and build in Linux/Unix/OSX

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1628 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd test to run py_compile.compile on all .py files under Source/Python.
jljusten [Thu, 18 Jun 2009 07:06:32 +0000 (07:06 +0000)]
Add test to run py_compile.compile on all .py files under Source/Python.
This will provide a Python syntax check on each file.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1627 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoECC: Further decrease the number of searching in all include files.
jlin16 [Thu, 18 Jun 2009 06:49:09 +0000 (06:49 +0000)]
ECC: Further decrease the number of searching in all include files.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1626 7335b38e-4728-0410-8992-fb3ffe349368

11 years ago1. Add a filter for ECC to skip some directories which needn't be parsed.
hchen30 [Wed, 17 Jun 2009 06:01:25 +0000 (06:01 +0000)]
1. Add a filter for ECC to skip some directories which needn't be parsed.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1625 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd missing python binary to makefile
klu2 [Fri, 12 Jun 2009 01:40:05 +0000 (01:40 +0000)]
Add missing python binary to makefile

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1624 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix the bug to make uni files of one module in the same order to be parsed.
lgao4 [Thu, 11 Jun 2009 09:25:26 +0000 (09:25 +0000)]
Fix the bug to make uni files of one module in the same order to be parsed.
Fix the bug to run target to run secmain in Linux

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1623 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoOptimize predicate expression format check by merging BOOLEAN, non-BOOLEAN and pointe...
jlin16 [Thu, 11 Jun 2009 05:19:50 +0000 (05:19 +0000)]
Optimize predicate expression format check by merging BOOLEAN, non-BOOLEAN and pointer variable check into one call.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1622 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoOptimize compound type format check by skipping search every header file if current...
jlin16 [Wed, 10 Jun 2009 02:55:54 +0000 (02:55 +0000)]
Optimize compound type format check by skipping search every header file if current file already match the format standard.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1621 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix a typo in help message.
klu2 [Fri, 5 Jun 2009 05:17:31 +0000 (05:17 +0000)]
Fix a typo in help message.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1620 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoRevert r1617 pending further testing that the ELF32=>PE32 conversion
jljusten [Fri, 5 Jun 2009 02:06:40 +0000 (02:06 +0000)]
Revert r1617 pending further testing that the ELF32=>PE32 conversion
is still functional.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1619 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoUpdate GenFw to support ELF64=>PE32+ conversions in addition to
jljusten [Fri, 5 Jun 2009 01:55:06 +0000 (01:55 +0000)]
Update GenFw to support ELF64=>PE32+ conversions in addition to
the previous ELF32=>PE32 conversion support.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1617 7335b38e-4728-0410-8992-fb3ffe349368

11 years ago1. Adjust code to ignore raising errors when parsing INF/DSC/DEC of edk code in ECC...
hchen30 [Thu, 4 Jun 2009 06:10:41 +0000 (06:10 +0000)]
1. Adjust code to ignore raising errors when parsing INF/DSC/DEC of edk code in ECC checking.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1616 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix build failure issue that if PCD's value is blank string.
klu2 [Thu, 4 Jun 2009 03:16:06 +0000 (03:16 +0000)]
Fix build failure issue that if PCD's value is blank string.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1615 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoUpdate GenFw tool to zero time/date by default
lgao4 [Wed, 3 Jun 2009 03:19:53 +0000 (03:19 +0000)]
Update GenFw tool to zero time/date by default

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1614 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix bug to fill Startup AP Vector address.
lgao4 [Tue, 2 Jun 2009 08:48:36 +0000 (08:48 +0000)]
Fix bug to fill Startup AP Vector address.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1613 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoThe MULTIPLE_THREAD should be choice from "Disable", "Enable" but not "TRUE", "FALSE"
klu2 [Tue, 2 Jun 2009 07:11:34 +0000 (07:11 +0000)]
The MULTIPLE_THREAD should be choice from "Disable", "Enable" but not "TRUE", "FALSE"

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1612 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd -e option for user specifying whether enable multi-thread
klu2 [Tue, 2 Jun 2009 03:12:22 +0000 (03:12 +0000)]
Add -e option for user specifying whether enable multi-thread

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1611 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoJudge whether tool chain tag exist for searching external tools.
klu2 [Mon, 1 Jun 2009 08:50:14 +0000 (08:50 +0000)]
Judge whether tool chain tag exist for searching external tools.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1610 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd more judgement for workspace path which maybe cause failure in linux
klu2 [Mon, 1 Jun 2009 07:16:51 +0000 (07:16 +0000)]
Add more judgement for workspace path which maybe cause failure in linux

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1609 7335b38e-4728-0410-8992-fb3ffe349368

11 years agomodify the soft linke of GenDepex to point to actual tool path
eric_tian [Mon, 1 Jun 2009 06:41:11 +0000 (06:41 +0000)]
modify the soft linke of GenDepex to point to actual tool path

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1608 7335b38e-4728-0410-8992-fb3ffe349368

11 years ago1. Add the missing user manual for the tool: GenCrc32, GenDepex, LzmaCompress, Target...
lgao4 [Mon, 1 Jun 2009 01:43:28 +0000 (01:43 +0000)]
1. Add the missing user manual for the tool: GenCrc32, GenDepex, LzmaCompress, TargetTool, Trim and VfrCompiler.
2. Remove the user manual for the obsolete tools : ContextTool, Fd.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1607 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoUpdate StrGather to support only RFC 4646 language codes in .UNI files in native...
rsun3 [Sun, 31 May 2009 07:44:14 +0000 (07:44 +0000)]
Update StrGather to support only RFC 4646 language codes in .UNI files in native mode. Add a new build flag '-s' to support building .UNI files with ISO 639-2 language codes of EDK Shell in EDK2.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1606 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix functionality bug that build tool can not handle array VOID* datum type value...
klu2 [Wed, 27 May 2009 09:49:27 +0000 (09:49 +0000)]
Fix functionality bug that build tool can not handle array VOID* datum type value for dynamic PCD.
1) PCD database is changed that StringTable is defined as UINT8 rather than original UINT16, because StringTable maybe hold the byte array and ANSCI string value.
2) To make sure the Unicode string is aligned to double byte boundary, build tool will sort string table order that the unicode type string will be stored firstly, then HII's variable name is stored, then byte array and ANSCI array is stored.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1605 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoCorrect the error in usage manual.
lgao4 [Tue, 26 May 2009 09:06:19 +0000 (09:06 +0000)]
Correct the error in usage manual.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1604 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoCorrect to get the input value by AsciiStringToUint64 API. The input parameter must...
lgao4 [Tue, 26 May 2009 09:00:25 +0000 (09:00 +0000)]
Correct to get the input value by AsciiStringToUint64 API. The input parameter must be pointer to UINT64.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1603 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd soft link for all tools
klu2 [Tue, 26 May 2009 08:17:32 +0000 (08:17 +0000)]
Add soft link for all tools

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1602 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd GnuGenBootSector soft link
klu2 [Tue, 26 May 2009 08:02:25 +0000 (08:02 +0000)]
Add GnuGenBootSector soft link

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1601 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix the incorrect parser to the input parameter.
lgao4 [Tue, 26 May 2009 07:24:18 +0000 (07:24 +0000)]
Fix the incorrect parser to the input parameter.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1600 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoHelp rui check-in patch for updating StrGather python script.
klu2 [Tue, 26 May 2009 03:23:59 +0000 (03:23 +0000)]
Help rui check-in patch for updating StrGather python script.
1. Apply ISO 639-2 language codes to RFC 4646 codes conversion algorithm in compatibility mode;
2. Add basic format check for RFC 4646 codes in native mode.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1599 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoMinor update
lgao4 [Mon, 25 May 2009 08:20:26 +0000 (08:20 +0000)]
Minor update

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1598 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoadd GenCrc32 to build target for GCC toolchain.
eric_tian [Mon, 25 May 2009 06:37:26 +0000 (06:37 +0000)]
add GenCrc32 to build target for GCC toolchain.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1597 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd the checking to the input parameter of tools.
lgao4 [Mon, 25 May 2009 05:53:25 +0000 (05:53 +0000)]
Add the checking to the input parameter of tools.
Support the tool parameter options according to tool user manual.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1596 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoRemove unused option -m, --mbr for GenPage tool
lgao4 [Mon, 25 May 2009 03:33:48 +0000 (03:33 +0000)]
Remove unused option -m, --mbr for GenPage tool

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1595 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoCorrect TianoCompress -d option.
lgao4 [Mon, 25 May 2009 03:32:03 +0000 (03:32 +0000)]
Correct TianoCompress -d option.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1594 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoNeed generate different value macro for PathableInModule type PCD against with FixeAt...
klu2 [Thu, 21 May 2009 08:24:41 +0000 (08:24 +0000)]
Need generate different value macro for PathableInModule type PCD against with FixeAtBuild type.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1593 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoTAB character need to be skipped.
klu2 [Thu, 21 May 2009 04:38:20 +0000 (04:38 +0000)]
TAB character need to be skipped.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1592 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix bug in the processing of backslashes in UNI files.
mdkinney [Tue, 19 May 2009 23:33:06 +0000 (23:33 +0000)]
Fix bug in the processing of backslashes in UNI files.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1591 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoOriginally, there are following implementation:
klu2 [Mon, 18 May 2009 07:09:22 +0000 (07:09 +0000)]
Originally, there are following implementation:
1) The collect action of platform's dynamic PCD database is trigged by module's autogen action.
2) If platform is used for more than one architecture, two platform object will be created

Above two rules will cause an issue for single module building that if
1) platform support IA32 and X64
2) do single module for X64 module

then, the dynamic PCD for IA32 modules will missed in PCD database, because no IA32 module need autogen so collection action for IA32 module is not trigged.

Now, I think the collection action for platform dynamic PCD should be explicitly called after PlatformAutoGen is created.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1590 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAllow parameters to be specified after the input file. It was
jljusten [Fri, 15 May 2009 05:44:10 +0000 (05:44 +0000)]
Allow parameters to be specified after the input file.  It was
found that using --debug during a build would fail since the
--debug parameters was passed to LzmaCompress following the input
filename.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1589 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoSend '--debug' rather than '-d' to sub-processes, because GUIDed
jljusten [Fri, 15 May 2009 05:44:08 +0000 (05:44 +0000)]
Send '--debug' rather than '-d' to sub-processes, because GUIDed
section tools use '-d' for decode.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1588 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoMake sure the 'xdata' section was found before trying to
jljusten [Wed, 13 May 2009 05:49:45 +0000 (05:49 +0000)]
Make sure the 'xdata' section was found before trying to
zero its contents.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1587 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix bugs for -b option
klu2 [Wed, 13 May 2009 05:28:57 +0000 (05:28 +0000)]
Fix bugs for -b option

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1586 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd valid range checking for count of multi-thread
klu2 [Tue, 12 May 2009 07:40:03 +0000 (07:40 +0000)]
Add valid range checking for count of multi-thread

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1585 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd missing type specific for command line option
klu2 [Tue, 12 May 2009 07:28:55 +0000 (07:28 +0000)]
Add missing type specific for command line option

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1584 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd checking for options number to avoid user's confusion.
klu2 [Tue, 12 May 2009 07:17:18 +0000 (07:17 +0000)]
Add checking for options number to avoid user's confusion.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1583 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoif target directory is missing, create it for all file type.
klu2 [Tue, 12 May 2009 06:38:47 +0000 (06:38 +0000)]
if target directory is missing, create it for all file type.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1582 7335b38e-4728-0410-8992-fb3ffe349368

11 years agomake tool intelligence for missing configuration options in target.txt
klu2 [Tue, 12 May 2009 06:09:32 +0000 (06:09 +0000)]
make tool intelligence for missing configuration options in target.txt

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1581 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoUpdate GenFw help usage to clarify the -z option.
lgao4 [Tue, 12 May 2009 04:54:39 +0000 (04:54 +0000)]
Update GenFw help usage to clarify the -z option.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1580 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix typo
klu2 [Tue, 12 May 2009 03:29:03 +0000 (03:29 +0000)]
Fix typo

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1579 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoFix typo
klu2 [Tue, 12 May 2009 03:28:35 +0000 (03:28 +0000)]
Fix typo

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1578 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd more validation for input parameters.
klu2 [Mon, 11 May 2009 07:44:16 +0000 (07:44 +0000)]
Add more validation for input parameters.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1577 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd warning message that tool chain tag will be ignored if user provide output direct...
klu2 [Mon, 11 May 2009 07:02:09 +0000 (07:02 +0000)]
Add warning message that tool chain tag will be ignored if user provide output directory explicitly

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1576 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd validation for workspace's path.
klu2 [Mon, 11 May 2009 05:48:56 +0000 (05:48 +0000)]
Add validation for workspace's path.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1575 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd Fv name checking for building tools if user gives Fv name from build command...
klu2 [Mon, 11 May 2009 05:33:37 +0000 (05:33 +0000)]
Add Fv name checking for building tools if user gives Fv name from build command line. Originally, this checking is only be done by GenFds tool, that is too later.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1574 7335b38e-4728-0410-8992-fb3ffe349368

11 years agomove parameter checking code out of action checking code.
klu2 [Mon, 11 May 2009 03:17:37 +0000 (03:17 +0000)]
move parameter checking code out of action checking code.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1573 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoRemove -c options for GenFds tool because it does not defined in any specification.
klu2 [Mon, 11 May 2009 03:00:24 +0000 (03:00 +0000)]
Remove -c options for GenFds tool because it does not defined in any specification.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1572 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd frozen action for targettool in python tool's build makefile.
klu2 [Mon, 11 May 2009 02:33:39 +0000 (02:33 +0000)]
Add frozen action for targettool in python tool's build makefile.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1571 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd set/get/clean for BUILD_RULE_CONF item in target.txt for TargetTool
klu2 [Mon, 11 May 2009 02:21:53 +0000 (02:21 +0000)]
Add set/get/clean for BUILD_RULE_CONF item in target.txt for TargetTool

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1570 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoECC: add nested structure checking.
jlin16 [Wed, 6 May 2009 08:16:02 +0000 (08:16 +0000)]
ECC: add nested structure checking.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1569 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd additional command line switches to LzmaCompress.
jljusten [Wed, 6 May 2009 07:20:48 +0000 (07:20 +0000)]
Add additional command line switches to LzmaCompress.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1568 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd 'lzma.txt' from LZMA SDK 4.65 for documentation purposes.
jljusten [Wed, 6 May 2009 07:20:46 +0000 (07:20 +0000)]
Add 'lzma.txt' from LZMA SDK 4.65 for documentation purposes.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1567 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoUpdate EfiRom to handle ClassCode and CodeRevision option correctly.
lgao4 [Tue, 5 May 2009 07:30:44 +0000 (07:30 +0000)]
Update EfiRom to handle ClassCode and CodeRevision option correctly.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1566 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoGenFds change command line option from '-I' to '-l'
jlin16 [Tue, 5 May 2009 06:17:00 +0000 (06:17 +0000)]
GenFds change command line option from '-I' to '-l'

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1565 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoAdd SMM_DRIVER and SMM_CORE support
jwang36 [Tue, 5 May 2009 06:00:09 +0000 (06:00 +0000)]
Add SMM_DRIVER and SMM_CORE support

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1564 7335b38e-4728-0410-8992-fb3ffe349368

11 years agoGenFds: add support for Option ROM parameter override of those in INF file.
jlin16 [Tue, 5 May 2009 05:23:15 +0000 (05:23 +0000)]
GenFds: add support for Option ROM parameter override of those in INF file.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1563 7335b38e-4728-0410-8992-fb3ffe349368