add CFLAGS_SKIP to improve sam compile time

This commit is contained in:
hathach
2023-03-19 12:47:05 +07:00
parent ab0da3c30b
commit 322f58ea85
10 changed files with 36 additions and 13 deletions

View File

@@ -9,10 +9,15 @@ CFLAGS += \
-nostdlib -nostartfiles \
-DCONF_DFLL_OVERWRITE_CALIBRATION=0 \
-DOSC32K_OVERWRITE_CALIBRATION=0 \
-DCFG_EXAMPLE_MSC_READONLY \
-DCFG_EXAMPLE_VIDEO_READONLY \
-DCFG_TUSB_MCU=OPT_MCU_SAMD11
# suppress warning caused by vendor mcu driver
CFLAGS += -Wno-error=cast-qual -Wno-error=redundant-decls
CFLAGS += -Wno-error=redundant-decls
# SAM driver is flooded with -Wcast-qual which slow down complication significantly
CFLAGS_SKIP += -Wcast-qual
SRC_C += \
src/portable/microchip/samd/dcd_samd.c \