GitEdk2MinKabylake.bat 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @REM @file
  2. @REM
  3. @REM Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
  4. @REM SPDX-License-Identifier: BSD-2-Clause-Patent
  5. @REM
  6. @echo off
  7. pushd ..\..\..\..\..\
  8. @REM Set WORKSPACE environment.
  9. set WORKSPACE=%cd%
  10. echo.
  11. echo Set WORKSPACE as: %WORKSPACE%
  12. echo.
  13. @REM Check whether Git has been installed and been added to system path.
  14. git --help >nul 2>nul
  15. if %ERRORLEVEL% NEQ 0 (
  16. echo.
  17. echo The 'git' command is not recognized.
  18. echo Please make sure that Git is installed and has been added to system path.
  19. echo.
  20. goto :EOF
  21. )
  22. @REM Create the Conf directory under WORKSPACE
  23. if not exist %WORKSPACE%\Conf (
  24. mkdir Conf
  25. )
  26. @REM Set other environments.
  27. @REM Basic Rule:
  28. @REM Platform override Silicon override Core
  29. @REM Source override Binary
  30. set PACKAGES_PATH=%WORKSPACE%\edk2-platforms\Platform\Intel;%WORKSPACE%\edk2-platforms\Silicon\Intel;%WORKSPACE%\edk2-non-osi\Silicon\Intel;%WORKSPACE%\FSP;%WORKSPACE%\edk2;%WORKSPACE%
  31. set EDK_TOOLS_BIN=%WORKSPACE%\edk2-BaseTools-win32
  32. @if not defined PYTHON_HOME (
  33. @if exist C:\Python27 (
  34. set PYTHON_HOME=C:\Python27
  35. )
  36. )
  37. set EDK_SETUP_OPTION=
  38. @rem if python is installed, disable the binary base tools.
  39. if defined PYTHON_HOME (
  40. set EDK_TOOLS_BIN=
  41. set EDK_SETUP_OPTION=--nt32
  42. )
  43. pushd %WORKSPACE%\edk2
  44. call edksetup.bat %EDK_SETUP_OPTION%
  45. popd
  46. pushd %WORKSPACE%
  47. @rem if python is installed, nmake BaseTools source and enable BaseTools source build
  48. @if defined PYTHON_HOME (
  49. nmake -f %BASE_TOOLS_PATH%\Makefile
  50. )
  51. popd
  52. set openssl_path=%WORKSPACE%
  53. popd
  54. goto :EOF
  55. :Help
  56. echo.
  57. echo Usage:
  58. echo GitEdk2.bat [-w Workspace_Directory] (optional) [-b Branch_Name] (optional)
  59. echo.
  60. echo -w A absolute/relative path to be the workspace.
  61. echo Default value is the current directory.
  62. echo.
  63. echo -b The branch name of the repository. Currently, only master, udk2015,
  64. echo trunk (same as master) and bp13 (same as udk2015) are supported.
  65. echo Default value is master.
  66. echo.