mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-14 20:48:09 +00:00
Add PULPissimo CV32E40X target
This commit is contained in:
parent
2b98d1baa4
commit
1a3eafb9a0
2 changed files with 22 additions and 0 deletions
16
configs/pulpissimo_cv32e40x.sh
Normal file
16
configs/pulpissimo_cv32e40x.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
export PULPRT_TARGET=pulpissimo
|
||||
export PULPRUN_TARGET=pulpissimo
|
||||
export USE_CV32E40X=1
|
||||
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then
|
||||
DIR="$(readlink -f -- "${(%):-%x}")"
|
||||
scriptDir="$(dirname $DIR)"
|
||||
else
|
||||
|
||||
scriptDir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
||||
|
||||
fi
|
||||
|
||||
source $scriptDir/common.sh
|
||||
|
|
@ -15,6 +15,12 @@ PULP_ARCH_CFLAGS ?= -march=rv32imfc_xcorev -mno-pulp-hwloop
|
|||
PULP_ARCH_LDFLAGS ?= -march=rv32imfc_xcorev -mno-pulp-hwloop
|
||||
endif
|
||||
PULP_ARCH_OBJDFLAGS ?=
|
||||
else ifdef USE_CV32E40X
|
||||
PULP_LDFLAGS +=
|
||||
PULP_CFLAGS += -D__riscv__ -UARCHI_CORE_HAS_PULPV2 -DRV_ISA_RV32
|
||||
PULP_ARCH_CFLAGS ?= -march=rv32imc -mnohwloop
|
||||
PULP_ARCH_LDFLAGS ?= -march=rv32imc -mnohwloop
|
||||
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imc -mnohwloop
|
||||
else
|
||||
PULP_LDFLAGS +=
|
||||
PULP_CFLAGS += -D__riscv__
|
||||
|
|
|
|||
Loading…
Reference in a new issue