MNRS-BM-BSP/env/iss/CMakeLists.txt

31 lines
607 B
CMake
Raw Normal View History

2024-12-20 14:27:45 +01:00
#cmake_minimum_required(VERSION 3.12)
project(iss)
message(STATUS " here in iss")
2024-12-17 12:32:21 +01:00
# 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}
)