Skip to content

Conversation

@kartben
Copy link
Contributor

@kartben kartben commented May 25, 2025

Add support for shield-specific overlays (including suffix support). They are searched in the 'boards/shields' directory of the application configuration directory.

Fixes #86592

Still need to add some docs, and possibly some tests as well.

poke @JordanYates

Add support for shield-specific overlays (including suffix support).
They are searched in the 'boards/shields' directory of the application
configuration directory.

Fixes zephyrproject-rtos#86592

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
@sonarqubecloud
Copy link

@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Jul 25, 2025
@kartben kartben removed the Stale label Jul 26, 2025
@lromeraj
Copy link

@kartben This looks like a very useful addition. Are you still working on it?

@kartben
Copy link
Contributor Author

kartben commented Aug 21, 2025

@kartben This looks like a very useful addition. Are you still working on it?

mmm kind of dropped the ball :| I guess this could get in with docs added in a second stage, but the documentation maintainer in me will pretend I just didn't say that :)

@lromeraj
Copy link

@kartben Looking at the code, I believe this could support both .overlay and .conf extensions (not just .overlay). This would allow attaching configuration files to specific overlays, so the application can configure “addons” simply by using the shields folder—which I think is quite useful. Many times I’ve had to implement this logic manually in the application’s CMakeLists.txt.

For example:

# ...

set(shield_conf_path ${shields_dir}/${shield_name}.conf)
set(shield_overlay_path ${shields_dir}/${shield_name}.overlay)

if(EXISTS ${shield_overlay_path})
  list(APPEND DTC_OVERLAY_FILE ${shield_overlay_path})
endif()

if(EXISTS ${shield_conf_path})
  list(APPEND OVERLAY_CONFIG ${shield_conf_path})
endif()

# ...

Also, the documentation should clarify that the shield list needs to be passed as -DSHIELD_AS_LIST= instead of using the --shield flag.

@github-actions
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Oct 21, 2025
@github-actions github-actions bot closed this Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shields: application specific shield overlays

2 participants