2023-08-20 16:45:54 +02:00
|
|
|
if (NOT DEFINED BOARD)
|
|
|
|
set(BOARD iss)
|
|
|
|
endif()
|
|
|
|
if (NOT DEFINED ISA)
|
|
|
|
set(ISA imc)
|
2023-08-20 16:39:20 +02:00
|
|
|
endif()
|
2023-10-27 22:16:21 +02:00
|
|
|
message(STATUS "Building firmware using ${BOARD} board configuration")
|
2023-08-20 16:39:20 +02:00
|
|
|
add_custom_target(fw-hello-world ALL
|
2023-08-20 16:45:54 +02:00
|
|
|
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
|
2023-08-28 10:01:06 +02:00
|
|
|
COMMAND make -C ${riscvfw_SOURCE_DIR}/benchmarks/coremark/cm PORT_DIR=../tgc BOARD=${BOARD} ISA=${ISA}
|
2023-08-20 16:39:20 +02:00
|
|
|
USES_TERMINAL
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|