Add basic UEFI support
This commit is contained in:
13
cmake/Platform/UEFI.cmake
Normal file
13
cmake/Platform/UEFI.cmake
Normal file
@@ -0,0 +1,13 @@
|
||||
# References:
|
||||
# - https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6630
|
||||
# - https://gitlab.kitware.com/cmake/cmake/-/issues/16538
|
||||
# - https://kubasejdak.com/how-to-cross-compile-for-embedded-with-cmake-like-a-champ
|
||||
|
||||
include(Platform/Generic)
|
||||
|
||||
set(CMAKE_EXECUTABLE_SUFFIX ".efi")
|
||||
set(CMAKE_SHARED_LIBRARY_SUFFIX ".efi")
|
||||
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
||||
|
||||
# UEFI APIs might expect 16-bit wchar_t
|
||||
add_compile_options(-fshort-wchar)
|
||||
Reference in New Issue
Block a user