people/mcb30/basetools.git
14 years agoa. Changed the code to use PCD's value as default value of the default value of its...
jwang36 [Fri, 7 Dec 2007 09:42:49 +0000 (09:42 +0000)]
a. Changed the code to use PCD's value as default value of the default value of its sku, when the PCD is not defined in DSC file.
b. Fixed an issue of comparing string with digital

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

14 years agoChanged the "DefaultValue" of default sku to be string "0" not digital 0
jwang36 [Fri, 7 Dec 2007 08:04:34 +0000 (08:04 +0000)]
Changed the "DefaultValue" of default sku to be string "0" not digital 0

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

14 years agoAdded DataArray support when calculating datum size
jwang36 [Fri, 7 Dec 2007 06:44:22 +0000 (06:44 +0000)]
Added DataArray support when calculating datum size

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

14 years agoAdded code to calculate the string size for PCD with datum type "VOID*", if MaxDatumS...
jwang36 [Fri, 7 Dec 2007 05:49:12 +0000 (05:49 +0000)]
Added code to calculate the string size for PCD with datum type "VOID*", if MaxDatumSize is not specified.

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

14 years agoSeveral minor improvements
jwang36 [Fri, 7 Dec 2007 05:02:40 +0000 (05:02 +0000)]
Several minor improvements

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

14 years agoAdded "DEFAULT" SkuId to dynamic PCD not found in DSC file
jwang36 [Fri, 7 Dec 2007 03:35:55 +0000 (03:35 +0000)]
Added "DEFAULT" SkuId to dynamic PCD not found in DSC file

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

14 years agoUpdated usage messages to use the same tag names as they appear in the target.txt...
lhauch [Fri, 7 Dec 2007 00:09:08 +0000 (00:09 +0000)]
Updated usage messages to use the same tag names as they appear in the target.txt file.

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

14 years agoCommented out the unnecessary code to override the PCD type with type in DSC file...
jwang36 [Thu, 6 Dec 2007 09:44:05 +0000 (09:44 +0000)]
Commented out the unnecessary code to override the PCD type with type in DSC file, because this have been done during autogen stage.

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

14 years agoFixed tracker 717 to use the constructor/destructor according to the library's type.
jwang36 [Wed, 5 Dec 2007 06:37:41 +0000 (06:37 +0000)]
Fixed tracker 717 to use the constructor/destructor according to the library's type.

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

14 years agoBaseTools/Source/C/Common/GNUmakefile
jljusten [Tue, 4 Dec 2007 22:01:02 +0000 (22:01 +0000)]
BaseTools/Source/C/Common/GNUmakefile
  Fixed OsPath.obj to OsPath.o

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

14 years agoFixed the PCD type choosing issue when it's not found in DSC file.
jwang36 [Tue, 4 Dec 2007 16:46:45 +0000 (16:46 +0000)]
Fixed the PCD type choosing issue when it's not found in DSC file.

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

14 years agoAdded code to always check if a toke space GUID is defined in a package.
jwang36 [Tue, 4 Dec 2007 06:59:48 +0000 (06:59 +0000)]
Added code to always check if a toke space GUID is defined in a package.

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

14 years agoFixed the PCD type choosing error if it is not defined in DSC file
jwang36 [Tue, 4 Dec 2007 06:56:52 +0000 (06:56 +0000)]
Fixed the PCD type choosing error if it is not defined in DSC file

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

14 years agoadded BaseTools/Makefile
jljusten [Mon, 3 Dec 2007 22:54:46 +0000 (22:54 +0000)]
added      BaseTools/Makefile
modified   BaseTools/Source/Python/Makefile
modified   BaseTools/toolsetup.bat
  Moved code from toolsetup.bat into Makefile and Source/Python/Makefile
  in order to separate out C and Python building.  Now after the
  environment is initialized, you can just run nmake to build both C and
  Python tools.  Alternatively you can run 'nmake c' or 'nmake python'
  to only build the applicable set of tools.

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

14 years agomodified BaseTools/Source/C/GNUmakefile
jljusten [Mon, 3 Dec 2007 22:07:21 +0000 (22:07 +0000)]
modified   BaseTools/Source/C/GNUmakefile
modified   BaseTools/Source/C/Makefile
added      BaseTools/Source/C/VolInfo
added      BaseTools/Source/C/VolInfo/GNUmakefile
added      BaseTools/Source/C/VolInfo/Makefile
added      BaseTools/Source/C/VolInfo/VolInfo.c
added      BaseTools/Source/C/VolInfo/VolInfo.h
  Added VolInfo tool.

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

