Skip to content

KilianKegel/Howto-configure-VS2022-to-build-.EFI-executables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

HowTo-configure-VS2022-to-build-.EFI-executables

Step-by-step configuration to enable VS2022 to create UEFI .EFI executables

CHECK LIST VS2022 target cross configuration

Configuration Properties

Toro-C-Library UEFI .EFI

Toro-C-Library Win64 .EXE

MSFT LIBCMT.lib Win64 .EXE

General
Output Directory $(SolutionDir)$(Platform)\$(Configuration)\ $(SolutionDir)$(Platform)\$(Configuration)\ $(SolutionDir)$(Platform)\$(Configuration)\
Intermediate Directory $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\
Advanced
Target File Extention .EFI .EXE .EXE
Character Set Use Unicode Character Set Use Unicode Character Set Use Unicode Character Set
Whole Program Optimization No Whole Program Optimization No Whole Program Optimization No Whole Program Optimization
C/C++\General
SDL checks No (/sdl-) No (/sdl-) No (/sdl-)
C/C++\Preprocessor
Preprocessor Definitions _NO_CRT_STDIO_INLINE _NO_CRT_STDIO_INLINE
C/C++\Code Generation
Runtime Library Multi-threaded (/MT) Multi-threaded (/MT)
Security Check Disable Security Check (/GS-) Disable Security Check (/GS-)
Floating Point Model Strict (fp:strict) Strict (fp:strict)
Linker\General
Output File $(OutDir)$(TargetName)$(TargetExt) $(OutDir)$(TargetName)$(TargetExt) $(OutDir)$(TargetName)$(TargetExt)
Additional Library Directories $(SolutionDir)Lib $(SolutionDir)Lib $(SolutionDir)Lib
Linker\Input
Additional Dependencies toroC64.lib;LibWin324UEFI.lib
NOTE: uncheck Inherit from parent or project defaults, prevent from %AdditionalDependancies
toroC64.lib;kernel32.lib kernel32.lib;legacy_stdio_definitions.lib
Ignore All Default Libraries Yes (/NODEFAULTLIB) Yes (/NODEFAULTLIB)
Linker\Manifest File
Generate Manifest No (/MANIFEST:NO) No (/MANIFEST:NO)
Linker\System
SubSystem EFI Application (/SUBSYSTEM:EFI_APPLICATION) Console (/SUBSYSTEM:CONSOLE) Console (/SUBSYSTEM:CONSOLE)
Linker\Advanced
Entry Point _cdeCRT0UefiShell _cdeCRT0WinNT
Randomized Base Address No (/DYNAMICBASE:NO)
Data Execution Prevention (DEP) No (/NXCOMPAT:NO)
  1. Get and install Visual Studio:
    https://github.com/KilianKegel/HowTo-setup-an-UEFI-Development-PC#install-visual-studio-2022
  2. Follow the screenshots below:

About

How to configure VS2022 to build .EFI executables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published