\r
private boolean isUnified = true;\r
\r
+ private SurfaceAreaQuery saq = null;\r
+ \r
private Project project;\r
\r
private String info = "DO NOT EDIT \n" \r
+ "Abstract:\n"\r
+ "Auto-generated ANT build file for building EFI Modules and Platforms\n";\r
\r
- public PlatformBuildFileGenerator(Project project, Map<FpdModuleIdentification, String> outfiles, Map<String, Set<FpdModuleIdentification>> fvs, boolean isUnified){\r
+ public PlatformBuildFileGenerator(Project project, Map<FpdModuleIdentification, String> outfiles, Map<String, Set<FpdModuleIdentification>> fvs, boolean isUnified, SurfaceAreaQuery saq){\r
this.project = project;\r
this.outfiles = outfiles;\r
this.isUnified = isUnified;\r
this.fvs = fvs;\r
+ this.saq = saq;\r
this.platformName = project.getProperty("PLATFORM");\r
}\r
\r
//\r
// Get all valid FV name\r
//\r
- String[] validFv = SurfaceAreaQuery.getFpdValidImageNames();\r
+ String[] validFv = saq.getFpdValidImageNames();\r
\r
//\r
// For each valid FV, get all modules in sequence\r
String fvOutputDir = project.getProperty("BUILD_DIR") + File.separatorChar \r
+ targetList[i] + "_" \r
+ toolchainList[j] + File.separatorChar + "FV";\r
- String[] validFv = SurfaceAreaQuery.getFpdValidImageNames();\r
+ String[] validFv = saq.getFpdValidImageNames();\r
for (int k = 0; k < validFv.length; k++) {\r
String inputFile = fvOutputDir + "" + File.separatorChar + validFv[k].toUpperCase() + ".inf";\r
Element fvEle = document.createElement("genfvimage");\r
Element ele = document.createElement("target");\r
ele.setAttribute("name", "prebuild");\r
\r
- Node node = SurfaceAreaQuery.getFpdUserExtensionPreBuild();\r
+ Node node = saq.getFpdUserExtensionPreBuild();\r
if (node != null) {\r
//\r
// For every Target and ToolChain\r
Element ele = document.createElement("target");\r
ele.setAttribute("name", "postbuild");\r
\r
- Node node = SurfaceAreaQuery.getFpdUserExtensionPostBuild();\r
+ Node node = saq.getFpdUserExtensionPostBuild();\r
if (node != null) {\r
//\r
// For every Target and ToolChain\r