]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkTasks/org/tianocore/framework/tasks/GenSectionTask.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 / GenSectionTask.java
index e329c0e3eb06d6cfe21edd5cc85c6f87f798eb81..82844f080f1ace13cfb24432bd220266af50e217 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