-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Add post processing support to Userspace #9070
Conversation
Would this in combination with #2046 match the behavior I described in #9058 (comment)? |
This by itself would, I think. It moves the rules.mk to before the keymap's rules.mk is checked, and then run the post_keymap.mk. Honestly, I'm not convinced that we need either. |
build_keyboard.mk
Outdated
@@ -299,6 +302,11 @@ ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","") | |||
CONFIG_H += $(KEYMAP_PATH)/config.h | |||
endif | |||
|
|||
# Userspace post config.h pass | |||
ifneq ("$(wildcard $(USER_PATH)/config.h)","") |
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.
This should check for post_config.h
instead of config.h
.
ifneq ("$(wildcard $(USER_PATH)/config.h)","") | |
ifneq ("$(wildcard $(USER_PATH)/post_config.h)","") |
Here's an example of how this could help me significantly clean up my keymap This can also work with See this commit for a proof of concept → vomindoraan@deb080b Let me know if you see any problems with this approach. The entire demo branch can be found here. |
How many current With the change proposed by @vomindoraan we could even have 3 files there:
However, the problem with this approach is that the |
How should this change work together with the documented support for overriding the userspace name by setting the Looks like at least some Alternatively, it is possible to do nothing, because the same person who adds a keymap using their userspace may also change The change which adds |
550bb6a
to
9d827f9
Compare
Any updates on this? |
1d4c0cd
to
65c27a3
Compare
a1b96ba
to
3430907
Compare
c883c1b
to
7d5762d
Compare
7d5762d
to
22e2b3f
Compare
Description
Moves rules.mk processing for userspace to a proper position (eg, keyboard -> userspace -> keymap/layout), and adds a
post_keymaps.mk
that runs after keymap processing.However, I'm hard pressed to even come up with an example where this is needed, or even useful. ESPECIALLY in favor of something like #9058, as that is something we sort of already have (
LAYOUT_HAS_RGB
).Because of that, I haven't added documentation, since ... I would need an example to use.
Types of Changes
Checklist