Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip board revision so keymap file use only board name #1015

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

megamind4089
Copy link
Contributor

Zephyr upstream has native board revision support.
https://docs.zephyrproject.org/latest/guides/porting/board_porting.html#multiple-board-revisions

At present, ZMK does not make use of this feature and relies on creating different boards for different revisions.
This may not not be optimal if a keyboard has many revisions.

Made a quick try at zephyr's revision for cyber60 keyboard,
https://github.com/megamind4089/zmk-config-4pplet/tree/unify_rev_with_buzzer/config/boards/arm/cyber60

With this change, we can compile different revisions using

west build -p -d build cyber60@B
west build -p -d build cyber60@C

But the only issue I faced was, ZMK was not able to find the keymap file properly.
Had to workaround this by specifying the keymap file in build command like this:
https://github.com/megamind4089/zmk-config-4pplet/blob/unify_rev_with_buzzer/.github/workflows/build.yaml#L63

The changes in this PR is to make ZMK aware of board revisions (partially) and choose the appropriate keymap file.
Also, this changes does not impact the existing boards/shields since none of them uses revisions yet

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