2024-08-13 12:24:57 +00:00
|
|
|
add_executable(yield-os
|
|
|
|
yield-os.c
|
|
|
|
)
|
2024-08-15 08:42:02 +00:00
|
|
|
target_link_libraries(yield-os PRIVATE am-${ARCH} klib)
|
2024-08-13 12:24:57 +00:00
|
|
|
|
|
|
|
# -- Extract binary file from ELF
|
|
|
|
add_custom_command(TARGET yield-os
|
|
|
|
COMMAND ${CMAKE_OBJCOPY} ARGS -S --set-section-flags .bss=alloc,contents -O binary yield-os yield-os.bin)
|
|
|
|
|
2024-08-15 09:52:04 +00:00
|
|
|
create_binary(yield-os)
|
|
|
|
install_target_and_binary(yield-os)
|