Skip to content

Commit

Permalink
make: Guard/opt-in the AT32F43x driver for smaller firmware builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer committed Jul 8, 2024
1 parent 92ddb53 commit e3bfcac
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_ARTERY ?= 0
ENABLE_CH579 ?= 0
ENABLE_PUYA ?= 0
ENABLE_XILINX ?= 0
Expand Down Expand Up @@ -38,7 +39,6 @@ SRC = \
adiv5.c \
adiv5_jtag.c \
adiv5_swd.c \
at32f43x.c \
command.c \
cortex.c \
cortexm.c \
Expand Down Expand Up @@ -111,6 +111,11 @@ SRC += \
ch579.c
endif

ifeq ($(ENABLE_ARTERY), 1)
SRC += \
at32f43x.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_ARTERY := 1
ENABLE_CH579 := 1
ENABLE_PUYA := 1
ENABLE_XILINX := 1
Expand Down

0 comments on commit e3bfcac

Please sign in to comment.