From 5c4eec41d79fad6c629416226c49ebdcd3b7d468 Mon Sep 17 00:00:00 2001 From: qouyang Date: Wed, 13 Sep 2006 09:20:36 +0000 Subject: (Customized Compression)If setting the EncapsulationType="Compress", Tool will transfer it to sectiontype="EFI_SECTION_COMPRESS" in element of task. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1529 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/Source/GenBuild/org/tianocore/build/FfsProcess.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Tools/Source/GenBuild') diff --git a/Tools/Source/GenBuild/org/tianocore/build/FfsProcess.java b/Tools/Source/GenBuild/org/tianocore/build/FfsProcess.java index 3a67e6eb34..26b9390901 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/FfsProcess.java +++ b/Tools/Source/GenBuild/org/tianocore/build/FfsProcess.java @@ -273,7 +273,12 @@ public class FfsProcess { // ele = doc.createElement("gensection"); if (type != null) { - ele.setAttribute("sectiontype", "EFI_SECTION_GUID_DEFINED"); + if (type.equalsIgnoreCase("COMPRESS")) { + ele.setAttribute("sectionType", "EFI_SECTION_COMPRESSION"); + }else { + ele.setAttribute("sectiontype", "EFI_SECTION_GUID_DEFINED"); + } + } else { ele.setAttribute("sectiontype", sectType); } -- cgit v1.2.3