ReadMe.rst 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ::
  2. Note: New build instructions are available. It is recommended to start with
  3. the new instructions if learning how to build edk2 and/or BaseTools for the
  4. first time. This page is retained for reference.
  5. New instructions: `Build Instructions`_
  6. .. _`Build Instructions`: https://github.com/tianocore/tianocore.github.io/wiki/Build-Instructions
  7. This directory contains the EDK II build tools and template files.
  8. Templates are located in the Conf directory, while the tools executables for
  9. Microsoft Windows Operating Systems are located in the Bin\\Win32 directory, other
  10. directory contains tools source.
  11. Build step to generate the binary tools
  12. ---------------------------------------
  13. Windows/Visual Studio Notes
  14. ===========================
  15. To build the BaseTools, you should run the standard vsvars32.bat script
  16. from your preferred Visual Studio installation or you can run get_vsvars.bat
  17. to use latest automatically detected version.
  18. In addition to this, you should set the following environment variables::
  19. * EDK_TOOLS_PATH - Path to the BaseTools sub directory under the edk2 tree
  20. * BASE_TOOLS_PATH - The directory where the BaseTools source is located.
  21. (It is the same directory where this README.rst is located.)
  22. After this, you can run the toolsetup.bat file, which is in the same
  23. directory as this file. It should setup the remainder of the environment,
  24. and build the tools if necessary.
  25. Unix-like operating systems
  26. ===========================
  27. To build on Unix-like operating systems, you only need to type ``make`` in
  28. the base directory of the project.
  29. Ubuntu Notes
  30. ============
  31. On Ubuntu, the following command should install all the necessary build
  32. packages to build all the C BaseTools::
  33. sudo apt install build-essential uuid-dev