11 years agoFix the issue that EFI_IFR_RESET_BUTTON is incorrectly listed as a question.
qhuang8 [Wed, 19 Aug 2009 13:29:29 +0000 (13:29 +0000)]
Fix the issue that EFI_IFR_RESET_BUTTON is incorrectly listed as a question.

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

11 years agoAdd the dependency for the capsule generation.
lgao4 [Mon, 17 Aug 2009 02:54:46 +0000 (02:54 +0000)]
Add the dependency for the capsule generation.

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

11 years agoChange the default location for IASL on Unix.
jljusten [Sat, 15 Aug 2009 05:05:00 +0000 (05:05 +0000)]
Change the default location for IASL on Unix.

The default is now /usr/bin/iasl, but $(HOME)/programs/iasl is
also shown as a commented example.

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

11 years agoRemove '/' directory separator from CYGWIN & UNIXGCC tool specications.
jljusten [Sat, 15 Aug 2009 05:04:59 +0000 (05:04 +0000)]
Remove '/' directory separator from CYGWIN & UNIXGCC tool specications.

This allows for the UNIXGCC_*_PETOOLS_PREFIX and CYGWIN_* macros
to potentially have a prefix before the executable name.  This allows
more flexibility for gcc/binutils when the executables include
a prefix.  Some commented examples are shown where this might be used.
For example:
  DEFINE UNIXGCC_IA32_PETOOLS_PREFIX = ENV(HOME)/programs/gcc/ia32/bin/i686-pc-mingw32-

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

11 years agoFix warning seen with GCC.
jljusten [Fri, 14 Aug 2009 06:03:54 +0000 (06:03 +0000)]
Fix warning seen with GCC.

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

11 years agoFix a python syntax error.
qhuang8 [Fri, 14 Aug 2009 01:07:27 +0000 (01:07 +0000)]
Fix a python syntax error.
If we use "from Common.BuildToolError import *", we really do not need "BuildToolError." name space, which is only required when we use "from Common.BuildToolError import BuildToolError"

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

11 years agoFix GenFvImage to generate FvImage when the required size is same to the size of...
lgao4 [Thu, 13 Aug 2009 09:40:49 +0000 (09:40 +0000)]
Fix GenFvImage to generate FvImage when the required size is same to the size of Fv image.

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

11 years agoUpdate Base Tools Source to integrate patch contributed by Andrew Fish
qhuang8 [Thu, 13 Aug 2009 02:05:23 +0000 (02:05 +0000)]
Update Base Tools Source to integrate patch contributed by Andrew Fish

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

11 years agoDon't check acpi table length for the revision values larger than the largest publish...
lgao4 [Wed, 12 Aug 2009 01:23:33 +0000 (01:23 +0000)]
Don't check acpi table length for the revision values larger than the largest published value.

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

11 years agoRemove duplicate MIN and MAX macro functions, for they are already defined in BaseTyp...
qhuang8 [Tue, 11 Aug 2009 15:40:46 +0000 (15:40 +0000)]
Remove duplicate MIN and MAX macro functions, for they are already defined in BaseTypes.h in BaseTools C source project.

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

11 years agoFix warnings generated by GCC 4.3.3 under Linux x86-64.
jljusten [Sat, 8 Aug 2009 23:59:51 +0000 (23:59 +0000)]
Fix warnings generated by GCC 4.3.3 under Linux x86-64.

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

11 years agoScrub BaseTools C Source to solve some gaps between EFI BaseTypes to POSIX types...
qhuang8 [Fri, 7 Aug 2009 11:54:30 +0000 (11:54 +0000)]
Scrub BaseTools C Source to solve some gaps between EFI BaseTypes to POSIX types for printf() and other libc functions.
The following rules are applied:
INT8, INT16   => "%d" with no type cast required.                            e.g. printf ("%d", Int16Value);
UINT8, UINT16 => "%u","%x" or "%X" with no type cast required.               e.g. printf ("%x", Uint16Value);
INT32         => "%d" with type-cast (int)                                   e.g. printf ("%d", (int) Int32Value);
UINT32        => "%u","%x" or "%X" with type-cast (unsigned)                 e.g. printf ("%u", (unsigned) Uint32Value)
INT64         => "%lld" with type-cast (long long)                           e.g. printf ("%lld", (long long) Int64Value);
UINT64        => "%llu", "%llx" or "llX" with type-cast (unsigned long long) e.g. printf ("%llX", (unsigned long long) Uint64Value);

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

