diff options
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java index bb477f031e..fc5ebbf3dc 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.java @@ -299,6 +299,8 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes // Call compress
//
byte[] fileBuffer = bo.toByteArray();
+
+ synchronized (CompressSection.semaphore) {
Compress myCompress = new Compress(fileBuffer, fileBuffer.length);
//
@@ -349,6 +351,7 @@ public class GenSectionTask extends Task implements EfiDefine, Section,FfsTypes size ++;
buffer.writeByte(0);
}
+ }
}
catch (Exception e){
throw new BuildException("compress.toBuffer failed!\n");
|