Skip to content

Conversation

@cfriedt
Copy link
Member

@cfriedt cfriedt commented May 13, 2025

Automatically generate a boolean CONFIG_BOARD_REVISION_FOO=y Kconfig option based on e.g. CONFIG_BOARD_REVISION="foo".

The allows us to use conditional expressions with the C preprocessor and also allows us to use e.g. if (IS_ENABLED(CONFIG_BOARD_REVISION_FOO)) ....

Closes #89375

@cfriedt cfriedt force-pushed the auto-generate-board-revision-kconfig branch from 8b22e45 to b4d71b5 Compare May 13, 2025 16:30
Automatically generate a boolean CONFIG_BOARD_REVISION_FOO=y Kconfig
option based on e.g. CONFIG_BOARD_REVISION="foo".

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
@cfriedt cfriedt force-pushed the auto-generate-board-revision-kconfig branch from b4d71b5 to e8ec28e Compare May 13, 2025 17:16
@sonarqubecloud
Copy link

@cfriedt cfriedt requested a review from pdgendt May 16, 2025 13:01
@kartben kartben merged commit c32488f into zephyrproject-rtos:main May 16, 2025
31 checks passed
@cfriedt cfriedt deleted the auto-generate-board-revision-kconfig branch May 26, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: kconfig + cmake: auto-generated boolean kconfig options for board revisions

4 participants