Need help for component-requirements with release/v3.3 esp-idf
Posted: Sun Oct 11, 2020 6:46 pm
Hi everyone,
I have problem with component requirements. Because I'm using release/v3.3 esp-idf version, so I cannot find document about component-requirements which shows how to link/include between two (2) components in project.
So my project tree is like this:
├───components
│ ├───cloud
│ │ └───include
│ ├───eth_control
│ │ └───include
│ ├───gpio_control
│ │ └───include
│ ├───sensor_control
│ │ └───include
│ └───uart_control
│ └───include
└───main
And in component.mk in top-level, I have this:
And in component.mk of "cloud", I have this:
Now, because my "cloud" component needs a struct defined in "sensor_control" component, so what should I write in component.mk and/or CMakeLists.txt of "cloud" component?
Many thanks...
I have problem with component requirements. Because I'm using release/v3.3 esp-idf version, so I cannot find document about component-requirements which shows how to link/include between two (2) components in project.
So my project tree is like this:
├───components
│ ├───cloud
│ │ └───include
│ ├───eth_control
│ │ └───include
│ ├───gpio_control
│ │ └───include
│ ├───sensor_control
│ │ └───include
│ └───uart_control
│ └───include
└───main
And in component.mk in top-level, I have this:
Code: Select all
COMPONENT_ADD_INCLUDEDIRS := components/gpio_control/include \
components/uart_control/include \
components/sensor_control/include \
components/eth_control/include \
components/cloud/include
COMPONENT_SRCDIRS := components/gpio_control/ \
components/uart_control/ \
components/sensor_control/ \
components/eth_control/ \
components/cloud/
Code: Select all
COMPONENT_ADD_INCLUDEDIRS := include ../../main
Many thanks...