fix(ledc): fixed depending on gpio header but don't depends on it

Closes https://github.com/espressif/esp-idf/issues/15174
This commit is contained in:
Xiao Xufeng
2025-01-09 21:40:48 +08:00
parent e44c525da2
commit d594067acf

View File

@@ -10,12 +10,13 @@ endif()
if(${target} STREQUAL "linux") if(${target} STREQUAL "linux")
set(priv_requires "") set(priv_requires "")
else() else()
set(priv_requires esp_pm esp_driver_gpio) set(priv_requires esp_pm)
endif() endif()
idf_component_register( idf_component_register(
SRCS ${srcs} SRCS ${srcs}
INCLUDE_DIRS ${public_include} INCLUDE_DIRS ${public_include}
PRIV_REQUIRES "${priv_requires}" PRIV_REQUIRES "${priv_requires}"
REQUIRES esp_driver_gpio # IDF-11989: Remove this in IDF v6.0
LDFRAGMENTS "linker.lf" LDFRAGMENTS "linker.lf"
) )