@@ -97,6 +97,7 @@ INC += \
9797 -isystem esp-idf/components/esp_adc/include \
9898 -isystem esp-idf/components/esp_adc/$(IDF_TARGET ) /include \
9999 -isystem esp-idf/components/esp_app_format/include \
100+ -isystem esp-idf/components/esp_bootloader_format/include \
100101 -isystem esp-idf/components/esp_common/include \
101102 -isystem esp-idf/components/esp_event/include \
102103 -isystem esp-idf/components/esp_hw_support/include \
@@ -110,12 +111,15 @@ INC += \
110111 -isystem esp-idf/components/esp_system/include \
111112 -isystem esp-idf/components/esp_timer/include \
112113 -isystem esp-idf/components/esp_wifi/include \
114+ -isystem esp-idf/components/freertos/config/include \
115+ -isystem esp-idf/components/freertos/config/include/freertos \
116+ -isystem esp-idf/components/freertos/config/$(IDF_TARGET_ARCH ) /include \
113117 -isystem esp-idf/components/freertos/esp_additions/include \
114118 -isystem esp-idf/components/freertos/esp_additions/include/freertos \
115- -isystem esp-idf/components/freertos/esp_additions/arch/$(IDF_TARGET_ARCH ) /include \
116119 -isystem esp-idf/components/freertos/FreeRTOS-Kernel/include \
117120 -isystem esp-idf/components/freertos/FreeRTOS-Kernel/include/freertos \
118121 -isystem esp-idf/components/freertos/FreeRTOS-Kernel/portable/$(IDF_TARGET_ARCH ) /include \
122+ -isystem esp-idf/components/freertos/FreeRTOS-Kernel/portable/$(IDF_TARGET_ARCH ) /include/freertos \
119123 -isystem esp-idf/components/hal/include \
120124 -isystem esp-idf/components/hal/$(IDF_TARGET ) /include \
121125 -isystem esp-idf/components/hal/platform_port/include \
@@ -134,6 +138,7 @@ INC += \
134138 -isystem esp-idf/components/soc/include \
135139 -isystem esp-idf/components/soc/$(IDF_TARGET ) /include \
136140 -isystem esp-idf/components/spi_flash/include \
141+ -isystem esp-idf/components/usb/include \
137142 -isystem esp-idf/components/ulp/ulp_fsm/include \
138143 -isystem esp-idf/components/ulp/ulp_riscv/include \
139144 -isystem esp-idf/components/ulp/ulp_common/include \
@@ -498,6 +503,9 @@ endif
498503ifneq ($(CIRCUITPY_PARALLELDISPLAYBUS ) ,0)
499504 ESP_IDF_COMPONENTS_LINK += esp_lcd
500505endif
506+ ifneq ($(CIRCUITPY_USB ) ,0)
507+ ESP_IDF_COMPONENTS_LINK += usb
508+ endif
501509
502510ESP_IDF_COMPONENTS_EXPANDED = $(foreach component, $(ESP_IDF_COMPONENTS_LINK ) , $(BUILD ) /esp-idf/esp-idf/$(component ) /lib$(component ) .a)
503511
@@ -579,7 +587,7 @@ esp-idf-stamp: $(BUILD)/esp-idf/config/sdkconfig.h
579587
580588$(BUILD ) /firmware.elf : $(OBJ ) | esp-idf-stamp $(IDF_CMAKE_TARGETS )
581589 $(STEPECHO ) " LINK $@ "
582- $(Q )$(CC ) -o $@ $(LDFLAGS ) $^ -Wl,--print-memory-usage -Wl,--start-group $(ESP_IDF_COMPONENTS_EXPANDED ) $(BINARY_BLOBS ) $(MBEDTLS_COMPONENTS_LINK_EXPANDED ) $(LIBS ) -Wl,--end-group -u newlib_include_pthread_impl -u ld_include_highint_hdl -u __cxx_fatal_exception
590+ $(Q )$(CC ) -o $@ $(LDFLAGS ) $^ -Wl,--print-memory-usage -Wl,--start-group $(ESP_IDF_COMPONENTS_EXPANDED ) $(BINARY_BLOBS ) $(MBEDTLS_COMPONENTS_LINK_EXPANDED ) $(LIBS ) -Wl,--end-group -u newlib_include_pthread_impl -u ld_include_highint_hdl -u __cxx_fatal_exception -u esp_app_desc
583591
584592$(BUILD ) /circuitpython-firmware.bin : $(BUILD ) /firmware.elf | tools/build_memory_info.py
585593 $(STEPECHO ) " Create $@ "
0 commit comments