Add the dependency for the capsule generation.
authorlgao4 <lgao4@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 17 Aug 2009 02:54:46 +0000 (02:54 +0000)
committerlgao4 <lgao4@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 17 Aug 2009 02:54:46 +0000 (02:54 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1685 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/GenFds/Capsule.py

index 7f17fcd..7dbb844 100755 (executable)
@@ -47,9 +47,10 @@ class Capsule (CapsuleClassObject) :
     def GenCapsule(self):\r
         CapInfFile = self.GenCapInf()\r
         CapInfFile.writelines("[files]" + T_CHAR_LF)\r
-\r
+        CapFileList = []\r
         for CapsuleDataObj in self.CapsuleDataList :\r
             FileName = CapsuleDataObj.GenCapsuleSubItem()\r
+            CapFileList.append(FileName)\r
             CapInfFile.writelines("EFI_FILE_NAME = " + \\r
                                    FileName      + \\r
                                    T_CHAR_LF)\r
@@ -63,7 +64,8 @@ class Capsule (CapsuleClassObject) :
         GenFdsGlobalVariable.GenerateFirmwareVolume(\r
                                 CapOutputFile,\r
                                 [self.CapInfFileName],\r
-                                Capsule=True\r
+                                Capsule=True,\r
+                                FfsList=CapFileList\r
                                 )\r
         GenFdsGlobalVariable.SharpCounter = 0\r
 \r