mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[EFISYS][BOOTMGFW]
* Compute and use a "platform short name" in the EFI filenames. svn path=/trunk/; revision=69119
This commit is contained in:
parent
3897fba9aa
commit
5b5fa693bd
|
@ -1,7 +1,22 @@
|
|||
## efisys.bin
|
||||
|
||||
# EFI platform ID, used in environ/CMakelists.txt for bootmgfw filename naming also.
|
||||
if(ARCH STREQUAL "amd64")
|
||||
set(EFI_PLATFORM_ID "x64")
|
||||
elseif(ARCH STREQUAL "i386")
|
||||
set(EFI_PLATFORM_ID "ia32")
|
||||
elseif(ARCH STREQUAL "ia64")
|
||||
set(EFI_PLATFORM_ID "ia64")
|
||||
elseif(ARCH STREQUAL "arm")
|
||||
set(EFI_PLATFORM_ID "arm")
|
||||
elseif(ARCH STREQUAL "aarch64")
|
||||
set(EFI_PLATFORM_ID "aa64")
|
||||
else()
|
||||
message(FATAL_ERROR "Unknown ARCH, can't generate a valid UEFI boot filename.")
|
||||
endif()
|
||||
|
||||
add_custom_target(efisys
|
||||
COMMAND native-fatten ${CMAKE_CURRENT_BINARY_DIR}/efisys.bin -format 2880 -mkdir efi -mkdir efi/boot -add $<TARGET_FILE:bootmgfw> efi/boot/bootia32.efi
|
||||
COMMAND native-fatten ${CMAKE_CURRENT_BINARY_DIR}/efisys.bin -format 2880 -mkdir EFI -mkdir EFI/BOOT -add $<TARGET_FILE:bootmgfw> EFI/BOOT/boot${EFI_PLATFORM_ID}.EFI
|
||||
DEPENDS native-fatten bootmgfw
|
||||
VERBATIM)
|
||||
|
||||
|
@ -10,8 +25,9 @@ add_custom_target(efisys
|
|||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bootcd.lst "")
|
||||
|
||||
add_custom_target(bootcd
|
||||
# COMMAND native-cdmake -j -m -bootdata:2\#p0,e,b${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/isoboot.bin\#pEF,e,b${CMAKE_CURRENT_BINARY_DIR}/efisys.bin @${CMAKE_CURRENT_BINARY_DIR}/bootcd.lst REACTOS ${REACTOS_BINARY_DIR}/bootcd.iso
|
||||
COMMAND native-cdmake -j -m -b ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/isoboot.bin @${CMAKE_CURRENT_BINARY_DIR}/bootcd.lst REACTOS ${REACTOS_BINARY_DIR}/bootcd.iso
|
||||
DEPENDS native-cdmake
|
||||
DEPENDS native-cdmake efisys
|
||||
VERBATIM)
|
||||
|
||||
##bootcdregtest
|
||||
|
|
|
@ -91,5 +91,5 @@ endif()
|
|||
|
||||
add_dependencies(bootmgfw asm bugcodes)
|
||||
|
||||
add_cd_file(TARGET bootmgfw FILE ${_bootmgfw_output_file} DESTINATION efi/boot NO_CAB FOR bootcd regtest NAME_ON_CD bootia32.efi)
|
||||
add_cd_file(TARGET bootmgfw FILE ${_bootmgfw_output_file} DESTINATION efi/boot NO_CAB FOR bootcd regtest NAME_ON_CD boot${EFI_PLATFORM_ID}.efi)
|
||||
|
||||
|
|
Loading…
Reference in a new issue