Firmwares/CMakeLists.txt

12 lines
448 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()
2024-06-14 13:38:31 +02:00
message(STATUS "Building firmware using ${BOARD} board configuration and isa ${ISA}")
2024-06-14 20:46:09 +02:00
add_custom_target(fw-common ALL
2024-06-14 17:34:53 +02:00
COMMAND make -C hello-world BOARD=${BOARD} ISA=${ISA} && make -C benchmarks/dhrystone BOARD=${BOARD} ISA=${ISA} && make -C benchmarks/coremark BOARD=${BOARD} ISA=${ISA}
2023-08-20 16:39:20 +02:00
USES_TERMINAL
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})