[BOOTMGFW] Disable EFI bootloader compilation

Don't pretend we are supporting UEFI, we are not
This commit is contained in:
Victor Perevertkin 2021-03-03 04:59:12 +03:00
parent 6e40a96145
commit 3bde2740df
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -15,9 +15,11 @@ else()
message(FATAL_ERROR "Unknown ARCH '" ${ARCH} "', cannot generate a valid UEFI boot filename.") message(FATAL_ERROR "Unknown ARCH '" ${ARCH} "', cannot generate a valid UEFI boot filename.")
endif() endif()
# FIXME: this command creates a dummy EFI partition, add EFI/BOOT/boot${EFI_PLATFORM_ID}.efi file
# once ReactOS supports UEFI
add_custom_target(efisys add_custom_target(efisys
COMMAND native-fatten ${CMAKE_CURRENT_BINARY_DIR}/efisys.bin -format 2880 EFIBOOT -boot ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/fat.bin -mkdir EFI -mkdir EFI/BOOT -add $<TARGET_FILE:bootmgfw> EFI/BOOT/boot${EFI_PLATFORM_ID}.efi COMMAND native-fatten ${CMAKE_CURRENT_BINARY_DIR}/efisys.bin -format 2880 EFIBOOT -boot ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/fat.bin -mkdir EFI -mkdir EFI/BOOT
DEPENDS native-fatten fat bootmgfw DEPENDS native-fatten fat
VERBATIM) VERBATIM)
@ -164,4 +166,4 @@ add_cd_file(TARGET efisys FILE ${CMAKE_CURRENT_BINARY_DIR}/efisys.bin DESTINATIO
add_subdirectory(freeldr) add_subdirectory(freeldr)
add_subdirectory(bootdata) add_subdirectory(bootdata)
add_subdirectory(environ) # add_subdirectory(environ)