From 36cb4014202cb4dc1b45baa18a6eae09bd157665 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Fri, 7 Mar 2025 19:32:14 +0100 Subject: [PATCH] updates BSP and adds options to specify link target --- CMakeLists.txt | 5 ++++- bare-metal-bsp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b03c3d..7c1b5a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) diff --git a/bare-metal-bsp b/bare-metal-bsp index 87dc0ec..428d3ac 160000 --- a/bare-metal-bsp +++ b/bare-metal-bsp @@ -1 +1 @@ -Subproject commit 87dc0ec2304adcb94a25b397a357aadae1304867 +Subproject commit 428d3ac28556bf6d2229dd1b767bcd46008f7552