]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/SectFile.java
1.Change environment variable from "Framework_Tools_Path" to "FRAMEWORK_TOOLS_PATH".
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / SectFile.java
index 35576478d11e423bf25ea8c2d353e02c1ec7758d..b4e153d480ffd9f1a60df741fd7c7da830d1af83 100644 (file)
@@ -53,7 +53,7 @@ public class SectFile implements Section {
   \r
      @param   Buffer  buffer to contain the section file content with alignment\r
      **/\r
-    public void toBuffer (DataOutputStream Buffer){\r
+    public void toBuffer (DataOutputStream buffer, DataOutputStream orgBuffer){\r
         File   sectFile;\r
         byte   data;\r
         long   fileLen;\r
@@ -83,7 +83,11 @@ public class SectFile implements Section {
             int i = 0;\r
             while (i < fileLen) {\r
                 data = In.readByte();\r
-                Buffer.writeByte(data);\r
+                buffer.writeByte(data);\r
+                //\r
+                // Add data to org file \r
+                //\r
+                orgBuffer.writeByte(data);\r
                 i++;\r
             }\r
 \r
@@ -92,7 +96,11 @@ public class SectFile implements Section {
             ///\r
             while ((fileLen & 0x03)!= 0) {\r
                 fileLen ++;\r
-                Buffer.writeByte(0);\r
+                buffer.writeByte(0);\r
+                //\r
+                // Add data to org file \r
+                //\r
+                orgBuffer.writeByte(0);\r
             } \r
 \r
             ///\r