Skip to content

Conversation

@josuah
Copy link
Contributor

@josuah josuah commented Dec 5, 2025

Dependency:

It seems to work well for I2S:

source "drivers/i2s/Kconfig.*"

I have not unified all drivers to either absolute (source) or relative (rsource), but can do it easily in the process.

It removes one manual step for each contribution.

Current PRs that add a Kconfig entry might need to remove their Kconfig addition.

@josuah josuah force-pushed the kconfig_glob branch 4 times, most recently from e695623 to 8b7d30a Compare December 6, 2025 16:35
@josuah josuah added Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. area: Kconfig area: Coding Guidelines Coding guidelines and style labels Dec 6, 2025
@josuah josuah marked this pull request as ready for review December 6, 2025 16:37
@josuah
Copy link
Contributor Author

josuah commented Dec 6, 2025

Manual ping to the audio collaborators: the Kconfig in audio were renamed to allow a glob to happen:
0b42527

  • I can revert that if manual sorting is preferred.
  • I can further rename the source files to make them match the Kconfig, here I went with least modification possible (Kconfig only).

Complement zephyrproject-rtos#99761 that added register includes to too few files.
Fix build error for some boards using these SoCs.

Signed-off-by: Josuah Demangeon <[email protected]>
Josuah Demangeon added 2 commits December 6, 2025 18:23
In order to use glob, add a common prefix to all audio codecs Kconfig
files: "Kconfig.*" -> "Kconfig.codec_*". Reduce the effort in introducing
new drivers and reduce ambiguity of which type of audio driver it is.

Signed-off-by: Josuah Demangeon <[email protected]>
Simplify the contributin of new drivers by using the glob mechanism
supported by Kconfig. This was already used by I2S Kconfig and is
propagated to other driver classes.

Signed-off-by: Josuah Demangeon <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 6, 2025

Copy link
Member

@henrikbrixandersen henrikbrixandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't. This will source intermediate editor files, editor backup files etc, and break the development environment for a lot of end users.

@josuah josuah closed this Dec 6, 2025
@josuah
Copy link
Contributor Author

josuah commented Dec 6, 2025

There is more to Zephyr than just what's in-tree that is true.
Thank you for the prompt feedback...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Audio area: Coding Guidelines Coding guidelines and style area: Kconfig Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants