Additional Kconfig file

yaghmr
Posts: 9
Joined: Fri Dec 09, 2022 4:00 pm

Additional Kconfig file

Postby yaghmr » Fri Dec 09, 2022 4:16 pm

Hi. Can I add a Kconfig file in addition to the default ones (Kconfig.projbuild and Kconfig)?
I've found only the argument KCONFIG of idf_component_register, but this argument overrides the default Kconfig file.

ESP_Sprite
Posts: 9778
Joined: Thu Nov 26, 2015 4:08 am

Re: Additional Kconfig file

Postby ESP_Sprite » Sat Dec 10, 2022 2:46 am

Can you give a bit more context on what you want and why you want that? In general, you can include other KConfig files from a KConfig file, so if you simply want to make your KConfig more modular, that would be an option.

yaghmr
Posts: 9
Joined: Fri Dec 09, 2022 4:00 pm

Re: Additional Kconfig file

Postby yaghmr » Thu Dec 15, 2022 1:14 pm

ESP_Sprite wrote:
Sat Dec 10, 2022 2:46 am
Can you give a bit more context on what you want and why you want that? In general, you can include other KConfig files from a KConfig file, so if you simply want to make your KConfig more modular, that would be an option.
More context: I have to distribute a component as a static library. In the app that uses my component, I want to pass to the initialize function a configuration structure that holds some Kconfig values.
The question is: where do I put the component-related Kconfig file?

Who is online

Users browsing this forum: No registered users and 44 guests