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)
|
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(
|
idf_component_register(
|
||||||
SRCS
|
SRCS
|
||||||
${cherryusb_srcs}
|
${cherryusb_srcs}
|
||||||
@@ -71,7 +75,7 @@ elseif(ESP_PLATFORM)
|
|||||||
${cherryusb_incs}
|
${cherryusb_incs}
|
||||||
${freertos_include}
|
${freertos_include}
|
||||||
PRIV_REQUIRES
|
PRIV_REQUIRES
|
||||||
usb esp_mm esp_netif esp_timer
|
${priv_req}
|
||||||
LDFRAGMENTS
|
LDFRAGMENTS
|
||||||
${ldfragments}
|
${ldfragments}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user