updates BSP and adds options to specify link target

This commit is contained in:
Eyck Jentzsch 2025-03-07 19:32:14 +01:00
parent f3dc9aea54
commit 36cb401420
2 changed files with 5 additions and 2 deletions

View File

@ -4,8 +4,11 @@ endif()
if (NOT DEFINED ISA)
set(ISA imc)
endif()
if(DEFINED LINK_TARGET)
set(LNK LINK_TARGET=${LINK_TARGET})
endif()
message(STATUS "Building firmware using ${BOARD} board configuration and isa ${ISA}")
add_custom_target(fw-common ALL
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}
COMMAND make -C hello-world BOARD=${BOARD} ISA=${ISA} ${LNK} && make -C benchmarks/dhrystone BOARD=${BOARD} ISA=${ISA} ${LNK} && make -C benchmarks/coremark BOARD=${BOARD} ISA=${ISA} ${LNK}
USES_TERMINAL
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})

@ -1 +1 @@
Subproject commit 87dc0ec2304adcb94a25b397a357aadae1304867
Subproject commit 428d3ac28556bf6d2229dd1b767bcd46008f7552