From 25c9422e3ad1e5544354f927017faa0e2f7066fc Mon Sep 17 00:00:00 2001 From: aottaviano Date: Fri, 24 Mar 2023 01:04:25 +0100 Subject: [PATCH] Rename safety_island to safety-island --- configs/{safety_island.sh => safety-island.sh} | 4 ++-- .../targets/{safety_island.mk => safety-island.mk} | 10 +++------- 2 files changed, 5 insertions(+), 9 deletions(-) rename configs/{safety_island.sh => safety-island.sh} (84%) rename rules/pulpos/targets/{safety_island.mk => safety-island.mk} (74%) diff --git a/configs/safety_island.sh b/configs/safety-island.sh similarity index 84% rename from configs/safety_island.sh rename to configs/safety-island.sh index 539a64d..9903bcd 100644 --- a/configs/safety_island.sh +++ b/configs/safety-island.sh @@ -1,7 +1,7 @@ #!/bin/bash -e -export PULPRT_TARGET=safety_island -export PULPRUN_TARGET=safety_island +export PULPRT_TARGET=safety-island +export PULPRUN_TARGET=safety-island if [ -n "${ZSH_VERSION:-}" ]; then DIR="$(readlink -f -- "${(%):-%x}")" diff --git a/rules/pulpos/targets/safety_island.mk b/rules/pulpos/targets/safety-island.mk similarity index 74% rename from rules/pulpos/targets/safety_island.mk rename to rules/pulpos/targets/safety-island.mk index 6f16dde..0c7fba2 100644 --- a/rules/pulpos/targets/safety_island.mk +++ b/rules/pulpos/targets/safety-island.mk @@ -2,13 +2,9 @@ PULP_LDFLAGS += PULP_CFLAGS += -D__cv32e40p__ -U__riscv__ -UARCHI_CORE_HAS_PULPV2 -PULP_ARCH_CFLAGS ?= -march=rv32imcxgap9 -PULP_ARCH_OBJDFLAGS ?= -march=riscv32imcxgap9 -PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9 - -# PULP_ARCH_CFLAGS ?= -march=rv32imc_zfinx_xcorev -mno-nohwloop -# PULP_ARCH_LDFLAGS ?= -march=rv32imc_zfinx_xcorev -mno-nohwloop -# PULP_ARCH_OBJDFLAGS ?= +PULP_ARCH_CFLAGS ?= -march=rv32imc_zfinx_xcorev -mabi=ilp32 -mno-pulp-hwloop +PULP_ARCH_LDFLAGS ?= -march=rv32imc_zfinx_xcorev -mabi=ilp32 -mno-pulp-hwloop +PULP_ARCH_OBJDFLAGS ?= PULP_CFLAGS += -fdata-sections -ffunction-sections -include chips/safety-island/config.h -I$(PULPRT_HOME)/include/chips/safety-island PULP_OMP_CFLAGS += -fopenmp -mnativeomp