am-tests,microbench,yield-os: CMake support
This commit is contained in:
parent
02b38e7b44
commit
0b911f75ce
13 changed files with 496 additions and 14 deletions
|
@ -1,2 +1,3 @@
|
|||
add_subdirectory(hello)
|
||||
add_subdirectory(demo)
|
||||
add_subdirectory(yield-os)
|
||||
|
|
11
kernels/yield-os/CMakeLists.txt
Normal file
11
kernels/yield-os/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
add_executable(yield-os
|
||||
yield-os.c
|
||||
)
|
||||
target_link_libraries(yield-os PRIVATE am-${ARCH} klib npcgcc)
|
||||
|
||||
# -- 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)
|
||||
|
||||
install(TARGETS yield-os RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/am-kernels)
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/yield-os.bin DESTINATION ${CMAKE_INSTALL_DATADIR}/am-kernels)
|
Loading…
Add table
Add a link
Reference in a new issue