14 years agoadded BaseTools/Source/C/Common/BinderFuncs.c
jljusten [Mon, 3 Dec 2007 18:30:50 +0000 (18:30 +0000)]
added      BaseTools/Source/C/Common/BinderFuncs.c
added      BaseTools/Source/C/Common/BinderFuncs.h
added      BaseTools/Source/C/Common/FirmwareVolumeBuffer.c
added      BaseTools/Source/C/Common/FirmwareVolumeBufferLib.h
modified   BaseTools/Source/C/Common/GNUmakefile
modified   BaseTools/Source/C/Common/Makefile
  Added 'FvBuf' library.  It has a consistent function prefix ('FvBuf')
  and the functions can operate on multiple FVs at the same time.  (In
  FvLib.c, InitializeFvLib call ties the functions to a single FV.)

  The BinderFuncs.* files are functions that make the FvBuf library code
  usable in other environments, such as UEFI applications or drivers.
  In the case of BinderFuncs.c, the code targets the ANSI C type of
  environment.

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

14 years agoFixed an incorrect use of EdkLogger.error()
jwang36 [Fri, 30 Nov 2007 09:52:54 +0000 (09:52 +0000)]
Fixed an incorrect use of EdkLogger.error()

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

14 years agoMoved the clear action to the place before exiting scheduler
jwang36 [Fri, 30 Nov 2007 09:27:35 +0000 (09:27 +0000)]
Moved the clear action to the place before exiting scheduler

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

14 years agoFixed incorrect indention in Makefile template.
jwang36 [Fri, 30 Nov 2007 09:26:09 +0000 (09:26 +0000)]
Fixed incorrect indention in Makefile template.

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

14 years agoFixed multi-target build issue.
jwang36 [Fri, 30 Nov 2007 08:53:20 +0000 (08:53 +0000)]
Fixed multi-target build issue.

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

14 years agoAdded code to check if FvDir exists or not because open() won't create file if the...
jwang36 [Fri, 30 Nov 2007 07:20:37 +0000 (07:20 +0000)]
Added code to check if FvDir exists or not because open() won't create file if the directory doesn't exist.

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

14 years agoFixed an issue which will cause wrong library instances used for constructor re-ordering.
jwang36 [Fri, 30 Nov 2007 07:04:55 +0000 (07:04 +0000)]
Fixed an issue which will cause wrong library instances used for constructor re-ordering.

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

14 years agomodified BaseTools/Source/C/Common/CommonLib.c
jljusten [Fri, 30 Nov 2007 00:43:55 +0000 (00:43 +0000)]
modified   BaseTools/Source/C/Common/CommonLib.c
modified   BaseTools/Source/C/Common/CommonLib.h
modified   BaseTools/Source/C/Common/GNUmakefile
modified   BaseTools/Source/C/Common/Makefile
added      BaseTools/Source/C/Common/OsPath.c
added      BaseTools/Source/C/Common/OsPath.h
  Moved function: DoesFileExist to OsPath.c and renamed to OsPathExists
  Added OsPath.c/OsPath.h for functions related to filename paths.

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

14 years agomodified BaseTools/Source/C/Common/CommonLib.c
jljusten [Fri, 30 Nov 2007 00:31:31 +0000 (00:31 +0000)]
modified   BaseTools/Source/C/Common/CommonLib.c
modified   BaseTools/Source/C/Common/CommonLib.h
  Added function: DoesFileExist

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

14 years agomodified BaseTools/Source/C/Common/GNUmakefile
jljusten [Thu, 29 Nov 2007 21:49:25 +0000 (21:49 +0000)]
modified   BaseTools/Source/C/Common/GNUmakefile
modified   BaseTools/Source/C/Common/Makefile
added      BaseTools/Source/C/Common/ParseGuidedSectionTools.c
added      BaseTools/Source/C/Common/ParseGuidedSectionTools.h
  Added functions to parse GuidedSectionTools.txt which is
  generated by the build(.exe) tool in the FV output directory.

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

