Firmwares/CMakeLists.txt

20 lines
719 B
CMake
Raw Normal View History

if (NOT DEFINED BOARD)
set(BOARD iss)
endif()
if (NOT DEFINED ISA)
set(ISA imc)
2023-08-20 16:39:20 +02:00
endif()
message(STATUS "Building firmware using ${BOARD} board configuration")
2023-08-20 16:39:20 +02:00
add_custom_target(fw-hello-world ALL
COMMAND make -C ${riscvfw_SOURCE_DIR}/hello-world BOARD=${BOARD} ISA=${ISA}
2023-08-20 16:39:20 +02:00
USES_TERMINAL
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_custom_target(fw-dhrystone ALL
2023-08-28 10:01:06 +02:00
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/dhrystone BOARD=${BOARD} ISA=${ISA}
2023-08-20 16:39:20 +02:00
USES_TERMINAL
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_custom_target(fw-coremark ALL
2024-03-24 19:16:24 +01:00
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/coremark BOARD=${BOARD} ISA=${ISA}
2023-08-20 16:39:20 +02:00
USES_TERMINAL
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})