7 Commits

Author SHA1 Message Date
eyck 339d6b0f2c updates bsp 2025-03-14 12:01:16 +01:00
eyck 36cb401420 updates BSP and adds options to specify link target 2025-03-07 19:32:14 +01:00
eyck f3dc9aea54 adds wrap for scanf in dhrystone 2024-08-28 18:13:40 +02:00
eyck 2f675e9bdd fixes tgc_vp setup in coremark 2024-06-30 17:26:58 +02:00
eyck 3114cb265a Merge remote-tracking branch 'origin/main' into develop 2024-06-30 07:54:36 +02:00
eyck fca9f04264 Merge remote-tracking branch 'origin/main' into develop 2024-03-20 12:29:57 +01:00
eyck fe1136c7ce fixes ISA handling 2023-12-06 10:00:33 +01:00
4 changed files with 6 additions and 5 deletions
+4 -1
View File
@@ -4,8 +4,11 @@ endif()
if (NOT DEFINED ISA) if (NOT DEFINED ISA)
set(ISA imc) set(ISA imc)
endif() endif()
if(DEFINED LINK_TARGET)
set(LNK LINK_TARGET=${LINK_TARGET})
endif()
message(STATUS "Building firmware using ${BOARD} board configuration and isa ${ISA}") message(STATUS "Building firmware using ${BOARD} board configuration and isa ${ISA}")
add_custom_target(fw-common ALL 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 USES_TERMINAL
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+1 -2
View File
@@ -9,7 +9,7 @@ HEADERS := dhry.h
BOARD?=iss BOARD?=iss
LINK_TARGET=link LINK_TARGET=link
RISCV_ARCH:=rv32$(ISA) RISCV_ARCH:=rv32$(ISA)
ifeq ($(ISA),e) ifneq (,$(findstring e,$(ISA)))
RISCV_ABI:=ilp32e RISCV_ABI:=ilp32e
else else
RISCV_ABI:=ilp32 RISCV_ABI:=ilp32
@@ -18,7 +18,6 @@ endif
CFLAGS := -g -O3 -DITERATIONS=$(ITERATIONS) -DHZ=32768 -DTIME -DNO_INIT -fno-inline -fno-builtin-printf -fno-common -Wno-implicit \ CFLAGS := -g -O3 -DITERATIONS=$(ITERATIONS) -DHZ=32768 -DTIME -DNO_INIT -fno-inline -fno-builtin-printf -fno-common -Wno-implicit \
-funroll-loops -fpeel-loops -fgcse-sm -fgcse-las -funroll-loops -fpeel-loops -fgcse-sm -fgcse-las
LDFLAGS := -Wl,--wrap=scanf LDFLAGS := -Wl,--wrap=scanf
TOOL_DIR=$(dir $(compiler)) TOOL_DIR=$(dir $(compiler))
BSP_BASE = ../../bare-metal-bsp BSP_BASE = ../../bare-metal-bsp
-1
View File
@@ -1,4 +1,3 @@
TARGET = hello TARGET = hello
ISA?=imc ISA?=imc