14 years agomodified BaseTools/Source/C/Common/GNUmakefile
jljusten [Thu, 29 Nov 2007 19:05:21 +0000 (19:05 +0000)]
modified   BaseTools/Source/C/Common/GNUmakefile
modified   BaseTools/Source/C/Common/Makefile
added      BaseTools/Source/C/Common/StringFuncs.c
added      BaseTools/Source/C/Common/StringFuncs.h
  Added 'string functions' including the ability to have an
  easy to work with 'string list'.

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

14 years agomodified BaseTools/Source/C/Common/GNUmakefile
jljusten [Thu, 29 Nov 2007 18:31:19 +0000 (18:31 +0000)]
modified   BaseTools/Source/C/Common/GNUmakefile
modified   BaseTools/Source/C/Common/Makefile
added      BaseTools/Source/C/Common/MemoryFile.c
added      BaseTools/Source/C/Common/MemoryFile.h
modified   BaseTools/Source/C/Common/ParseInf.h
  Separated 'memory file' routines out into separate files.

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

14 years agoBaseTools/Source/Python/build/build.py:
jljusten [Thu, 29 Nov 2007 17:52:22 +0000 (17:52 +0000)]
BaseTools/Source/Python/build/build.py:
  Generate GuidedSectionTools.txt as a sibling to the
  firmware volumes files.  This file will concisely list
  which tools can be used to decode guided sections
  within the firmware volume.

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

14 years agoBaseTools/Source/C/Common/CommonLib.c:
jljusten [Thu, 29 Nov 2007 00:00:04 +0000 (00:00 +0000)]
BaseTools/Source/C/Common/CommonLib.c:
BaseTools/Source/C/Common/CommonLib.h:
  Added PutFileImage function to CommonLib.  This helper
  function makes it very simple to write out a binary
  file.  It is very similar to the GetFileImage function,
  except it writes the file rather than reading it.

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

14 years agoRemoved conflicting '-d' option for setting the debug level. The '--debug' form...
jljusten [Wed, 28 Nov 2007 00:14:52 +0000 (00:14 +0000)]
Removed conflicting '-d' option for setting the debug level.  The '--debug' form of the same option can still be used.

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

14 years agoCheck in config.ini used in ECC tool
hche10x [Tue, 27 Nov 2007 05:32:43 +0000 (05:32 +0000)]
Check in config.ini used in ECC tool

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

14 years agoinitial C file content recognizer generated by ANTLR using C.g; but Fail to recognize...
jlin16 [Tue, 27 Nov 2007 03:50:59 +0000 (03:50 +0000)]
initial C file content recognizer generated by ANTLR using C.g; but Fail to recognize some MACRO wrapped statement now.

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

14 years agoClean up: update "EFI" to "UEFI" if applicable.
qhuang8 [Thu, 22 Nov 2007 06:09:46 +0000 (06:09 +0000)]
Clean up: update "EFI" to "UEFI" if applicable.

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

14 years agoUpdate comments info to tell user set PATH.
lgao4 [Wed, 21 Nov 2007 06:01:24 +0000 (06:01 +0000)]
Update comments info to tell user set PATH.

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

14 years agocheck BASE_TOOLS_PATH
lgao4 [Wed, 21 Nov 2007 05:51:43 +0000 (05:51 +0000)]
check BASE_TOOLS_PATH

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

14 years agoAdd Variable Header and WorkingBlockHeader definition.
lgao4 [Wed, 21 Nov 2007 05:46:05 +0000 (05:46 +0000)]
Add Variable Header and WorkingBlockHeader definition.

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

14 years agoAdd GenCrc32 tool, and Update GenFfs tool to add alignment for TeSection.
lgao4 [Wed, 21 Nov 2007 03:34:30 +0000 (03:34 +0000)]
Add GenCrc32 tool, and Update GenFfs tool to add alignment for TeSection.

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

14 years agoAdd back up VfrCompile tool in main Makefile
lgao4 [Mon, 19 Nov 2007 08:54:20 +0000 (08:54 +0000)]
Add back up VfrCompile tool in main Makefile

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

14 years agoMinor change for GenFv to support capsule attribute, GenSec to support guid header...
lgao4 [Mon, 19 Nov 2007 08:37:18 +0000 (08:37 +0000)]
Minor change for GenFv to support capsule attribute, GenSec to support guid header size and GenFw to process microcode.txt

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

