Commit Graph

30 Commits

Author SHA1 Message Date
klu2 1cf9cdcc9c Fix a bug of PCD autogen for UINT64:
when generate macro value for a UINT64 type PCD, "ULL" should be added to forbid compiler tread it as UINT32 value.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@555 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-19 03:53:41 +00:00
klu2 2435723ad9 Fix a bug when generate default value for byte array for FIXED_AT_BUILD, PATCHABLE_IN_MODULE type PCD.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@551 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-17 13:25:31 +00:00
klu2 38ee8d9e66 Change the macro for dynamicEx type PCD and modify autogen tools to auto generate TokenSpaceGuid. After modification, you can use two method access DynamicPCD,
1) PcdGet8/PcdGet32/... to get a value of DynamicEx PCD, same as PcdSetxx
2) PcdGet8Ex/PcdGet32Ex to get a value of DynamicEx PCD, same as PcdSetxxEx.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@549 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-17 09:57:06 +00:00
klu2 f63ef4b271 1) Add byte element checking for a PCD who using byte array type datum.
2) Fix a bug for judging whether datum is Unicode string.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@537 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-16 09:11:15 +00:00
klu2 6f7e61a03a Add many datum and datum size checking in PCD building tools, These checking work will be moved to FPD verification tools or UI tools in future.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@528 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-15 14:41:28 +00:00
jwang36 250258de0d added the support for new schema and old schema at the same time
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@510 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-14 10:44:45 +00:00
klu2 833b154119 Fix two transition issue:
1) Although current PCD tool's code support use packageName, packageGuid, version, arch to identify a module, but these value can not be got from FPD file, so use null for transition phase.
2) Add transition code to check <TokenSpaceGuid>, In future, the checking work should be done by schema checking tools when change occur of <TokenSpaceGuid> from[0..1] to [1] in schema.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@508 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-14 04:01:11 +00:00
klu2 7db4ab705a Fix some bugs in PCD tools:
1) Normalize the exception text format, 
2) Add throw exception in some special case.
3) Add more code to verify Datum Size.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@497 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-13 09:40:16 +00:00
klu2 ad82307c75 1) Fix a bug for PCD autogen tools, see track#115 in PVCS: Module's PCD informtion is generated into autogen.h/autogen.c of library
2) Remove PcdEmulatedDriver from PcdAutogen class.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@495 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-13 05:46:05 +00:00
klu2 6ff7a41cb8 Modify PCD tool according to final PCD schema modification.
1) Change code of PCD tools.
2) Update all FPD file.
3) Fix some bugs in FPD for wrong DatumSize.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@481 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-12 07:57:04 +00:00
klu2 8840ad589e PCD tools update:
1) CollectPCDAction will get all PCD information from FPD file but *not* search SPD and MSA file.
2) ALL PcdBuildDeclaration in FPD file has been moved from common <PcdBuildDeclaration> to seperated module's <PcdBuildDeclaration>. Common <PcdBuildDeclaration> was removed from FPD file.
3) The platform information for Dyanmic and DynamicEx type PCD should be record into <PcdDynamicBuildDeclaration> now.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@415 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-04 10:00:41 +00:00
qwang12 3496595d7b Make sure the PCD dxe service driver can handle the case where no PEIM is using any dynamic PCD entry and the PEI phase PCD database is empty.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@388 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-02 05:28:18 +00:00
qwang12 4c114006de Add in GetNextToken and Register Callback Function funtionality for DXE Driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@309 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-29 01:48:32 +00:00
bbahnsen c43c67195a Translate the Arch enum to an arch directory name. This is necessary for Linux builds, since it is case sensitive.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@298 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-26 21:34:51 +00:00
qwang12 6a4cae5897 Remove the warning message reported when building GenBuild.jar
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@293 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-26 13:40:20 +00:00
qwang12 4acf8ce7da Add version check in both PCD database generation and service driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@292 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-26 11:00:44 +00:00
qwang12 9a7cf04ab4 Change Workspace to X:
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@288 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-26 06:34:13 +00:00
qwang12 32648c62db Replace all tab to spaces.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@287 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-26 02:05:28 +00:00
qwang12 6776c08a6d Remove a private class to remove the error message.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@262 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-24 09:14:28 +00:00
qwang12 99d2c3c41e git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@250 6f19259b-4bc3-4df7-8a09-765794883524 2006-05-24 08:09:43 +00:00
bbahnsen dae8a1b235 Fix capitalization
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@214 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-19 21:44:12 +00:00
klu2 98fc92fcbd Fix a bug of unreference PCD token defined in FPD does *not* be autogened into emulated PCD array.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@181 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-17 07:20:37 +00:00
klu2 19ce77c3e9 It is legal that same base name exist in one FPD file. In future, we should use "Guid, Version, Package" and "Arch" to differ a module. So currently, warning should be disabled.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@108 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-08 03:34:21 +00:00
klu2 845fdeba64 Fix the PCD bug submitted by Oram, Isaac W:
It is legal that a workspace does *not* contains FPD or a FPD does *not* contains any PCD records, 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@107 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-07 16:10:08 +00:00
bbahnsen c4e0f33e5d The file name is in lower case.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@103 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-04 22:53:19 +00:00
klu2 ec472c95e6 Remove unnecessary comments
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@77 6f19259b-4bc3-4df7-8a09-765794883524
2006-04-28 13:55:37 +00:00
klu2 3d52de132f Fix two bugs for current PCD workflow:
1) Switch build message on for PCD action.
2) If SPD file does *not* contains PCD information, it is illegal.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@76 6f19259b-4bc3-4df7-8a09-765794883524
2006-04-28 13:52:29 +00:00
wuyizhong 61746a87be Fix a bug on GenBuild and have a minor update on BuildMacro.xml
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@35 6f19259b-4bc3-4df7-8a09-765794883524
2006-04-26 02:44:39 +00:00
bbahnsen 19924945d8 This is a patch from Yizhong to fix the XMLBEANS location.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13 6f19259b-4bc3-4df7-8a09-765794883524
2006-04-24 16:03:18 +00:00
bbahnsen 878ddf1fc3 Initial import.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3 6f19259b-4bc3-4df7-8a09-765794883524
2006-04-21 22:54:32 +00:00