]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/CompressSection.java
- Fixed EDKT240. Now the Blank.pad file for alignment purpose will no longer be needed.
[mirror_edk2.git] / Tools / Java / Source / FrameworkTasks / org / tianocore / framework / tasks / CompressSection.java
index 5f35685fbe3b4232c64630612e4d95c4201ecaff..3e2a98f695c8f6cbbba8e3f4e31423c33b779b84 100644 (file)
@@ -33,6 +33,7 @@ import org.apache.tools.ant.BuildException;
  \r
 **/\r
 public class CompressSection implements Section, FfsTypes {\r
+    private int alignment = 0;\r
     //\r
     // The attribute of compressName.\r
     //\r
@@ -197,4 +198,16 @@ public class CompressSection implements Section, FfsTypes {
     public void addTool (Tool tool) {\r
         sectList.add(tool);\r
     }\r
+\r
+    public int getAlignment() {\r
+        return alignment;\r
+    }\r
+\r
+    public void setAlignment(int alignment) {\r
+        if (alignment > 7) {\r
+            this.alignment = 7;\r
+        } else {\r
+            this.alignment = alignment;\r
+        }\r
+    }\r
 }
\ No newline at end of file