From 5fb4ab311d00c5e6a932047c9caefa5ad137f8b9 Mon Sep 17 00:00:00 2001 From: Philip Wiese Date: Fri, 29 Nov 2024 17:30:06 +0100 Subject: [PATCH] Cleanup for PR --- targets/chimera-convolve/src/crt0.S | 3 ++- targets/chimera-open/src/crt0.S | 1 + tests/CMakeLists.txt | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/targets/chimera-convolve/src/crt0.S b/targets/chimera-convolve/src/crt0.S index 059937c..3c783b1 100644 --- a/targets/chimera-convolve/src/crt0.S +++ b/targets/chimera-convolve/src/crt0.S @@ -126,7 +126,8 @@ _trap_handler_wrap: lw t6, 0(sp) addi sp, sp, 128 mret - + +.global _trap_handler .weak trap_vector trap_vector: j trap_vector diff --git a/targets/chimera-open/src/crt0.S b/targets/chimera-open/src/crt0.S index 059937c..bf0325b 100644 --- a/targets/chimera-open/src/crt0.S +++ b/targets/chimera-open/src/crt0.S @@ -127,6 +127,7 @@ _trap_handler_wrap: addi sp, sp, 128 mret +.global _trap_handler .weak trap_vector trap_vector: j trap_vector diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7ea69f6..a3a9889 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -6,4 +6,7 @@ add_subdirectory(generic) -# add_target_source(${TARGET_PLATFORM}) +# Check if folder has a CMakeLists.txt file +if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/${TARGET_PLATFORM}/CMakeLists.txt) + add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/${TARGET_PLATFORM}) +endif()