Use customized component in project component folder vs original component

oldndumb
Posts: 21
Joined: Tue May 02, 2023 4:18 pm

Use customized component in project component folder vs original component

Postby oldndumb » Mon May 22, 2023 4:15 pm

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,

MicroController
Posts: 1709
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

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

Postby MicroController » Mon May 22, 2023 6:14 pm

Does it automatically take precedence because it is in the source folder?
Yes.
Do I need to edit CMakeList.txt?
No.

oldndumb
Posts: 21
Joined: Tue May 02, 2023 4:18 pm

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

Postby oldndumb » Mon May 22, 2023 6:25 pm

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!

Who is online

Users browsing this forum: No registered users and 80 guests