-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
refactor: Hook into CMake loading in a better spot. #1989
refactor: Hook into CMake loading in a better spot. #1989
Conversation
0db22df
to
70b72ef
Compare
Ok, so testing this branch now with the Blank Slate board definition moved to a Zephyr module (https://github.com/petejohanson/blank-slate-module) and building in a config repo that now just has the keymap for overrides, and it's happy to do so: https://github.com/petejohanson/blank-slate-zmk-config/actions/runs/6775125865/job/18413694799 Will continue testing with other iterations, e.g. shields also in a module, but so far I'm optimistic about this. |
Working for shields as well: https://github.com/petejohanson/revxlp-config/actions/runs/6775393542/job/18414589428 |
Works in a nice "aggergate repo" that pulls in two modules, and builds boards/shields found in them: https://github.com/petejohanson/aggregating-config-repo/actions/runs/6775597409 |
54a6b78
to
1ee535d
Compare
fd9ba46
to
203f6a0
Compare
@caksoylar Ok, pushed the tweaks to the new shield guide. I will open a PR against the unified-zmk-config-template tonight that includes the changes necessary to match the doc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general, but I think the build+flash page might require a mention of -DZMK_EXTRA_MODULES=/full/path/to/your/module
for building with modules.
c762316
to
dd468a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits I didn't catch yesterday, but otherwise LGTM. Do we want to note module builds in the build+flash page later?
* Shift to using an extra Zephyr module to do keymap location work after all board roots are resolved. This avoids duplicate work and allows us to load custom boards from Zephyr modules as well as user config setups.
* Detect in our build script if our config repo is *also* a Zephyr module and if so pass to ZMK build in ZMK_EXTRA_MODULES define. * Copy config directory contents to new independent temp workspace to avoid Kconfig conflicts between the build repo's zephyr module directory and the checkout zephyr pulled in by `west update`.
c130e63
to
6319906
Compare
* Update the new shield guide to position Zephyr module location as the default when creating new shields, with a note about using ZMK repository itself as a last resort. * Document building with additional Zephyr modules. Co-authored-by: Cem Aksoylar <[email protected]>
6319906
to
3e789f3
Compare
Added a section to this doc, just so we don't forget to get back to it later. |
work after all board roots are resolved. This avoids duplicate work
and allows us to load custom boards from Zephyr modules as well as
user config setups.