14 years agoRevised error message for a module that is not required by a Platform when building...
lhauch [Wed, 14 Nov 2007 19:39:21 +0000 (19:39 +0000)]
Revised error message for a module that is not required by a Platform when building just the module

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

14 years agoPort r869 Makefile change to GNUmakefile.
jljusten [Tue, 13 Nov 2007 17:23:24 +0000 (17:23 +0000)]
Port r869 Makefile change to GNUmakefile.

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

14 years ago1. Remove "/" or "\" following $(WORKSPACE) before getting real path when parsing...
hche10x [Thu, 8 Nov 2007 05:21:28 +0000 (05:21 +0000)]
1. Remove "/" or "\" following $(WORKSPACE) before getting real path when parsing DSC files

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

14 years agoChanged the position of MAKE* macros in platform's makefile
jwang36 [Thu, 8 Nov 2007 03:51:33 +0000 (03:51 +0000)]
Changed the position of MAKE* macros in platform's makefile

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

14 years agoAdded "MAKE_FILE" macro in platform and module's makefile
jwang36 [Thu, 8 Nov 2007 03:14:32 +0000 (03:14 +0000)]
Added "MAKE_FILE" macro in platform and module's makefile

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

14 years agoFix bug to use local variable without init value.
lgao4 [Wed, 7 Nov 2007 07:50:03 +0000 (07:50 +0000)]
Fix bug to use local variable without init value.

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

14 years agocopy .map file to output directory for the file which is used to generate section...
jlin16 [Wed, 7 Nov 2007 05:51:01 +0000 (05:51 +0000)]
copy .map file to output directory for the file which is used to generate section in FILE statement.

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

14 years agoUpdate GenFv, GenFw and GenVtf tool to support reloc section stripped, PAD file with...
lgao4 [Tue, 6 Nov 2007 11:16:36 +0000 (11:16 +0000)]
Update GenFv, GenFw and GenVtf tool to support reloc section stripped, PAD file with same guid and check no duplicated guid file in the same fv.

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

14 years agochange file name extension before relocation strip from .reloc to .efi; after relocat...
jlin16 [Tue, 6 Nov 2007 09:18:48 +0000 (09:18 +0000)]
change file name extension before relocation strip from .reloc to .efi; after relocation strip from .stipped to stripped.
Fix bug in FDF parser for GetNextToken and UndoToken.

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

14 years agoDetect region out of order or overlap.
jlin16 [Mon, 5 Nov 2007 08:19:44 +0000 (08:19 +0000)]
Detect region out of order or overlap.
Add relocation section strip feature (need GenFw.exe update).

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

14 years agoRevert changes from r860 for makefiles that are only used
jljusten [Thu, 1 Nov 2007 22:58:47 +0000 (22:58 +0000)]
Revert changes from r860 for makefiles that are only used
by the GNU toolchain.

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

14 years agoPorted r864 to gnu toolchain.
jljusten [Thu, 1 Nov 2007 22:45:45 +0000 (22:45 +0000)]
Ported r864 to gnu toolchain.

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

14 years agoMoved most makefiles under a separate Makefiles directory. This will allow the makef...
jljusten [Thu, 1 Nov 2007 22:14:13 +0000 (22:14 +0000)]
Moved most makefiles under a separate Makefiles directory.  This will allow the makefiles and common library to be used in other project by using subversion 'externals' to pull down the Common & Makefiles directories.  (The other projects will have to provide a similar Makefile/GNUmakefile in their own root directory.  Notice the these files are not moved in the BaseTools C code.)

This change has only been ported for the microsoft build tools (VS 2003).

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

14 years agoa. Fixed an issue which a incorrect command (no leading space/tab) generated in top...
jwang36 [Wed, 31 Oct 2007 10:37:17 +0000 (10:37 +0000)]
a. Fixed an issue which a incorrect command (no leading space/tab) generated in top level Makefile
b. Added code to check zero thread number and disable multi-thread build mode if zero thread number.

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

14 years agoChanged way to call LaunchCommand
jwang36 [Wed, 31 Oct 2007 09:14:06 +0000 (09:14 +0000)]
Changed way to call LaunchCommand

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

14 years agoa. Supplemented file/class/function header comments
jwang36 [Wed, 31 Oct 2007 05:56:50 +0000 (05:56 +0000)]
a. Supplemented file/class/function header comments
b. Changed WARN log level to be higher than INFO, i.e. WARN message will be printed out by default.
c. Added initial version of cache mechanism

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

