Compare commits
2 Commits
339d6b0f2c
...
main
Author | SHA1 | Date | |
---|---|---|---|
ac45dc11a3 | |||
ea32dd9ce3 |
@ -4,11 +4,8 @@ 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} ${LNK} && make -C benchmarks/dhrystone BOARD=${BOARD} ISA=${ISA} ${LNK} && make -C benchmarks/coremark BOARD=${BOARD} ISA=${ISA} ${LNK}
|
||||
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}
|
||||
USES_TERMINAL
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
Submodule bare-metal-bsp updated: f21ea46bef...87dc0ec230
@ -9,7 +9,7 @@ HEADERS := dhry.h
|
||||
BOARD?=iss
|
||||
LINK_TARGET=link
|
||||
RISCV_ARCH:=rv32$(ISA)
|
||||
ifneq (,$(findstring e,$(ISA)))
|
||||
ifeq ($(ISA),e)
|
||||
RISCV_ABI:=ilp32e
|
||||
else
|
||||
RISCV_ABI:=ilp32
|
||||
@ -18,6 +18,7 @@ endif
|
||||
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
|
||||
LDFLAGS := -Wl,--wrap=scanf
|
||||
|
||||
TOOL_DIR=$(dir $(compiler))
|
||||
|
||||
BSP_BASE = ../../bare-metal-bsp
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
TARGET = hello
|
||||
ISA?=imc
|
||||
|
||||
|
Reference in New Issue
Block a user