Changed the tool chain error message to be more specific.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1901 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2006-11-06 05:10:56 +00:00
parent 3681d193ed
commit 015849a450
1 changed files with 11 additions and 4 deletions

View File

@ -780,19 +780,26 @@ public class FpdParserTask extends Task {
ToolChainInfo toolChainInfo = GlobalData.getToolChainInfo();
if (toolChainInfo.getTargets().length == 0) {
throw new EdkException("No valid target specified! Please check your TARGET definition in Tools/Conf/target.txt.");
throw new EdkException("No valid target found! "+
"Please check the TARGET definition in Tools/Conf/target.txt, "+
"or the <BuildTarget>, <BuildOptions> in the FPD file.");
}
if (toolChainInfo.getTagnames().length == 0) {
throw new EdkException("No valid tool chain specified! Please check your TOOL_CHAIN_TAG definition in Tools/Conf/target.txt.");
throw new EdkException("No valid tool chain found! "+
"Please check the TOOL_CHAIN_TAG definition in Tools/Conf/target.txt, "+
"or the <BuildOptions> in the FPD file.");
}
if (toolChainInfo.getArchs().length == 0) {
throw new EdkException("No valid ARCH specified! Please check your TARGET_ARCH definition in Tools/Conf/target.txt.");
throw new EdkException("No valid architecture found! "+
"Please check the TARGET_ARCH definition in Tools/Conf/target.txt, "+
"or the <SupportedArchitectures>, <BuildOptions> in the FPD file.");
}
if (toolChainInfo.getCommands().length == 0) {
throw new EdkException("No valid COMMAND specified! Please check your TARGET definition in Tools/Conf/tools_def.txt.");
throw new EdkException("No valid COMMAND found! Please check the tool chain definitions "+
"in Tools/Conf/tools_def.txt.");
}
}
}