14 years agoUpdated makefiles to use flags that are common in both 2003 and 2005, replaced the...
lhauch [Tue, 30 Oct 2007 23:01:23 +0000 (23:01 +0000)]
Updated makefiles to use flags that are common in both 2003 and 2005, replaced the 2003 only /MLd flag with the common /MTd flag.  This flag has been successfully tested in the Build Pool with both 2003 and 2005 compilers.

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

14 years agoBaseTools/Source/Python/Trim/Trim.py:
jljusten [Tue, 30 Oct 2007 20:01:17 +0000 (20:01 +0000)]
BaseTools/Source/Python/Trim/Trim.py:
  Fix trim failure for source files with a zero length.  For example
  edk2 => MdePkg/Library/BaseLib/X64/Thunk16.S currently has a zero length.
  Code also reviewed by Javen (jwang36).

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

14 years agoBaseTools/Source/Python/build/build.py:
jljusten [Mon, 29 Oct 2007 07:14:25 +0000 (07:14 +0000)]
BaseTools/Source/Python/build/build.py:
BaseTools/Source/Python/AutoGen/AutoGen.py:
  Changes for python on unix.  Subprocess.Popen on unix requires
  a tuple to send parameters to the command.

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

14 years agoAdded separate makefile for the BaseTools/Source/Python.
jljusten [Mon, 29 Oct 2007 05:33:48 +0000 (05:33 +0000)]
Added separate makefile for the BaseTools/Source/Python.

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

14 years agoFixed spelling of APPLOCATION to APPLICATION, as it was only partially
jljusten [Sat, 27 Oct 2007 03:31:31 +0000 (03:31 +0000)]
Fixed spelling of APPLOCATION to APPLICATION, as it was only partially
corrected in r851, and therefore left the tools in an un-buildable state.

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

14 years ago1. Add support of a new filed "Shadow" in INF
hche10x [Fri, 26 Oct 2007 09:31:48 +0000 (09:31 +0000)]
1. Add support of a new filed "Shadow" in INF

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

14 years agoUpdated Makefile to replace -o File to -FoFile for object files generated by the...
lhauch [Thu, 25 Oct 2007 22:54:26 +0000 (22:54 +0000)]
Updated Makefile to replace -o File to -FoFile for object files generated by the CXX compiler.  These flags are common to both MS Visual Studio versions.

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

14 years agoUpdated MSFT makefiles to use _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE...
lhauch [Thu, 25 Oct 2007 22:52:35 +0000 (22:52 +0000)]
Updated MSFT makefiles to use _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE flags for VS2005 - these flags are ignored by MSVS 2003, so no impact to the tools.  Also changed -o File to -FoFile for objects and -FeFile for executables generated by the compiler.  These flags are common to both MSVS versions.

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

14 years agoMoved DEBUG message for VendorGuidSect into the section where it was defined configur...
lhauch [Thu, 25 Oct 2007 22:48:37 +0000 (22:48 +0000)]
Moved DEBUG message for VendorGuidSect into the section where it was defined configured - under some circumstances, it was not defined, and the DEBUG statement caused the tool to fail under a VS2005 build.

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

14 years agoModified all tool Makefiles to set the LIBS=$(LIB_PATH)\Common.lib so that we do...
lhauch [Thu, 25 Oct 2007 16:15:36 +0000 (16:15 +0000)]
Modified all tool Makefiles to set the LIBS=$(LIB_PATH)\Common.lib so that we do not have to use /libpath: in the MSmakefile.app

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

14 years agoFixed memory re-free issue
jwang36 [Thu, 25 Oct 2007 09:44:25 +0000 (09:44 +0000)]
Fixed memory re-free issue

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

14 years agoFixed the "rebuild" failure issue
jwang36 [Thu, 25 Oct 2007 08:27:03 +0000 (08:27 +0000)]
Fixed the "rebuild" failure issue

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

14 years agoAdded "/MLd" to CFLAGS and added "/nodefaultlib:libc.lib" to link command to make...
jwang36 [Thu, 25 Oct 2007 08:13:48 +0000 (08:13 +0000)]
Added "/MLd" to CFLAGS and added "/nodefaultlib:libc.lib" to link command to make sure tools using static link of runtime library.

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

14 years agoAdding gcc information to the UserManuals area of BaseTools
lhauch [Tue, 23 Oct 2007 17:17:30 +0000 (17:17 +0000)]
Adding gcc information to the UserManuals area of BaseTools

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

14 years agoAdded function/class header comments
jwang36 [Tue, 23 Oct 2007 08:27:14 +0000 (08:27 +0000)]
Added function/class header comments

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

14 years agoUpdate the precise verbose information in GenFfs and GenFv.
lgao4 [Tue, 23 Oct 2007 03:45:08 +0000 (03:45 +0000)]
Update the precise verbose information in GenFfs and GenFv.

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

14 years agoFixed build issue when building individual module with unsupported architectures.
jwang36 [Mon, 22 Oct 2007 09:05:25 +0000 (09:05 +0000)]
Fixed build issue when building individual module with unsupported architectures.

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

14 years agoRolled back the check of not found library instance.
jwang36 [Mon, 22 Oct 2007 06:35:32 +0000 (06:35 +0000)]
Rolled back the check of not found library instance.

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

14 years agoAdded RunningQueue to keep track of running build thread to avoid dead loop when...
jwang36 [Mon, 22 Oct 2007 06:34:47 +0000 (06:34 +0000)]
Added RunningQueue to keep track of running build thread to avoid dead loop when aborting build.

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

14 years agoAdded NonDynamicPcdList to store non-dynamic type of PCD
jwang36 [Mon, 22 Oct 2007 06:33:14 +0000 (06:33 +0000)]
Added NonDynamicPcdList to store non-dynamic type of PCD

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

14 years agoLower down the level of debug message in GetDependencyList
jwang36 [Mon, 22 Oct 2007 06:32:22 +0000 (06:32 +0000)]
Lower down the level of debug message in GetDependencyList

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

14 years agoAdded check of MaxDatumSize against empty string and changed the error message.
jwang36 [Mon, 22 Oct 2007 06:31:17 +0000 (06:31 +0000)]
Added check of MaxDatumSize against empty string and changed the error message.

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

14 years agoChanged code to use PCD from module only
jwang36 [Mon, 22 Oct 2007 06:30:06 +0000 (06:30 +0000)]
Changed code to use PCD from module only

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

14 years agooutput command line of calling c tools.
jlin16 [Fri, 19 Oct 2007 11:06:16 +0000 (11:06 +0000)]
output command line of calling c tools.

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

14 years agodisable autogen lib instance check.
jlin16 [Fri, 19 Oct 2007 10:32:38 +0000 (10:32 +0000)]
disable autogen lib instance check.

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

14 years agodisable autogen lib instance check.
jlin16 [Fri, 19 Oct 2007 09:59:36 +0000 (09:59 +0000)]
disable autogen lib instance check.

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

14 years agopass -v and -d options to c tools.
jlin16 [Fri, 19 Oct 2007 08:57:03 +0000 (08:57 +0000)]
pass -v and -d options to c tools.

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

14 years ago1. Add a feature to support: The Pcds which are used in INF/DEC but not found in...
hche10x [Fri, 19 Oct 2007 07:32:51 +0000 (07:32 +0000)]
1. Add a feature to support: The Pcds which are used in INF/DEC but not found in DSC or FDF file, originally build process stops. Now change it to print warning message, use default value defined in DEC file instead and output unfound pcds list
2. Change to use VERSION_STRING to always take precedence over VERSION_NUMBER. Output warning message if INF file only defines VERSION_NUMBER or defines both VERSION_NUMBER and VERSION_STRING

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

14 years agoa) Changed code to support breaking build when no library instance is found for a...
jwang36 [Thu, 18 Oct 2007 15:43:14 +0000 (15:43 +0000)]
a) Changed code to support breaking build when no library instance is found for a library class.

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

14 years ago1. Adjust code to follow coding style, complete missing comments
hche10x [Thu, 18 Oct 2007 09:20:59 +0000 (09:20 +0000)]
1. Adjust code to follow coding style, complete missing comments
2. Fix a bug in library instance selection when it is defined in common arches and common module types

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

14 years agoBaseTools/Source/Python/Common/String.py:
jljusten [Wed, 17 Oct 2007 17:44:03 +0000 (17:44 +0000)]
BaseTools/Source/Python/Common/String.py:
  Removed code which could break an absolute path for unix-like operating
  systems.  Change was verified on edk2 Nt32Pkg under Windows XP as well.

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

