Skip to content

Commit

Permalink
make: Implement support for building the firmware with the RISC-V Deb…
Browse files Browse the repository at this point in the history
…ug remote protocol accelerations
  • Loading branch information
dragonmux committed Aug 6, 2024
1 parent dd9508f commit 13b055c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ENABLE_ARTERY ?= 0
ENABLE_CH579 ?= 0
ENABLE_PUYA ?= 0
ENABLE_XILINX ?= 0
ENABLE_RISCV_ACCEL ?= 0

SYS = $(shell $(CC) -dumpmachine)

Expand Down Expand Up @@ -120,25 +121,29 @@ SRC += \
endif

ifeq ($(ENABLE_CORTEXAR), 1)
CFLAGS += -DENABLE_CORTEXAR
CFLAGS += -DENABLE_CORTEXAR=1
SRC += \
cortexar.c \
renesas_rz.c

ifeq ($(ENABLE_XILINX), 1)
CFLAGS += -DENABLE_XILINX
CFLAGS += -DENABLE_XILINX=1
SRC += \
zynq7000.c
endif
endif

ifeq ($(ENABLE_RISCV), 1)
CFLAGS += -DENABLE_RISCV
CFLAGS += -DENABLE_RISCV=1
SRC += \
riscv32.c \
riscv64.c \
riscv_debug.c \
riscv_jtag_dtm.c
else ifeq ($(ENABLE_RISCV_ACCEL), 1)
CFLAGS == -DENABLE_RISCV_ACCEL=1
SRC += \
riscv_jtag_dtm.c
endif

ifneq ($(PC_HOSTED),1)
Expand Down

0 comments on commit 13b055c

Please sign in to comment.