# Create library for ISS board support add_library(board_iss STATIC init.c write.c ) # Include directories target_include_directories(board_iss PUBLIC ${BSP_BASE}/include ${BSP_BASE}/env ${CMAKE_CURRENT_SOURCE_DIR} ) # Set compile options target_compile_options(board_iss PRIVATE -march=${RISCV_ARCH}_zicsr_zifencei -mabi=${RISCV_ABI} -mcmodel=medany -ffunction-sections -fdata-sections ) # Add compile definitions target_compile_definitions(board_iss PRIVATE BOARD_${BOARD} )