- 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 / GenSectionTask.java
index e329c0e..82844f0 100644 (file)
@@ -32,6 +32,7 @@ import org.apache.tools.ant.types.Commandline;
 import org.tianocore.common.logger.EdkLog;\r
 \r
 public class GenSectionTask extends Task implements EfiDefine, Section, FfsTypes {\r
+    private int alignment = 0;\r
     //\r
     // Tool name\r
     // \r
@@ -269,6 +270,18 @@ public class GenSectionTask extends Task implements EfiDefine, Section, FfsTypes
         this.sectFileList.add(task);\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
+\r
     public void toBuffer(DataOutputStream buffer){\r
         //\r
         // Search SectionList find earch section and call it's\r