git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1458
6f19259b-4bc3-4df7-8a09-
765794883524
fvEle.setAttribute("value", fvDir.getPath().replaceAll("(\\\\)", "/"));\r
ele.appendChild(fvEle);\r
\r
fvEle.setAttribute("value", fvDir.getPath().replaceAll("(\\\\)", "/"));\r
ele.appendChild(fvEle);\r
\r
+ Element targetDirEle = document.createElement("var");\r
+ targetDirEle.setAttribute("name", "TARGET_DIR");\r
+ targetDirEle.setAttribute("value", ffsCommonDir.replaceAll("(\\\\)", "/"));\r
+ ele.appendChild(targetDirEle);\r
+ \r
NodeList childNodes = node.getChildNodes();\r
for (int k = 0; k < childNodes.getLength(); k++) {\r
Node childItem = childNodes.item(k);\r
NodeList childNodes = node.getChildNodes();\r
for (int k = 0; k < childNodes.getLength(); k++) {\r
Node childItem = childNodes.item(k);\r
ele.appendChild(recursiveNode(childItem, document));\r
}\r
}\r
ele.appendChild(recursiveNode(childItem, document));\r
}\r
}\r
fvEle.setAttribute("value", fvDir.getPath().replaceAll("(\\\\)", "/"));\r
ele.appendChild(fvEle);\r
\r
fvEle.setAttribute("value", fvDir.getPath().replaceAll("(\\\\)", "/"));\r
ele.appendChild(fvEle);\r
\r
+ Element targetDirEle = document.createElement("var");\r
+ targetDirEle.setAttribute("name", "TARGET_DIR");\r
+ targetDirEle.setAttribute("value", ffsCommonDir.replaceAll("(\\\\)", "/"));\r
+ ele.appendChild(targetDirEle);\r
+ \r
NodeList childNodes = node.getChildNodes();\r
for (int k = 0; k < childNodes.getLength(); k++) {\r
Node childItem = childNodes.item(k);\r
NodeList childNodes = node.getChildNodes();\r
for (int k = 0; k < childNodes.getLength(); k++) {\r
Node childItem = childNodes.item(k);\r
+ //\r
+ // Define TARGET_DIR\r
+ //\r
+ String targetDir = buildDir + File.separatorChar + project.getProperty("TARGET")\r
+ + "_" + project.getProperty("TOOLCHAIN");\r
+ \r
//\r
// Define BIN_DIR and FV_DIR\r
//\r
//\r
// Define BIN_DIR and FV_DIR\r
//\r
- String binDir = buildDir + File.separatorChar + project.getProperty("TARGET")\r
- + "_" + project.getProperty("TOOLCHAIN") \r
- + File.separatorChar + project.getProperty("ARCH") ;\r
+ String binDir = targetDir + File.separatorChar + project.getProperty("ARCH") ;\r
- String fvDir = buildDir + File.separatorChar + project.getProperty("TARGET")\r
- + "_" + project.getProperty("TOOLCHAIN") \r
- + File.separatorChar + "FV";\r
+ String fvDir = targetDir + File.separatorChar + "FV";\r
\r
//\r
// Define DEST_DIR_OUTPUT and DEST_DIR_DEBUG\r
\r
//\r
// Define DEST_DIR_OUTPUT and DEST_DIR_DEBUG\r
// Set properties\r
//\r
project.setProperty("BUILD_DIR", buildDir.replaceAll("(\\\\)", "/"));\r
// Set properties\r
//\r
project.setProperty("BUILD_DIR", buildDir.replaceAll("(\\\\)", "/"));\r
+ project.setProperty("TARGET_DIR", targetDir.replaceAll("(\\\\)", "/"));\r
project.setProperty("FV_DIR", fvDir.replaceAll("(\\\\)", "/"));\r
project.setProperty("BIN_DIR", binDir.replaceAll("(\\\\)", "/"));\r
project.setProperty("DEST_DIR_DEBUG", (destDir + File.separatorChar + "DEBUG").replaceAll("(\\\\)", "/"));\r
project.setProperty("FV_DIR", fvDir.replaceAll("(\\\\)", "/"));\r
project.setProperty("BIN_DIR", binDir.replaceAll("(\\\\)", "/"));\r
project.setProperty("DEST_DIR_DEBUG", (destDir + File.separatorChar + "DEBUG").replaceAll("(\\\\)", "/"));\r