summaryrefslogtreecommitdiff
path: root/hw/bsp/saml2x
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-19 12:47:05 +0700
committerhathach <[email protected]>2023-03-19 12:47:05 +0700
commit322f58ea8530e2b43d00a087b6d501776be25a00 (patch)
tree1a136349f8cc2da319f404c7b3149bc5ee80ff66 /hw/bsp/saml2x
parentab0da3c30baab6eb63e55217f2b4d5a719fb86e4 (diff)
add CFLAGS_SKIP to improve sam compile time
Diffstat (limited to 'hw/bsp/saml2x')
-rw-r--r--hw/bsp/saml2x/family.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/bsp/saml2x/family.mk b/hw/bsp/saml2x/family.mk
index 6022158de..91c2cfa61 100644
--- a/hw/bsp/saml2x/family.mk
+++ b/hw/bsp/saml2x/family.mk
@@ -14,7 +14,10 @@ CFLAGS += \
-DCFG_TUSB_MCU=OPT_MCU_SAML22
# 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 \