1
0
Fork 0

Allow codegen of keymap.json => keymap.c without requiring layers/layout etc. (#23451)

This commit is contained in:
Nick Brassel 2024-11-24 20:32:30 +11:00 committed by GitHub
parent 859dab864a
commit 7d8f193988
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 105 additions and 120 deletions

View file

@ -186,7 +186,10 @@ endif
# Have we found a keymap.json?
ifneq ("$(wildcard $(KEYMAP_JSON))", "")
ifneq ("$(wildcard $(KEYMAP_C))", "")
$(call WARNING_MESSAGE,Keymap is specified as both keymap.json and keymap.c -- keymap.json file wins.)
# Allow a separately-found keymap.c next to keymap.json -- the keymap.c
# generator will include the other keymap.c in the process, if supplied.
OTHER_KEYMAP_C := $(KEYMAP_C)
OPT_DEFS += -DOTHER_KEYMAP_C=\"$(OTHER_KEYMAP_C)\"
endif
KEYMAP_PATH := $(KEYMAP_JSON_PATH)