import org.tianocore.build.global.SurfaceAreaQuery;\r
import org.tianocore.build.id.FpdModuleIdentification;\r
import org.tianocore.common.definitions.EdkDefinitions;\r
+import org.tianocore.common.logger.EdkLog;\r
import org.w3c.dom.Document;\r
import org.w3c.dom.Element;\r
\r
///\r
public static final String[][] sectionExt = EdkDefinitions.SectionTypeExtensions;\r
\r
- private SurfaceAreaQuery saq = null;\r
- \r
- public FfsProcess(SurfaceAreaQuery saq) {\r
- this.saq = saq;\r
- }\r
- \r
/**\r
search in the type, if componentType is listed in type, return true; \r
otherwise return false.\r
//\r
// Try to find Ffs layout from FPD file\r
//\r
- saq.push(GlobalData.getFpdBuildOptions());\r
+ SurfaceAreaQuery saq = new SurfaceAreaQuery(GlobalData.getFpdBuildOptionsMap());\r
BuildOptionsDocument.BuildOptions.Ffs[] ffsArray = saq.getFpdFfs();\r
- saq.pop();\r
for (int i = 0; i < ffsArray.length; i++) {\r
if (isMatch(ffsArray[i].getFfsKey(), buildType)) {\r
ffsXmlObject = ffsArray[i];\r
// Otherwise report warning message\r
//\r
if (buildType == null) {\r
- System.out.println("Warning: this module doesn't specify a FfsFormatKey. ");\r
+ EdkLog.log(EdkLog.EDK_WARNING, "Warning: this module doesn't specify a FfsFormatKey. ");\r
} else {\r
throw new BuildException("Can't find the FfsFormatKey [" + buildType + "] attribute in the FPD file!"); \r
}\r