]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/Fv.py
BaseTools: Fix the bug for OptionRom generation with different arch
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / Fv.py
index df97ccbab6484fd74d85b09c8429d11d26bd5055..ab3f8b213b09b4260287be6e08884c972f90f6af 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # process FV generation\r
 #\r
-#  Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -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