11 years agoPrint compiling error message for testing python code
klu2 [Thu, 6 Aug 2009 02:16:48 +0000 (02:16 +0000)]
Print compiling error message for testing python code

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

11 years agoUpdate links for broken urls in BaseTools/gcc/mingw-gcc-build.py script.
jljusten [Wed, 5 Aug 2009 21:11:57 +0000 (21:11 +0000)]
Update links for broken urls in BaseTools/gcc/mingw-gcc-build.py script.

Please note that the new version of mingw-w64-snapshot-20090419.tar.bz2
requires a modification of
within the edk2 source tree.

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

11 years agoAdd endopcode for Default and Value statement according to UEFI2.1 spec.
lgao4 [Wed, 5 Aug 2009 06:17:36 +0000 (06:17 +0000)]
Add endopcode for Default and Value statement according to UEFI2.1 spec.

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

11 years ago1. Fix a bug in parse meta-data files to skip directory listed in config.ini.
hchen30 [Tue, 4 Aug 2009 04:15:05 +0000 (04:15 +0000)]
1. Fix a bug in parse meta-data files to skip directory listed in config.ini.

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

11 years agoAdd check for python 2.5 or newer to mingw-gcc-build.py.
jljusten [Thu, 30 Jul 2009 21:03:34 +0000 (21:03 +0000)]
Add check for python 2.5 or newer to mingw-gcc-build.py.

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

11 years ago1. Add a checkpoint for ECC meta-data parse to ignore non-existing !include dsc file.
hchen30 [Wed, 29 Jul 2009 05:40:07 +0000 (05:40 +0000)]
1. Add a checkpoint for ECC meta-data parse to ignore non-existing !include dsc file.

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

11 years agoThis file is unused, so it is getting removed.
ajfish [Thu, 23 Jul 2009 00:53:22 +0000 (00:53 +0000)]
This file is unused, so it is getting removed.

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

11 years agoFix python directory key error in case build rule family is not defined.
qhuang8 [Wed, 22 Jul 2009 09:45:10 +0000 (09:45 +0000)]
Fix python directory key error in case build rule family is not defined.

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

11 years agoInitialize 'FamilyIsNull' to True to avoid reference to uninitialized local variable.
qhuang8 [Wed, 22 Jul 2009 06:00:51 +0000 (06:00 +0000)]
Initialize 'FamilyIsNull' to True to avoid reference to uninitialized local variable.

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

11 years ago1. Clean up all warnings for C source files in Base tool project.
qhuang8 [Wed, 22 Jul 2009 05:09:46 +0000 (05:09 +0000)]
1. Clean up all warnings for C source files in Base tool project.
2. Turn on warning as error for GCC and MSFT CFLAGS so that build will break if a developer introduces a warning during development.
3. Increase waring level to /W4 for MSFT tool chain to detect more warnings in C source code.

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

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:

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.

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

jljusten [Fri, 10 Jul 2009 05:57:28 +0000 (05:57 +0000)]

The code referencing EFI_IMAGE_NT_HEADERS has been modified to

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)]

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

jljusten [Fri, 10 Jul 2009 05:57:12 +0000 (05:57 +0000)]

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

jljusten [Fri, 10 Jul 2009 05:57:05 +0000 (05:57 +0000)]

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

jljusten [Fri, 10 Jul 2009 01:41:07 +0000 (01:41 +0000)]

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

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

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

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