summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-04 14:52:57 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-04 14:52:57 +0000
commitd3dfaf4b452b91ccb63d1f6008f69c5fe94628dc (patch)
treeffe934b9e8782d033c97a0ee91a0bb6729113f41 /Tools
parent7629edbc44625aa7c5e99c24afe8bc2f7506fbf6 (diff)
downloadedk2-platforms-d3dfaf4b452b91ccb63d1f6008f69c5fe94628dc.tar.xz
Fixed the cleanall issue which would remove more files than we want
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@748 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java b/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java
index b41ea211d2..fa94403b6b 100644
--- a/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java
+++ b/Tools/Source/GenBuild/org/tianocore/build/fpd/PlatformBuildFileGenerator.java
@@ -380,9 +380,12 @@ public class PlatformBuildFileGenerator {
ele.setAttribute("name", "cleanall");
if (isUnified) {
- Element cleanAllEle = document.createElement("delete");
- cleanAllEle.setAttribute("dir", project.getProperty("BUILD_DIR"));
- ele.appendChild(cleanAllEle);
+ String[] targetList = GlobalData.getToolChainInfo().getTargets();
+ for (int i = 0; i < targetList.length; ++i) {
+ Element cleanAllEle = document.createElement("delete");
+ cleanAllEle.setAttribute("dir", project.getProperty("BUILD_DIR") + File.separatorChar + targetList[i]);
+ ele.appendChild(cleanAllEle);
+ }
} else {
Set set = outfiles.keySet();
Iterator iter = set.iterator();