diff --git a/ports/mimxrt10xx/Makefile b/ports/mimxrt10xx/Makefile index 072a3df3509a..04b8c6787aff 100644 --- a/ports/mimxrt10xx/Makefile +++ b/ports/mimxrt10xx/Makefile @@ -120,13 +120,16 @@ SRC_SDK := \ drivers/snvs_hp/fsl_snvs_hp.c \ drivers/snvs_lp/fsl_snvs_lp.c \ drivers/trng/fsl_trng.c \ - drivers/flexcan/fsl_flexcan.c \ ifeq ($(CIRCUITPY_ANALOGIO), 1) SRC_SDK += drivers/adc_12b1msps_sar/fsl_adc.c \ drivers/tempmon/fsl_tempmon.c endif +ifeq ($(CIRCUITPY_CANIO), 1) +SRC_SDK += drivers/flexcan/fsl_flexcan.c +endif + ifeq ($(CHIP_FAMILY), MIMXRT1176) SRC_SDK += devices/$(CHIP_FAMILY)/drivers/fsl_anatop_ai.c \ devices/$(CHIP_FAMILY)/drivers/fsl_dcdc.c \