pulp-runtime/rules/pulpos/src.mk
Luigi Ghionda dfd91b93a1 Add UART drivers in case this is a host peripheral to differentiate them from those that make use of udma
This mod is tailored for Astral and its host, Cheshire, whose basic funcitons are reused.
This enables printing from the cluster.
2025-01-26 12:47:37 +01:00

24 lines
583 B
Makefile

ifeq '$(CONFIG_CRT0)' '1'
PULP_ASM_SRCS += kernel/crt0.S
endif
ifeq '$(CONFIG_LIBC_MINIMAL)' '1'
PULP_SRCS += lib/libc/minimal/io.c lib/libc/minimal/fprintf.c lib/libc/minimal/prf.c lib/libc/minimal/sprintf.c
endif
ifeq '$(CONFIG_IO_UART)' '1'
PULP_SRCS += drivers/udma_uart.c
endif
ifeq '$(CONFIG_IO_UART)' '2'
PULP_SRCS += drivers/host_uart.c
endif
PULP_SRCS += kernel/init.c kernel/kernel.c kernel/alloc.c kernel/alloc_pool.c kernel/irq.c kernel/soc_event.c kernel/bench.c
PULP_ASM_SRCS += kernel/irq_asm.S
ifneq '$(cluster/version)' ''
PULP_SRCS += kernel/cluster.c
endif