Skip to content

Commit 2c34693

Browse files
committed
Fix build with newer TinyUSB
1 parent fd1a730 commit 2c34693

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ports/espressif/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ ifneq ($(IDF_TARGET),esp32c6)
181181
endif
182182

183183
ifeq ($(IDF_TARGET_ARCH),xtensa)
184-
CFLAGS += -mlongcalls
184+
# Remove the last two flags once TinyUSB is updated with the `#include <xtensa_api.h>` instead of
185+
# `#include "xtensa/xtensa_api.h"`.
186+
187+
CFLAGS += -mlongcalls -isystem esp-idf/components/xtensa/deprecated_include/ -Wno-error=cpp
185188
else ifeq ($(IDF_TARGET_ARCH),riscv)
186189
CFLAGS += -march=rv32imac_zicsr_zifencei
187190
endif

0 commit comments

Comments
 (0)