Page 1 of 1
Additional Kconfig file
Posted: Fri Dec 09, 2022 4:16 pm
by yaghmr
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.
Re: Additional Kconfig file
Posted: Sat Dec 10, 2022 2:46 am
by ESP_Sprite
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.
Re: Additional Kconfig file
Posted: Thu Dec 15, 2022 1:14 pm
by yaghmr
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?