fix: Remove usb component private requirement for idf v6

This commit is contained in:
LiPeng
2025-09-11 16:53:25 +08:00
committed by sakumisu
parent e748e55f4d
commit 5ea75a14d0

View File

@@ -64,6 +64,10 @@ elseif(ESP_PLATFORM)
idf_component_get_property(freertos_include freertos ORIG_INCLUDE_PATH)
set(priv_req esp_mm esp_netif esp_timer)
if(${IDF_VERSION_MAJOR} LESS 6)
list(APPEND priv_req usb)
endif()
idf_component_register(
SRCS
${cherryusb_srcs}
@@ -71,7 +75,7 @@ elseif(ESP_PLATFORM)
${cherryusb_incs}
${freertos_include}
PRIV_REQUIRES
usb esp_mm esp_netif esp_timer
${priv_req}
LDFRAGMENTS
${ldfragments}
)