mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
Merge branch 'feature/examples_use_manifest_for_deps' into 'master'
feat(examples): add local components via idf_component.yml See merge request espressif/esp-idf!25228
This commit is contained in:
@@ -7,9 +7,11 @@ It could be used to route lwip traffic to host side network, typically when work
|
||||
|
||||
### Usage of the API
|
||||
|
||||
1) Add the path to this component to the `EXTRA_COMPONENT_DIRS` in your project makefile
|
||||
```cmake
|
||||
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/common_components/tapif_io")
|
||||
1) Add the path to this component to as a dependency to the `main` component of your project using the following idf_component.yml file:
|
||||
```yaml
|
||||
dependencies:
|
||||
tapif_io:
|
||||
path: ${IDF_PATH}/examples/common_components/tapif_io
|
||||
```
|
||||
2) Include lwip and linux side of the configuration
|
||||
```cpp
|
||||
|
||||
Reference in New Issue
Block a user