23 lines
381 B
CMake
23 lines
381 B
CMake
platform(f256k COMPLETE PARENT common)
|
|
|
|
if(NOT CMAKE_CROSSCOMPILING)
|
|
return()
|
|
endif()
|
|
|
|
file(READ clang.cfg CONFIG)
|
|
|
|
install(FILES
|
|
link.ld
|
|
settings.ld
|
|
TYPE LIB)
|
|
|
|
add_platform_library(f256k-crt0)
|
|
merge_libraries(f256k-crt0
|
|
common-crt0
|
|
common-init-stack
|
|
common-copy-zp-data
|
|
common-zero-bss
|
|
common-exit-loop
|
|
)
|
|
|
|
target_compile_options(f256k-crt0 PUBLIC -mcpu=mosw65c02)
|