- 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 5f35685..3e2a98f 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