]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/GenBuild/org/tianocore/build/FfsProcess.java
- Fixed EDKT240. Now the Blank.pad file for alignment purpose will no longer be needed.
[mirror_edk2.git] / Tools / Java / Source / GenBuild / org / tianocore / build / FfsProcess.java
index 884a0d7453fcf1e9e518f02de42ed8f2569583af..dd86346b7f112d6c62747e2788fdfa998e51ad48 100644 (file)
@@ -347,6 +347,7 @@ public class FfsProcess {
     **/\r
     private void dealSection(int mode, Document doc, Element root, XmlCursor cursor, Vector<String> list) {\r
         String type = cursor.getAttributeText(new QName("SectionType"));\r
+        String alignment = cursor.getAttributeText(new QName("Alignment"));\r
         \r
         //\r
         // Judge if file is specified? Yes, just use the file, else call Build Macro\r
@@ -399,6 +400,9 @@ public class FfsProcess {
             } else {\r
                 ele.setAttribute("fileName", fileName);\r
             }\r
+            if (alignment != null) {\r
+                ele.setAttribute("Alignment", alignment);\r
+            }\r
             root.appendChild(ele);\r
         }\r
     }\r