Skip to content

Ryzxxn gpio fix (AEGHB-1345)#112

Open
ryzxxn wants to merge 2 commits intoespressif:masterfrom
ryzxxn:ryzxxn_gpio-fix
Open

Ryzxxn gpio fix (AEGHB-1345)#112
ryzxxn wants to merge 2 commits intoespressif:masterfrom
ryzxxn:ryzxxn_gpio-fix

Conversation

@ryzxxn
Copy link

@ryzxxn ryzxxn commented Dec 12, 2025

The source file src/bridge_eth.c includes driver/gpio.h to handle Ethernet PHY configuration. Previously, the build failed because the driver component was missing from the CMake REQUIRES list, preventing
the compiler from resolving the header file.

This commit adds driver to the component requirements to ensure dependencies are correctly linked and the header can be found.

Currently, src/bridge_eth.c unconditionally includes driver/gpio.h, which causes build failures if the driver component is not explicitly declared in the CMake requirements.

This commit addresses the issue by:
1. Adding driver to the REQUIRES list in CMakeLists.txt to ensure dependency resolution works correctly for the GPIO driver.
2. Wrapping the inclusion of driver/gpio.h and driver/spi_master.h in src/bridge_eth.c with the CONFIG_BRIDGE_USE_SPI_ETHERNET check. This ensures these headers are only included when the SPI Ethernet configuration is actually active.
@github-actions github-actions bot changed the title Ryzxxn gpio fix Ryzxxn gpio fix (AEGHB-1345) Dec 13, 2025
@tswen
Copy link
Contributor

tswen commented Dec 15, 2025

Which version of IDF did this compilation issue occur in?

@ryzxxn
Copy link
Author

ryzxxn commented Dec 16, 2025

Which version of IDF did this compilation issue occur in?

V5.4.3

@tswen
Copy link
Contributor

tswen commented Dec 17, 2025

Hello, I have tested with the examples from the latest iot-bridge repository and did not encounter any compilation issues. May I ask which demo you are compiling and which configurations you have enabled that led to the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants