Page 1 of 1

Naming convention in Kconfig?

Posted: Wed Nov 13, 2024 11:22 am
by LaWi14
Hello forum,
I am using options that I set up in my project's Kconfig.projbuild. As all configuration of a project (ESP hardware, IDF, user) ends up in a flat file ("sdkconfig", all prefixed with CONFIG_), how can I avoid a name clash with existing system entries? Are there any naming rules / reserved prefixes for user app usage?

Sorry if this was already answered, but I did not find the response with my web searches.

Thank you in advance.

Re: Naming convention in Kconfig?

Posted: Thu Nov 14, 2024 1:30 am
by ESP_Sprite
Not really, unfortunately. If your project name is somewhat unique, you can use that as a prefix (CONFIG_PROJECTNAME_MY_OPTION) and you can be reasonably sure nothing will clash.