14 years agoBaseTools/Source/Python/Common/EdkIIWorkspaceBuild.py:
jljusten [Wed, 17 Oct 2007 17:38:54 +0000 (17:38 +0000)]
BaseTools/Source/Python/Common/EdkIIWorkspaceBuild.py:
  In the case of a missing PCD entry, print out the architecture to aid in
  debugging the cause of the failure.

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

14 years agoBaseTools/Source/Python/Common/ToolDefClassObject.py:
jljusten [Wed, 17 Oct 2007 17:36:43 +0000 (17:36 +0000)]
BaseTools/Source/Python/Common/ToolDefClassObject.py:
  Allow ENV(foo) to be used on non-'DEFINE' lines.  This allows ENV(foo) to
  be used on lines that define tool paths.

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

14 years agoOutput message format change.
jlin16 [Tue, 16 Oct 2007 13:46:09 +0000 (13:46 +0000)]
Output message format change.

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

14 years agoChange FvAddress.inf to FV\Ffs directory.
jlin16 [Tue, 16 Oct 2007 12:14:56 +0000 (12:14 +0000)]
Change FvAddress.inf to FV\Ffs directory.
Generate FvAddress.inf only once.

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

14 years agocoding style change
jlin16 [Tue, 16 Oct 2007 07:48:27 +0000 (07:48 +0000)]
coding style change

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

14 years agoUsed more strict rule for regular expression matching line directive to solve some...
jwang36 [Tue, 16 Oct 2007 05:30:41 +0000 (05:30 +0000)]
Used more strict rule for regular expression matching line directive to solve some mismatch problems.

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

14 years agocoding style change.
jlin16 [Mon, 15 Oct 2007 11:56:00 +0000 (11:56 +0000)]
coding style change.

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

14 years agocoding style change.
jlin16 [Fri, 12 Oct 2007 10:11:57 +0000 (10:11 +0000)]
coding style change.

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

14 years agoBaseTools/Source/Python/AutoGen/GenMake.py:
jljusten [Fri, 12 Oct 2007 06:41:46 +0000 (06:41 +0000)]
BaseTools/Source/Python/AutoGen/GenMake.py:
  Changed separate 'cd' and 'make' commands to be on a single line
  to be compatible with GNU make.  For example, this:
    cd foo
    make bar
  becomes:
    cd foo && make bar
  It should be noted that ideally gnu makefiles would be generated as:
    make -C foo bar
  but for now, this solution can be shared for nmake and gnu make.

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

14 years agocoding style change.
jlin16 [Fri, 12 Oct 2007 06:25:40 +0000 (06:25 +0000)]
coding style change.

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

14 years agoBaseTools/Source/Python/Common/ToolDefClassObject.py:
jljusten [Thu, 11 Oct 2007 23:24:32 +0000 (23:24 +0000)]
BaseTools/Source/Python/Common/ToolDefClassObject.py:
  Allow 'DEFINE' macros to use previously defined macros.  For example:
    DEFINE A = foo
    DEFINE B = DEF(A)bar
  will make B equal foobar.

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

14 years agoBaseTools/Source/Python/Trim/Trim.py:
jljusten [Thu, 11 Oct 2007 22:34:14 +0000 (22:34 +0000)]
BaseTools/Source/Python/Trim/Trim.py:
  Changed EdkLogger usage from "setLevel" to "SetLevel"

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

14 years agoa) Fixed single module hang issue when using spawn mode
jwang36 [Thu, 11 Oct 2007 14:51:28 +0000 (14:51 +0000)]
a) Fixed single module hang issue when using spawn mode
b) Fixed FD generation failure issue when in multi-thread mode
c) Added code to check if MAKE command is defined or not

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

14 years agoa) Supported MAKE command in tools_def.txt
jwang36 [Thu, 11 Oct 2007 08:50:35 +0000 (08:50 +0000)]
a) Supported MAKE command in tools_def.txt
b) Cleaned several message strings
c) Solved hang issue when the build.exe is broken by Ctrl+C
d) Added more specific information for "-v" option of build.exe
e) Added "-v"/"-d"/"-q" option for GenFds.exe in makefile if build.exe is called with one of them.

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