-
-
Notifications
You must be signed in to change notification settings - Fork 40.5k
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
[Feature Request] Allow forcing individual community layouts in qmk.json
for userspace-compile
and GitHub Actions
#22850
Comments
Note that I think this is distinct from #22815. That issue seems to be about the existing ability to pass force layout to |
I think it'd be more likely we'd end up with per-keyboard environment variables added when invoking {
"userspace_version": "1.1",
"build_targets": [
[
"dz60",
"bcat",
[
["FORCE_LAYOUT", "60_ansi_split_bs_rshift"] /* override layout */
]
],
[
"dz60",
"bcat",
[
["FORCE_LAYOUT", "60_tsangan_hhkb"] /* override layout */
]
],
["40percentclub/luddite", "default"], /* no env vars, as per v1.0 */
[
"40percentclub/luddite",
"default",
[ /* multiple env vars added during build */
["FORCE_LAYOUT", "60_ansi"],
["CONVERT_TO", "proton_c"],
["BOOTLOADER", "tinyuf2"]
]
]
]
} |
Ah, yeah, that would address my use case, and it's more flexible too. |
It'd be great if you could give #22887 a go to see if it addresses your issue. |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. |
Not stale, and has a fix in flight. Thanks @tzarc! :) |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. |
Still not stale, and I can confirm PR #22887 seems to work (though I haven't pulled in changes from HEAD for a little while). |
Feature Request Type
Description
See QMK Discord discussion for additional context.
The userspace build infra used by
qmk userspace-compile
and the default GitHub Actions setup seems to treat each keyboard to compile as a pair of keyboard name and keymap name. This leads to problems when one has multiple keyboards built with the same PCB but different community layouts.For example, I have a
dz60
PCB with the60_ansi_split_bs_rshift
layout and one with the60_tsangan_hhkb
. My current handwritten build wrapper script compiles both by passing theFORCE_LAYOUT
environment variable tomake
. I'd like to start usingqmk userspace-compile
instead, butqmk userspace-add
only lets me set up aqmk.json
file like this:There doesn't seem to be a way to build the
dz60
with a particular community layout, nor to build it twice with different community layouts. I would suggest an amendedqmk.json
format like this instead that allowed specifying a particularFORCE_LAYOUT
value for each firmware file to build:The text was updated successfully, but these errors were encountered: