summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-13 02:04:01 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-13 02:04:01 +0000
commit884f6e76521c7a59fab6b593bf93c293140875d3 (patch)
treeab46ff7d19a3232abebc6f329cc9f144caedeb1d /BaseTools
parent66b2a7d5295d4a1510f9d55a0a4c81aa3b1493f6 (diff)
downloadedk2-platforms-884f6e76521c7a59fab6b593bf93c293140875d3.tar.xz
Add checking for configuration template file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8304 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools')
-rwxr-xr-xBaseTools/toolsetup.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat
index 58b05d5a4e..5ddb9b04fa 100755
--- a/BaseTools/toolsetup.bat
+++ b/BaseTools/toolsetup.bat
@@ -168,6 +168,9 @@ if NOT exist %WORKSPACE%\Conf\FrameworkDatabase.db (
if NOT exist %WORKSPACE%\Conf\target.txt (
echo copying ... target.template to %WORKSPACE%\Conf\target.txt
+ if NOT exist %EDK_TOOLS_PATH%\Conf\target.template (
+ echo Error: target.template is missing at folder %EDK_TOOLS_PATH%\Conf\
+ )
copy %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul
) else (
if defined RECONFIG echo over-write ... target.template to %WORKSPACE%\Conf\target.txt
@@ -176,6 +179,9 @@ if NOT exist %WORKSPACE%\Conf\target.txt (
if NOT exist %WORKSPACE%\Conf\tools_def.txt (
echo copying ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt
+ if NOT exist %EDK_TOOLS_PATH%\Conf\tools_def.template (
+ echo Error: tools_def.template is missing at folder %EDK_TOOLS_PATH%\Conf\
+ )
copy %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul
) else (
if defined RECONFIG echo over-write ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt
@@ -184,6 +190,9 @@ if NOT exist %WORKSPACE%\Conf\tools_def.txt (
if NOT exist %WORKSPACE%\Conf\build_rule.txt (
echo copying ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt
+ if NOT exist %EDK_TOOLS_PATH%\Conf\build_rule.template (
+ echo Error: build_rule.template is missing at folder %EDK_TOOLS_PATH%\Conf\
+ )
copy %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul
) else (
if defined RECONFIG echo over-write ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt