Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
3.8 KiB

  1. echo off
  2. title EFI - IA-32 Boot Floppy (BIOS) Environment
  3. REM #########################################################################
  4. REM #
  5. REM # Copyright (c) 2000 Intel Corporation
  6. REM #
  7. REM # Module Name:
  8. REM #
  9. REM # build.cmd
  10. REM #
  11. REM # Abstract:
  12. REM #
  13. REM # Initialize environment for EFI
  14. REM #
  15. REM # Revision History
  16. REM #
  17. REM #########################################################################
  18. REM #
  19. REM # The following five environment variables must be set correctly for
  20. REM # EFI to build correctly.
  21. REM #
  22. REM # EFI_SOURCE - The path to the root of the EFI source tree
  23. REM #
  24. REM # EFI_MSVCTOOLPATH - The path to the Microsft VC++ tools
  25. REM #
  26. REM # EFI_MASMPATH - The path to the MASM 6.11 tools
  27. REM #
  28. REM # EFI_DEBUG - YES for debug version, NO for free version
  29. REM #
  30. REM # EFI_DEBUG_CLEAR_MEMORY- YES for debug version that clears buffers, NO for free
  31. REM #
  32. REM # EFI_BOOTSHELL - YES for booting directly to the EFI Shell
  33. REM #
  34. REM # EFI_SPLIT_CONSOLES - YES for including the ConSpliter Protocol
  35. REM #
  36. REM #########################################################################
  37. # set EFI_SOURCE=C:\Project\Efi
  38. REM #########################################################################
  39. REM # VC++ 5.0 : set EFI_MSVCTOOLPATH=c:\Program Files\DevStudio\VC
  40. REM # VC++ 6.0 : set EFI_MSVCTOOLPATH=c:\Program Files\Microsoft Visual Studio\VC98
  41. REM #########################################################################
  42. set EFI_MSVCTOOLPATH=c:\Program Files\Microsoft Visual Studio\VC98
  43. set EFI_MASMPATH=c:\masm611
  44. set EFI_DEBUG=YES
  45. set EFI_DEBUG_CLEAR_MEMORY=YES
  46. set EFI_BOOTSHELL=NO
  47. set EFI_SPLIT_CONSOLES=YES
  48. REM #########################################################################
  49. REM # Echo settings to the screen
  50. REM #########################################################################
  51. cls
  52. echo ************************************************************************
  53. echo * E F I *
  54. echo * *
  55. echo * Extensible Firmware Interface *
  56. echo * Reference Implementation *
  57. echo * *
  58. echo * IA-32 Boot Floppy Environment *
  59. echo ************************************************************************
  60. echo * Supported Build Commands *
  61. echo ************************************************************************
  62. echo * nmake - Incremental compile and link *
  63. echo * nmake clean - Remove all OBJ, LIB, EFI, and EXE files *
  64. echo * nmake floppy - Copy EFI firmare image to a boot floppy *
  65. echo * nmake createfloppy - Create a floppy with an EFI boot sector *
  66. echo * nmake floppytools - Copy all EFI utilities to a boot floppy *
  67. echo * nmake bsc - Create Browse Information File *
  68. echo ************************************************************************
  69. echo EFI_SOURCE=%EFI_SOURCE%
  70. echo EFI_MSVCTOOLPATH=%EFI_MSVCTOOLPATH%
  71. echo EFI_MASMPATH=%EFI_MASMPATH%
  72. echo EFI_DEBUG=%EFI_DEBUG%
  73. echo EFI_DEBUG_CLEAR_MEMORY=%EFI_DEBUG_CLEAR_MEMORY%
  74. echo EFI_BOOTSHELL=%EFI_BOOTSHELL%
  75. echo EFI_SPLIT_CONSOLES=%EFI_SPLIT_CONSOLES%
  76. REM #########################################################################
  77. REM # Generate additional settings
  78. REM #########################################################################
  79. set EFI_LIBPATH=%EFI_MSVCTOOLPATH%\lib
  80. set INCLUDE=%EFI_MSVCTOOLPATH%\Include
  81. path %EFI_MSVCTOOLPATH%\bin;%EFI_MASMPATH%\bin;%path%