slimbootloader/BaseTools
Mircea Gherzan 9f3d2b5fc3 Fix the compiler flags for MSVC 2017 and 2019
* Enable frame pointers (via /Oy-) for 32-bit modules. From the
documentation: "If you specify a debug compiler option (/Z7, /Zi, /ZI),
we recommend that you specify the /Oy- option after any other
optimization compiler options."
* /O1b2s is equivaled to /O1 (/Ob2 and /Os are included in /O1)
* /Z7 for debug info is obsolete, replace with /Zi

Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
2020-11-03 12:38:58 -08:00
..
Bin Sync up new BaseTools to EDK201911 stable release 2020-02-03 15:49:48 -08:00
BinWrappers Sync up new BaseTools to EDK201911 stable release 2020-02-03 15:49:48 -08:00
Conf Fix the compiler flags for MSVC 2017 and 2019 2020-11-03 12:38:58 -08:00
Scripts Resync BaseTools with latest EDKII stable tag 2020-10-12 16:02:35 -07:00
Source Resync BaseTools with latest EDKII stable tag 2020-10-12 16:02:35 -07:00
Tests Sync up with EDK2 stable tag edk2-stable201905 2019-06-12 08:29:06 -07:00
.gitignore Initial check-in for Slim Bootloader source 2018-09-13 16:11:07 -07:00
BuildEnv Sync up with EDK2 stable tag edk2-stable201905 2019-06-12 08:29:06 -07:00
Edk2ToolsBuild.py Resync BaseTools with latest EDKII stable tag 2020-10-12 16:02:35 -07:00
GNUmakefile Sync up with EDK2 stable tag edk2-stable201905 2019-06-12 08:29:06 -07:00
Makefile Sync up with EDK2 stable tag edk2-stable201905 2019-06-12 08:29:06 -07:00
ReadMe.rst Resync BaseTools with latest EDKII stable tag 2020-10-12 16:02:35 -07:00
basetools_calling_path_env.yaml Sync up new BaseTools to EDK201911 stable release 2020-02-03 15:49:48 -08:00
basetools_path_env.yaml Sync up new BaseTools to EDK201911 stable release 2020-02-03 15:49:48 -08:00
get_vsvars.bat Sync up new BaseTools to EDK201911 stable release 2020-02-03 15:49:48 -08:00
set_vsprefix_envs.bat Resync BaseTools with latest EDKII stable tag 2020-10-12 16:02:35 -07:00
toolsetup.bat Sync up new BaseTools to EDK201911 stable release 2020-02-03 15:49:48 -08:00

ReadMe.rst

This directory contains the EDK II build tools and template files.
Templates are located in the Conf directory, while the tools executables for
Microsoft Windows Operating Systems are located in the Bin\\Win32 directory, other
directory contains tools source.

Build step to generate the binary tools
---------------------------------------

Windows/Visual Studio Notes
===========================

To build the BaseTools, you should run the standard vsvars32.bat script
from your preferred Visual Studio installation or you can run get_vsvars.bat
to use latest automatically detected version.

In addition to this, you should set the following environment variables::

 * EDK_TOOLS_PATH - Path to the BaseTools sub directory under the edk2 tree
 * BASE_TOOLS_PATH - The directory where the BaseTools source is located.
   (It is the same directory where this README.rst is located.)

After this, you can run the toolsetup.bat file, which is in the same
directory as this file.  It should setup the remainder of the environment,
and build the tools if necessary.

Please also refer to the ``BuildNotes.txt`` file for more information on
building under Windows.

Unix-like operating systems
===========================

To build on Unix-like operating systems, you only need to type ``make`` in
the base directory of the project.

Ubuntu Notes
============

On Ubuntu, the following command should install all the necessary build
packages to build all the C BaseTools::

 sudo apt install build-essential uuid-dev