Added Dynamic Layout selection

- Cleanup unused code and updated documentation
- add dynamic layout selection
  - Leveraged common_features.mk framework
  - Configure layout in keymap rules.mk
- Will test more but it is ready to ship
This commit is contained in:
Victor 2024-05-15 07:52:23 -05:00
parent 10fed13d0f
commit 41a0204fc9
No known key found for this signature in database
GPG key ID: 51CCF34CF9DF63EF
10 changed files with 249 additions and 291 deletions

View file

@ -0,0 +1,7 @@
VALID_KLOR_LAYOUTS := polydactyl konrad yubitsume saegewerk
ifeq ($(filter $(KLOR_LAYOUT),$(VALID_KLOR_LAYOUTS)),)
$(call CATASTROPHIC_ERROR,Invalid KLOR_LAYOUT,KLOR_LAYOUT="$(KLOR_LAYOUT)" is not a valid Haptic driver)
else
OPT_DEFS += -DKLOR_$(strip $(shell echo $(KLOR_LAYOUT) | tr '[:lower:]' '[:upper:]'))
endif