2011-05-16 13:12:07 +00:00
|
|
|
|
2012-08-27 18:58:27 +00:00
|
|
|
if(ARCH STREQUAL "i386" OR ARCH STREQUAL "amd64")
|
2011-06-09 13:56:44 +00:00
|
|
|
|
2014-10-17 23:28:29 +00:00
|
|
|
CreateBootSectorTarget(dosmbr ${CMAKE_CURRENT_SOURCE_DIR}/dosmbr.S ${CMAKE_CURRENT_BINARY_DIR}/dosmbr.bin 7c00)
|
|
|
|
CreateBootSectorTarget(ext2 ${CMAKE_CURRENT_SOURCE_DIR}/ext2.S ${CMAKE_CURRENT_BINARY_DIR}/ext2.bin 0)
|
2015-12-26 16:57:41 +00:00
|
|
|
|
|
|
|
CreateBootSectorTarget(fat ${CMAKE_CURRENT_SOURCE_DIR}/fat.S ${CMAKE_CURRENT_BINARY_DIR}/fat.bin 7c00)
|
2015-01-26 21:19:21 +00:00
|
|
|
CreateBootSectorTarget(fat32 ${CMAKE_CURRENT_SOURCE_DIR}/fat32.S ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin 7c00)
|
2018-06-19 01:00:52 +00:00
|
|
|
CreateBootSectorTarget(btrfsvbr ${CMAKE_CURRENT_SOURCE_DIR}/btrfs.S ${CMAKE_CURRENT_BINARY_DIR}/btrfs.bin 7c00)
|
2015-12-26 16:57:41 +00:00
|
|
|
|
2015-12-26 17:44:07 +00:00
|
|
|
## New versions using FATY.S (experimental)
|
2015-12-26 16:57:41 +00:00
|
|
|
# add_definitions(-DFAT12)
|
2015-12-26 17:44:07 +00:00
|
|
|
# CreateBootSectorTarget(fat_new ${CMAKE_CURRENT_SOURCE_DIR}/faty.S ${CMAKE_CURRENT_BINARY_DIR}/fat_new.bin 7c00)
|
2015-12-26 16:57:41 +00:00
|
|
|
# remove_definitions(-DFAT12)
|
|
|
|
# add_definitions(-DFAT16)
|
2015-12-26 17:44:07 +00:00
|
|
|
# CreateBootSectorTarget(fat16_new ${CMAKE_CURRENT_SOURCE_DIR}/faty.S ${CMAKE_CURRENT_BINARY_DIR}/fat16_new.bin 7c00)
|
2015-12-26 16:57:41 +00:00
|
|
|
# remove_definitions(-DFAT16)
|
|
|
|
# add_definitions(-DFAT32)
|
2015-12-26 17:44:07 +00:00
|
|
|
# CreateBootSectorTarget(fat32_new ${CMAKE_CURRENT_SOURCE_DIR}/faty.S ${CMAKE_CURRENT_BINARY_DIR}/fat32_new.bin 7c00)
|
2015-12-26 16:57:41 +00:00
|
|
|
# remove_definitions(-DFAT32)
|
|
|
|
|
2014-10-17 23:28:29 +00:00
|
|
|
CreateBootSectorTarget(isoboot ${CMAKE_CURRENT_SOURCE_DIR}/isoboot.S ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin 7000)
|
|
|
|
CreateBootSectorTarget(isobtrt ${CMAKE_CURRENT_SOURCE_DIR}/isobtrt.S ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin 7000)
|
2017-01-15 12:31:47 +00:00
|
|
|
CreateBootSectorTarget(isombr ${CMAKE_CURRENT_SOURCE_DIR}/isombr.S ${CMAKE_CURRENT_BINARY_DIR}/isombr.bin 7000)
|
2011-06-09 13:56:44 +00:00
|
|
|
|
2015-01-27 00:19:02 +00:00
|
|
|
add_cd_file(TARGET dosmbr DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/dosmbr.bin FOR bootcd regtest)
|
|
|
|
add_cd_file(TARGET ext2 DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/ext2.bin FOR bootcd regtest)
|
2018-06-19 01:00:52 +00:00
|
|
|
add_cd_file(TARGET btrfsvbr DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/btrfs.bin FOR bootcd regtest)
|
2015-01-27 00:19:02 +00:00
|
|
|
add_cd_file(TARGET fat DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/fat.bin FOR bootcd regtest)
|
|
|
|
add_cd_file(TARGET fat32 DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin FOR bootcd regtest)
|
2015-01-26 21:19:21 +00:00
|
|
|
add_cd_file(TARGET isoboot DESTINATION loader NO_CAB NOT_IN_HYBRIDCD FILE ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin FOR all hybridcd)
|
2015-01-27 00:19:02 +00:00
|
|
|
add_cd_file(TARGET isobtrt DESTINATION loader NO_CAB NOT_IN_HYBRIDCD FILE ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin FOR bootcd regtest)
|
2011-06-16 09:16:56 +00:00
|
|
|
|
2011-06-09 13:56:44 +00:00
|
|
|
endif()
|