Fix track EDKT104: If a module use PCD, MSA of this module should use PcdLib libraryC...
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 17 Jul 2006 14:31:03 +0000 (14:31 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 17 Jul 2006 14:31:03 +0000 (14:31 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1034 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BasePciExpressLib/BasePciExpressLib.msa
Tools/Source/GenBuild/org/tianocore/build/pcd/action/PCDAutoGenAction.java

index 9db23eb..7996aeb 100644 (file)
@@ -42,6 +42,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <LibraryClass Usage="ALWAYS_CONSUMED">\r
       <Keyword>DebugLib</Keyword>\r
     </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>PcdLib</Keyword>\r
+    </LibraryClass>    \r
   </LibraryClassDefinitions>\r
   <SourceFiles>\r
     <Filename>PciLib.c</Filename>\r
index f567ccc..7f955ff 100644 (file)
@@ -425,13 +425,6 @@ private UUID translateSchemaStringToUUID(String uuidString)
             }\r
         }\r
 \r
-        if(usageInstanceArray.size() != 0) {\r
-            //\r
-            // Add "#include 'PcdLib.h'" for Header file\r
-            //\r
-            hAutoGenString = "#include <MdePkg/Include/Library/PcdLib.h>\r\n";\r
-        }\r
-\r
         //\r
         // Generate all PCD entry for a module.\r
         // \r