2023-03-15 13:02:20 +00:00
|
|
|
|
|
|
|
|
PULP_LDFLAGS +=
|
|
|
|
|
PULP_CFLAGS += -D__cv32e40p__ -U__riscv__ -UARCHI_CORE_HAS_PULPV2
|
|
|
|
|
|
2023-06-23 14:19:29 +00:00
|
|
|
PULP_ARCH_CFLAGS ?= -march=rv32imac_zfinx_xcorev -mabi=ilp32 -mno-pulp-hwloop
|
|
|
|
|
PULP_ARCH_LDFLAGS ?= -march=rv32imac_zfinx_xcorev -mabi=ilp32 -mno-pulp-hwloop
|
2023-03-24 00:04:25 +00:00
|
|
|
PULP_ARCH_OBJDFLAGS ?=
|
2023-03-15 13:02:20 +00:00
|
|
|
|
|
|
|
|
PULP_CFLAGS += -fdata-sections -ffunction-sections -include chips/safety-island/config.h -I$(PULPRT_HOME)/include/chips/safety-island
|
|
|
|
|
PULP_OMP_CFLAGS += -fopenmp -mnativeomp
|
2024-08-22 14:56:39 +00:00
|
|
|
PULP_LDFLAGS += -nostartfiles -nostdlib -Wl,--gc-sections -L$(PULPRT_HOME)/kernel -lgcc
|
|
|
|
|
|
|
|
|
|
ifdef SAFED_CACHE
|
|
|
|
|
PULP_LDFLAGS += -Tchips/safety-island/link_cache.ld
|
|
|
|
|
else
|
|
|
|
|
PULP_LDFLAGS += -Tchips/safety-island/link.ld
|
|
|
|
|
endif
|
2023-03-15 13:02:20 +00:00
|
|
|
|
|
|
|
|
PULP_CC = riscv32-unknown-elf-gcc
|
|
|
|
|
PULP_AR ?= riscv32-unknown-elf-ar
|
|
|
|
|
PULP_LD ?= riscv32-unknown-elf-gcc
|
|
|
|
|
PULP_OBJDUMP ?= riscv32-unknown-elf-objdump
|
|
|
|
|
|
|
|
|
|
fc/archi=riscv
|
|
|
|
|
pe/archi=riscv
|
|
|
|
|
pulp_chip=safety-island
|
|
|
|
|
pulp_chip_family=safety-island
|
|
|
|
|
|
|
|
|
|
PULP_SRCS += kernel/chips/safety-island/soc.c
|
|
|
|
|
|
2023-11-16 09:11:02 +00:00
|
|
|
# HMR
|
|
|
|
|
PULP_CFLAGS += -DARCHI_HMR -DARCHI_HMR_FIXED
|
|
|
|
|
PULP_SRCS += kernel/hmr_synch.c
|
2023-03-15 13:02:20 +00:00
|
|
|
|
|
|
|
|
include $(PULPRT_HOME)/rules/pulpos/configs/default.mk
|
|
|
|
|
|
|
|
|
|
ifeq '$(platform)' 'fpga'
|
|
|
|
|
CONFIG_IO_UART=1
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
include $(PULPRT_HOME)/rules/pulpos/default_rules.mk
|