Page 1 of 1

Use customized component in project component folder vs original component

Posted: Mon May 22, 2023 4:15 pm
by oldndumb
Hi,

If I copy a component to the component folder of my project and make some customizations. How should I let the compiler know to use this component vs the original one in idf-source folder? I seem to have forgotten. Does it automatically take presedence because it is in the source folder? Do I need to edit CMakeList.txt? Which ones? Do I need to do something with the component manager? Ie create a idf_component.yml? This is only for copying dependencies and components of specific version to managed_component dir right?

Hope someone can help me out.

Kind regards,

Re: Use customized component in project component folder vs original component

Posted: Mon May 22, 2023 6:14 pm
by MicroController
Does it automatically take precedence because it is in the source folder?
Yes.
Do I need to edit CMakeList.txt?
No.

Re: Use customized component in project component folder vs original component

Posted: Mon May 22, 2023 6:25 pm
by oldndumb
Ah cool, thought so! But visual studio code didn't know, and still linked to the original files. Guess I only need to check the configs there then.
Much appreciated!