Compile more SAMD things conditionallly
This commit is contained in:
parent
56ed0b001e
commit
98ae047525
|
@ -319,13 +319,10 @@ $(patsubst %.c,$(BUILD)/%.o,$(SRC_PERIPHERALS)): CFLAGS += -Wno-missing-prototyp
|
||||||
SRC_C += \
|
SRC_C += \
|
||||||
audio_dma.c \
|
audio_dma.c \
|
||||||
background.c \
|
background.c \
|
||||||
bindings/samd/Clock.c \
|
|
||||||
bindings/samd/__init__.c \
|
|
||||||
boards/$(BOARD)/board.c \
|
boards/$(BOARD)/board.c \
|
||||||
boards/$(BOARD)/pins.c \
|
boards/$(BOARD)/pins.c \
|
||||||
eic_handler.c \
|
eic_handler.c \
|
||||||
fatfs_port.c \
|
fatfs_port.c \
|
||||||
freetouch/adafruit_ptc.c \
|
|
||||||
lib/tinyusb/src/portable/microchip/samd/dcd_samd.c \
|
lib/tinyusb/src/portable/microchip/samd/dcd_samd.c \
|
||||||
mphalport.c \
|
mphalport.c \
|
||||||
reset.c \
|
reset.c \
|
||||||
|
@ -340,10 +337,18 @@ ifneq (,$(filter 1,$(CIRCUITPY_PWMIO) $(CIRCUITPY_AUDIOIO) $(CIRCUITPY_RGBMATRIX
|
||||||
SRC_C += shared_timers.c
|
SRC_C += shared_timers.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CIRCUITPY_SAMD),1)
|
||||||
|
SRC_C += bindings/samd/Clock.c bindings/samd/__init__.c
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CIRCUITPY_SDIOIO),1)
|
ifeq ($(CIRCUITPY_SDIOIO),1)
|
||||||
SRC_C += ports/atmel-samd/sd_mmc/sd_mmc.c
|
SRC_C += ports/atmel-samd/sd_mmc/sd_mmc.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CIRCUITPY_TOUCHIO),1)
|
||||||
|
SRC_C += freetouch/adafruit_ptc.c
|
||||||
|
endif
|
||||||
|
|
||||||
# The smallest SAMD51 packages don't have I2S. Everything else does.
|
# The smallest SAMD51 packages don't have I2S. Everything else does.
|
||||||
ifeq ($(CIRCUITPY_AUDIOBUSIO),1)
|
ifeq ($(CIRCUITPY_AUDIOBUSIO),1)
|
||||||
SRC_C += peripherals/samd/i2s.c peripherals/samd/$(PERIPHERALS_CHIP_FAMILY)/i2s.c
|
SRC_C += peripherals/samd/i2s.c peripherals/samd/$(PERIPHERALS_CHIP_FAMILY)/i2s.c
|
||||||
|
|
Loading…
Reference in New Issue