diff options
author | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-13 09:20:36 +0000 |
---|---|---|
committer | qouyang <qouyang@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-13 09:20:36 +0000 |
commit | 5c4eec41d79fad6c629416226c49ebdcd3b7d468 (patch) | |
tree | 4a67ad551c854ff08169abd779d54871824e259b /Tools/Source/GenBuild | |
parent | d965d1f63f6172b91190754e1e5c1b53901adc2e (diff) | |
download | edk2-platforms-5c4eec41d79fad6c629416226c49ebdcd3b7d468.tar.xz |
(Customized Compression)If setting the EncapsulationType="Compress", Tool will transfer it to sectiontype="EFI_SECTION_COMPRESS" in <gensection>element of <genffsFile> task.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1529 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Source/GenBuild')
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/FfsProcess.java | 7 |
1 files changed, 6 insertions, 1 deletions
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);
}
|