Naming convention in Kconfig?

LaWi14
Posts: 10
Joined: Wed Nov 20, 2019 6:05 pm

Naming convention in Kconfig?

Postby LaWi14 » Wed Nov 13, 2024 11:22 am

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.

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

Re: Naming convention in Kconfig?

Postby ESP_Sprite » Thu Nov 14, 2024 1:30 am

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.

Who is online

Users browsing this forum: No registered users and 212 guests