Commit Graph

106 Commits

Author SHA1 Message Date
jwang36 a7d376877f 1. Use FAMILY defined in *_TAGNAME_*_*_FAMILY as the toolchain family
2. Force file name case check in Windows
3. Consolidate file/path operations
4. Support binary file type in build_rule.txt
5. Generate $(FILE_TYPES) macro only when it's used in build_rule.txt
6. Fix HSD202142 and HSD202144
 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7529 6f19259b-4bc3-4df7-8a09-765794883524
2009-02-16 13:37:23 +00:00
jwang36 2eab98c107 1) Re-fine and fully test the mechanism of getting over the long command line limitation
2) Change the -s option from "SpawnMode" to be "SilentMode"
3) Change the prototype of PeiCoreEntryPoint in AutoGen-ed code
4) Remove CalcDeps module since it's no longer needed.
5) Remove "-k", "-g" and "-l" switches from build
6) Remove MULTIPLE_THREAD in target.template. Use MAX_CONCURRENT_THREAD_NUMBER to get the functionality.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7158 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-31 05:53:26 +00:00
jlin16 619c3f0826 GenFds will try to deduce 'Target_Toolchain_Arch' KeyStringList for GUIDed section.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7027 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-15 07:10:49 +00:00
jwang36 7bfde65c79 Add incremental support for FD and Capsule generation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7018 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-13 12:52:46 +00:00
jlin16 96dcf1973f GenFds enable display FV space information when incremental build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7012 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-12 06:51:49 +00:00
jwang36 1b0ea113a3 1) Separate the AutoGen code for PCDs between module and its library instances. Only macros for module's PCDs will be put in AutoGen.h. Others will be put in AutoGen.c. This is intended to catch missed PCDs in inf file more easily.
2) For better compatibile between C standards or C compiler, add type cast for PCD constants in AutoGen.h according to the PCD datum type.
3) Add incremental generation capability for FV in GenFds tool.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6930 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-09 07:13:26 +00:00
jwang36 35a646e204 Fixed an incorrect PCD type string conversion
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6724 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-25 09:59:02 +00:00
jwang36 74c90c7e47 a. Allowed flags of tools not defined tools_def.txt
b. Added BUILD as internal tool to pass compatible mode of unicode to build tool.
c. Added support of [Depex.common.<ModuleType>] in inf file
d. Added more optimization, especially for architecture protocols, in GeDepex tool
e. Fixed the generation of _gPeimRevision and _gDxeRevision global variables in AutoGen.c according to new MdePkg spec.
f. Changed the header file of DxeSmmeEntryPoint.h to UefiDriverEntryPoint.h in AutoGen.c since it's no longer exist.
g. Fixed $(PROCESSOR) macro replacement issue in [nmake] section


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6452 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-11 08:37:20 +00:00
jwang36 498a6d9883 Fixed an issue which caused incorrect path generated when validating
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6438 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-10 05:54:23 +00:00
jlin16 63a66a35c8 Fix HSD 201801: [GenFds] Error reported when a non-existing INF file is specified is not clear
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6411 6f19259b-4bc3-4df7-8a09-765794883524
2008-11-06 07:53:01 +00:00
jwang36 9df87888de Performance improvement on startup of build.exe
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6289 6f19259b-4bc3-4df7-8a09-765794883524
2008-10-30 03:14:10 +00:00
qhuang8 e27dd4e956 Regenerate build binary (based on BaseTools r1333) to include some missing encodings to avoid build crash when generation the final image.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6188 6f19259b-4bc3-4df7-8a09-765794883524
2008-10-22 14:05:17 +00:00
hche10x f2ea316578 1. Sync the binary with the latest source modification
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6185 6f19259b-4bc3-4df7-8a09-765794883524
2008-10-22 09:04:32 +00:00
qhuang8 3b1abda484 Regenerate build binary (based on BaseTools r1332) to include some missing encodings to avoid build crash when generation the final image.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6173 6f19259b-4bc3-4df7-8a09-765794883524
2008-10-21 14:15:42 +00:00
hche10x 47b702c650 1. Sync the binary with the latest source modification
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6162 6f19259b-4bc3-4df7-8a09-765794883524
2008-10-21 02:03:39 +00:00
jlin16 bf9ffb9f6b ECP support update.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6116 6f19259b-4bc3-4df7-8a09-765794883524
2008-10-15 04:45:31 +00:00
jlin16 d3b835caa0 ECP support update.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6078 6f19259b-4bc3-4df7-8a09-765794883524
2008-10-07 05:46:11 +00:00
jlin16 6fa28b758b GenFds fix two UI sections error.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5953 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-23 09:28:11 +00:00
jlin16 3ffe97a634 roll back workspace.py code change.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5778 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-02 08:04:28 +00:00
jlin16 be9b89f598 Build & GenFds R8 ECP support.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5762 6f19259b-4bc3-4df7-8a09-765794883524
2008-09-01 09:44:40 +00:00
jlin16 281bb4b6a3 GenFds add FV space information display.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5652 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-14 08:47:44 +00:00
jwang36 335b890e40 Added incremental support in GenFds
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5193 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-09 09:21:05 +00:00
jwang36 aa32d1eb9f a) Added explicit banner for pass/fail indication of build
b) Fixed the issue which cause error message from FDF parser won't be printed out.
c) Fixed the error message format of FDF parser
d) Changed the exit code of build tool from always 1 to error code, if error occurred


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5186 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-08 13:21:37 +00:00
jwang36 54b8514b27 Fixed an CR/LF issue in FDF file
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5121 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-24 07:22:35 +00:00
jwang36 4bd94693b3 Changed GenFds to use database based module/package/platform information retrieval mechanism
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5101 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-21 06:35:06 +00:00
jwang36 7de83e3598 Fixed an incompatible issue in StrGather, which will cause undefined string tokens if R8 modules doesn't have their source directory in include search path list.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4859 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-17 05:59:16 +00:00
jwang36 f4c0826f4a Added "extern int __make_me_compile_correctly;" for R8 modules in AutoGen.c because it may be empty.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4845 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-13 09:09:57 +00:00
jwang36 49c8e7794e Merged bug fix (HSD200972) by Hess
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4786 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-04 06:36:01 +00:00
jwang36 edf96db44a Re-built python tools with Python2.5.2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4783 6f19259b-4bc3-4df7-8a09-765794883524
2008-03-03 03:09:31 +00:00
jwang36 bc4cb041a3 Rebuilt per the Hess's bug fixes
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4781 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-29 07:30:55 +00:00
jwang36 6b36020056 Fixed dependency expression issue
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4779 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-28 12:54:18 +00:00
jlin16 3531be0158 GenFds.exe adapt to new build database structure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4768 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-28 08:46:21 +00:00
jwang36 e2336e3968 a. Added binary file support during AutoGen
b. Removed "extern int __make_me_compile_correctly;" from AutoGen.h
c. Added BUILD_RULE_CONF in target.txt to specify build rules file

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4705 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-19 06:39:47 +00:00
jwang36 65803b123f Improved the file creation speed during incremental build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4696 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-15 07:49:17 +00:00
jlin16 7113867d54 using R8 component type when choosing rule for INF in FDF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4616 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-23 08:35:52 +00:00
jlin16 8997292fb8 Support R8 modules in GenFds.exe
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4615 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-23 05:40:47 +00:00
jwang36 b7737ae527 a. Merged the recent improvement on R8 modules build
b. Fixed an issue which library instance without supported module type will be selected.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4605 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-22 03:08:25 +00:00
jwang36 0657905748 Fixed an issue which caused incorrect value of PCD from FDF file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4499 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-04 08:01:45 +00:00
jlin16 900faff93e Add !include statement support in GenFds.exe which makes FDF file could include other file contents at any position in FDF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4497 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-04 04:57:34 +00:00
jlin16 b7bef2a9fb Add depex section generation feature for GenFds.exe
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4478 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-03 03:37:54 +00:00
jwang36 2d60f29c21 Fixed a bug which caused the PCDs inherited from libraries cannot be overridden under [Components] in DSC file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4459 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-02 03:24:17 +00:00
jwang36 b3354570af Added component type to module type mapping between "PE32_PEIM" and "PEIM" for R8 modules
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4429 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-24 05:39:24 +00:00
jwang36 58ce61eb5d a. Enabled building R8 modules
b. Always inherit library's [depex] if there's no dxs file declared in module's inf file

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4419 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-22 16:58:04 +00:00
jwang36 965e8d54d9 Re-generated per the bug fixes.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4394 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-13 07:04:08 +00:00
jwang36 256a0cc3c2 Re-generated because of AutoGen changed
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4375 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-10 03:05:09 +00:00
jwang36 bc8306fc55 Fixed bugs of
708 - Incorrect PCD type used if the PCD is not defined in DSC file
    715 - Incorrect library instance used for DAG algorithm
    717 - Incorrect function prototype used for calling 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4362 6f19259b-4bc3-4df7-8a09-765794883524
2007-12-05 07:32:49 +00:00
jwang36 f20ffb9ad3 a. Revised error message for a module that is not required by a Platform when building just the module
b. Remove "/" or "\" following $(WORKSPACE) before getting real path when parsing DSC files

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4304 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-19 08:24:41 +00:00
jlin16 79492e5f39 Strip the relocation section for SEC, PEIM and PEI CORE typed files, according to relocation strip flag in FDF file and shadow flag in INF file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4280 6f19259b-4bc3-4df7-8a09-765794883524
2007-11-07 05:59:12 +00:00
jwang36 04e031d000 a. Changed MYTOOLS to use Visual Studio Team Suite for IA32 and X64. IPF is still use WINDKK.
b. Re-generated build.exe and GenFds.exe to incorporate new changes of build tools
c. Enable multi-thread build mode by default


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4246 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-31 09:07:31 +00:00
jwang36 07fdb39deb a) Added support of breaking build when no library instance is found for a library class.
b) Added support of use PCD value from DEC/INF file if it's not defined in DSC file but defined in an INF file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4189 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-22 06:53:10 +00:00