Skip to content

ports/zephyr-cp: pass boards/<board>.overlay and .conf for aliased bo… - #11235

Open
lynt-smitka wants to merge 1 commit into
adafruit:mainfrom
MakerClassCZ:zephyr-cp-aliased-board-files
Open

ports/zephyr-cp: pass boards/<board>.overlay and .conf for aliased bo…#11235
lynt-smitka wants to merge 1 commit into
adafruit:mainfrom
MakerClassCZ:zephyr-cp-aliased-board-files

Conversation

@lynt-smitka

Copy link
Copy Markdown

Zephyr looks up boards/.overlay and boards/.conf by the resolved board name, so a board declared through cp_board_alias() never picks up files named after itself. The build succeeds and silently produces a firmware without the board's devicetree and Kconfig fragments.

Pass the files as zephyr-cp_EXTRA_DTC_OVERLAY_FILE / _EXTRA_CONF_FILE when they exist. The DEBUG=1 fragment goes through the same EXTRA_CONF_FILE variable, so it is appended to the list rather than letting one overwrite the other.

Verified with a board aliased to rpi_pico/rp2040 with both files present: zephyr.dts now cites the overlay and .config carries the board's options. Boards without such files are unaffected.

…ards

Zephyr looks up boards/<name>.overlay and boards/<name>.conf by the
resolved board name, so a board declared through cp_board_alias()
never picks up files named after itself. The build succeeds and
silently produces a firmware without the board's devicetree and
Kconfig fragments.

Pass the files as zephyr-cp_EXTRA_DTC_OVERLAY_FILE / _EXTRA_CONF_FILE
when they exist. DEBUG=1 appends its fragment to the same list
instead of replacing it.

Verified with a board aliased to rpi_pico/rp2040 with both files
present: zephyr.dts now cites the overlay and .config carries the
board's options. Boards without such files are unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant