2015-09-08 03:37:47 +00:00
|
|
|
## efisys.bin
|
|
|
|
|
2015-09-08 15:26:34 +00:00
|
|
|
# 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()
|
|
|
|
|
2015-09-08 03:37:47 +00:00
|
|
|
add_custom_target(efisys
|
2016-01-20 06:59:12 +00:00
|
|
|
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
|
2015-09-09 19:48:15 +00:00
|
|
|
DEPENDS native-fatten fat bootmgfw bcd_hive
|
2015-09-08 03:37:47 +00:00
|
|
|
VERBATIM)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
##bootcd
|
|
|
|
#clear it out
|
2013-07-21 13:33:03 +00:00
|
|
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bootcd.lst "")
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_custom_target(bootcd
|
2015-09-09 02:11:49 +00:00
|
|
|
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
|
2015-09-08 15:26:34 +00:00
|
|
|
DEPENDS native-cdmake efisys
|
2011-05-16 13:12:07 +00:00
|
|
|
VERBATIM)
|
2013-07-21 13:33:03 +00:00
|
|
|
|
2011-05-19 21:55:57 +00:00
|
|
|
##bootcdregtest
|
|
|
|
#clear it out
|
2013-07-21 13:33:03 +00:00
|
|
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest.lst "")
|
2011-05-19 21:55:57 +00:00
|
|
|
|
|
|
|
add_custom_target(bootcdregtest
|
2015-09-09 02:11:49 +00:00
|
|
|
COMMAND native-cdmake -j -m -bootdata:2\#p0,e,b${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/isobtrt.bin\#pEF,e,b${CMAKE_CURRENT_BINARY_DIR}/efisys.bin @${CMAKE_CURRENT_BINARY_DIR}/bootcdregtest.lst REACTOS ${REACTOS_BINARY_DIR}/bootcdregtest.iso
|
|
|
|
DEPENDS native-cdmake efisys
|
2011-05-19 21:55:57 +00:00
|
|
|
VERBATIM)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
##livecd
|
2015-01-29 00:20:56 +00:00
|
|
|
#clear it out
|
|
|
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/livecd.lst "")
|
|
|
|
|
2015-06-22 18:33:49 +00:00
|
|
|
#create the empty Desktop, Favorites, and Start Menu folders
|
2015-01-29 00:20:56 +00:00
|
|
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.lst "Profiles/Default User/Desktop\n")
|
2015-06-22 18:33:49 +00:00
|
|
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.lst "Profiles/Default User/Favorites\n")
|
2015-01-29 00:20:56 +00:00
|
|
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/livecd.lst "Profiles/Default User/Start Menu/Programs\n")
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_custom_target(livecd
|
2015-09-09 02:11:49 +00:00
|
|
|
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}/livecd.lst REACTOS ${REACTOS_BINARY_DIR}/livecd.iso
|
|
|
|
DEPENDS native-cdmake efisys
|
2011-05-16 13:12:07 +00:00
|
|
|
VERBATIM)
|
|
|
|
|
2015-01-18 13:55:23 +00:00
|
|
|
##hybridcd
|
2015-01-29 00:20:56 +00:00
|
|
|
#clear it out
|
|
|
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/hybridcd.lst "")
|
|
|
|
|
2015-06-22 18:33:49 +00:00
|
|
|
#create the empty Desktop, Favorites, and Start Menu folders
|
2015-01-29 00:20:56 +00:00
|
|
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/hybridcd.lst "livecd/Profiles/Default User/Desktop\n")
|
2016-01-29 01:18:53 +00:00
|
|
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/hybridcd.lst "livecd/Profiles/Default User/Favorites\n")
|
2015-01-29 00:20:56 +00:00
|
|
|
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/hybridcd.lst "livecd/Profiles/Default User/Start Menu/Programs\n")
|
2015-01-18 13:55:23 +00:00
|
|
|
|
|
|
|
add_custom_target(hybridcd
|
2015-09-09 02:11:49 +00:00
|
|
|
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}/hybridcd.lst REACTOS ${REACTOS_BINARY_DIR}/hybridcd.iso
|
|
|
|
DEPENDS native-cdmake efisys bootcd livecd
|
2015-01-18 13:55:23 +00:00
|
|
|
VERBATIM)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
add_subdirectory(freeldr)
|
|
|
|
add_subdirectory(bootdata)
|
2015-09-04 14:16:56 +00:00
|
|
|
add_subdirectory(environ)
|