Skip to content

Clarification of the code style to use for module* params in Kconfig templates #10404

@pfalcon

Description

@pfalcon

Recently, a "Kconfig template feature" was introduced, which requires assigning values to some template variables and then source a "Kconfig template" which will have those vars substituted.

This ticket is to clarify punctuation style to use of these template var assignments. E.g., initially syntax with spaces around =, e.g. 6aed72e#diff-c329d91124f630eff1649946f71669b8R44 :

module = SHELL
module-str = Shell

However, PR #8816
landed a bunch (17 hits in my grep) of using it without spaces (e.g. https://github.com/zephyrproject-rtos/zephyr/pull/8816/files#r221893651):

module-dep=LOG
module-str=Log level for Ethernet driver
module-help=Sets log level for Ethernet Device Drivers.

So, this ticket is to see if we care and calling to @ulfalizer as the author of templating feature to explain how it's intended to be.

P.S. This may seem minor, but nowaydays we do as insane things as stuffing "(void)" in front of each memset, so surely we can do a sane thing of notwritingstuffwithoutspaces? Also, all big mess starts from small cases like this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions