1 set(CMAKE_EXE_LINKER_FLAGS "-melf64_s390")
2 set(CMAKE_ASM-ATT_FLAGS "-m64")
4 add_executable(loader setmode.s loader_c.c loader_asm.s)
5 set_target_properties(loader PROPERTIES LINK_FLAGS "-T ${CMAKE_CURRENT_SOURCE_DIR}/linker.script")
9 COMMAND ${CMAKE_OBJCOPY} -O binary -j .text -j .data -j .rodata -j .rodata.str1.2 loader loader.rto
13 add_executable(eckd eckd.s)
14 set_target_properties(eckd PROPERTIES LINK_FLAGS "-T ${CMAKE_CURRENT_SOURCE_DIR}/linker-eckd.script")
18 COMMAND ${CMAKE_OBJCOPY} -O binary -j .text -j .data -j .rodata -j .rodata.str1.2 eckd eckd.rto
22 add_custom_target(loader-rto ALL DEPENDS eckd.rto loader.rto)