]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/Fv.py
BaseTools: Fix the bug to handle the read-only file
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / Fv.py
index 64d1709946483752fde8057b8cbf444dab51b04c..ab3f8b213b09b4260287be6e08884c972f90f6af 100644 (file)
@@ -182,7 +182,7 @@ class FV (FvClassObject):
         # Write the Fv contents to Buffer\r
         #\r
         if os.path.isfile(FvOutputFile):\r
-            FvFileObj = open ( FvOutputFile,'r+b')\r
+            FvFileObj = open ( FvOutputFile,'rb')\r
 \r
             GenFdsGlobalVariable.VerboseLogger( "\nGenerate %s FV Successfully" %self.UiFvName)\r
             GenFdsGlobalVariable.SharpCounter = 0\r