Skip to content

Commit

Permalink
make: Guard/opt-in the CH579 driver for meson-parity on native
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer committed Jul 7, 2024
1 parent ad0b6e8 commit 11b2db1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ VPATH += $(PLATFORM_DIR) target
ENABLE_DEBUG ?= 0
ENABLE_CORTEXAR ?= 0
ENABLE_RISCV ?= 0
ENABLE_CH579 ?= 0
ENABLE_PUYA ?= 0
ENABLE_XILINX ?= 0

Expand Down Expand Up @@ -42,7 +43,6 @@ SRC = \
cortex.c \
cortexm.c \
crc32.c \
ch579.c \
efm32.c \
exception.c \
gdb_if.c \
Expand Down Expand Up @@ -106,6 +106,11 @@ SRC += \
puya.c
endif

ifeq ($(ENABLE_CH579), 1)
SRC += \
ch579.c
endif

ifeq ($(ENABLE_CORTEXAR), 1)
CFLAGS += -DENABLE_CORTEXAR
SRC += \
Expand Down
1 change: 1 addition & 0 deletions src/platforms/hosted/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CFLAGS +=-I ./target
ENABLE_CORTEXAR := 1
ENABLE_RISCV := 1
# Target enables
ENABLE_CH579 := 1
ENABLE_PUYA := 1
ENABLE_XILINX := 1

Expand Down

0 comments on commit 11b2db1

Please sign in to comment.