mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-10-14 02:58:19 +08:00
fix: Remove usb component private requirement for idf v6
This commit is contained in:
@@ -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}
|
||||
)
|
||||
|
Reference in New Issue
Block a user