]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/toolsetup.bat
Comment's added and fixed.
[mirror_edk2.git] / BaseTools / toolsetup.bat
index 2f657ba9677015d3be7959d8332f0303a0a1ee2a..5a081430dbaca49cce4b21ad108bb3e34bd526bf 100755 (executable)
@@ -3,7 +3,7 @@
 @REM   however it may be executed directly from the BaseTools project folder\r
 @REM   if the file is not executed within a WORKSPACE\BaseTools folder.\r
 @REM\r
 @REM   however it may be executed directly from the BaseTools project folder\r
 @REM   if the file is not executed within a WORKSPACE\BaseTools folder.\r
 @REM\r
-@REM Copyright (c) 2006 - 2008, Intel Corporation.  All rights reserved.\r
+@REM Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
 @REM\r
 @REM This program and the accompanying materials are licensed and made available\r
 @REM under the terms and conditions of the BSD Licensewhich accompanies this \r
 @REM\r
 @REM This program and the accompanying materials are licensed and made available\r
 @REM under the terms and conditions of the BSD Licensewhich accompanies this \r
@@ -131,7 +131,7 @@ pushd .
   )\r
   echo EDK_TOOLS_PATH      = %EDK_TOOLS_PATH%\r
   if defined BASE_TOOLS_PATH (\r
   )\r
   echo EDK_TOOLS_PATH      = %EDK_TOOLS_PATH%\r
   if defined BASE_TOOLS_PATH (\r
-    echo BASE_TOOLS_PATH     = %EDK_TOOLS_PATH%\r
+    echo BASE_TOOLS_PATH     = %BASE_TOOLS_PATH%\r
   )\r
   echo.\r
 \r
   )\r
   echo.\r
 \r
@@ -162,27 +162,40 @@ if NOT exist %WORKSPACE%\Conf\FrameworkDatabase.db (
   echo copying ... FrameworkDatabase.template to %WORKSPACE%\Conf\FrameworkDatabase.db\r
   copy %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul\r
 ) else (\r
   echo copying ... FrameworkDatabase.template to %WORKSPACE%\Conf\FrameworkDatabase.db\r
   copy %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul\r
 ) else (\r
+  if defined RECONFIG echo over-write ... FrameworkDatabase.template to %WORKSPACE%\Conf\FrameworkDatabase.db\r
   if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul\r
 )\r
 \r
 if NOT exist %WORKSPACE%\Conf\target.txt (\r
   echo copying ... target.template to %WORKSPACE%\Conf\target.txt\r
   if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul\r
 )\r
 \r
 if NOT exist %WORKSPACE%\Conf\target.txt (\r
   echo copying ... target.template to %WORKSPACE%\Conf\target.txt\r
+  if NOT exist %EDK_TOOLS_PATH%\Conf\target.template (\r
+    echo Error: target.template is missing at folder %EDK_TOOLS_PATH%\Conf\\r
+  )\r
   copy %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul\r
 ) else (\r
   copy %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul\r
 ) else (\r
+  if defined RECONFIG echo over-write ... target.template to %WORKSPACE%\Conf\target.txt\r
   if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul\r
 )\r
 \r
 if NOT exist %WORKSPACE%\Conf\tools_def.txt (\r
   echo copying ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt\r
   if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul\r
 )\r
 \r
 if NOT exist %WORKSPACE%\Conf\tools_def.txt (\r
   echo copying ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt\r
+  if NOT exist %EDK_TOOLS_PATH%\Conf\tools_def.template (\r
+    echo Error: tools_def.template is missing at folder %EDK_TOOLS_PATH%\Conf\\r
+  )\r
   copy %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul\r
 ) else (\r
   copy %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul\r
 ) else (\r
+  if defined RECONFIG echo over-write ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt\r
   if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul\r
 )\r
 \r
 if NOT exist %WORKSPACE%\Conf\build_rule.txt (\r
   echo copying ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt\r
   if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul\r
 )\r
 \r
 if NOT exist %WORKSPACE%\Conf\build_rule.txt (\r
   echo copying ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt\r
+  if NOT exist %EDK_TOOLS_PATH%\Conf\build_rule.template (\r
+    echo Error: build_rule.template is missing at folder %EDK_TOOLS_PATH%\Conf\\r
+  )\r
   copy %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul\r
 ) else (\r
   copy %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul\r
 ) else (\r
+  if defined RECONFIG echo over-write ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt\r
   if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul\r
 )\r
 \r
   if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul\r
 )\r
 \r
@@ -226,7 +239,7 @@ goto end
     echo tested versions of the tools have been tested and included in the\r
     echo EDK II repository.\r
     echo.\r
     echo tested versions of the tools have been tested and included in the\r
     echo EDK II repository.\r
     echo.\r
-    echo If you really want to build the tools, use the FORCE_REBUILD option.\r
+    echo If you really want to build the tools, use the ForceRebuild option.\r
     echo.\r
     goto end\r
   )\r
     echo.\r
     goto end\r
   )\r
@@ -248,7 +261,7 @@ goto end
       set PYTHON_HOME=%PYTHONHOME%\r
     ) else (\r
       echo.\r
       set PYTHON_HOME=%PYTHONHOME%\r
     ) else (\r
       echo.\r
-      echo  !!! ERROR !!! PYTHON is required to build or execute the tools !!!\r
+      echo  !!! ERROR !!! PYTHON_HOME is required to build or execute the tools, please set it. !!!\r
       echo.\r
       goto end\r
     )\r
       echo.\r
       goto end\r
     )\r