mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-14 20:48:09 +00:00
62 lines
No EOL
1.5 KiB
Makefile
62 lines
No EOL
1.5 KiB
Makefile
ifdef USE_IBEX
|
|
PULP_LDFLAGS +=
|
|
PULP_CFLAGS += -D__ibex__ -U__riscv__ -UARCHI_CORE_HAS_PULPV2 -DRV_ISA_RV32
|
|
PULP_ARCH_CFLAGS ?= -march=rv32imc
|
|
PULP_ARCH_LDFLAGS ?= -march=rv32imc
|
|
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imc
|
|
else
|
|
PULP_LDFLAGS +=
|
|
PULP_CFLAGS += -D__riscv__
|
|
PULP_ARCH_CFLAGS ?= -march=rv32imcxgap9
|
|
PULP_ARCH_LDFLAGS ?= -march=rv32imcxgap9
|
|
PULP_ARCH_OBJDFLAGS ?= -Mmarch=rv32imcxgap9
|
|
endif
|
|
|
|
ifdef ARCHI_TCLS
|
|
PULP_CFLAGS += -DARCHI_TCLS
|
|
endif
|
|
|
|
PULP_CFLAGS += -fdata-sections -ffunction-sections -include chips/pulp/config.h -I$(PULPRT_HOME)/include/chips/pulp
|
|
PULP_OMP_CFLAGS += -fopenmp -mnativeomp
|
|
PULP_LDFLAGS += -nostartfiles -nostdlib -Wl,--gc-sections -L$(PULPRT_HOME)/kernel -Tchips/pulp/link.ld -lgcc
|
|
|
|
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=pulp
|
|
pulp_chip_family=pulp
|
|
cluster/version=5
|
|
fc_itc/version=1
|
|
udma/cpi/version=1
|
|
udma/i2c/version=2
|
|
soc/fll/version=1
|
|
udma/i2s/version=2
|
|
udma/uart/version=1
|
|
event_unit/version=3
|
|
perf_counters=True
|
|
fll/version=1
|
|
padframe/version=1
|
|
udma/spim/version=3
|
|
gpio/version=3
|
|
udma/archi=3
|
|
udma/version=3
|
|
soc_eu/version=2
|
|
|
|
|
|
# FLL
|
|
PULP_SRCS += kernel/fll-v$(fll/version).c
|
|
PULP_SRCS += kernel/freq-domains.c
|
|
PULP_SRCS += kernel/chips/pulp/soc.c
|
|
|
|
|
|
include $(PULPRT_HOME)/rules/pulpos/configs/default.mk
|
|
|
|
ifeq '$(platform)' 'fpga'
|
|
CONFIG_IO_UART=1
|
|
endif
|
|
|
|
include $(PULPRT_HOME)/rules/pulpos/default_rules.mk |