diff options
author | Joakim Tufvegren <[email protected]> | 2021-06-27 04:52:38 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-27 12:52:38 +1000 |
commit | ed56fc7da155d61848bb5b1801ff33379b114c2b (patch) | |
tree | 6f1c871ef2407fde83fb20f55297d7ad09702c14 /build_layout.mk | |
parent | 023b85db96c7b5fc343a6ae7425f7a7b9ced8969 (diff) | |
download | qmk_firmware-ed56fc7da155d61848bb5b1801ff33379b114c2b.tar.gz qmk_firmware-ed56fc7da155d61848bb5b1801ff33379b114c2b.zip |
Fix building layouts from JSON (#13310)
Broken by #12632.
Diffstat (limited to 'build_layout.mk')
-rw-r--r-- | build_layout.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build_layout.mk b/build_layout.mk index 4748ad483d..649dfb2c70 100644 --- a/build_layout.mk +++ b/build_layout.mk @@ -7,7 +7,7 @@ define SEARCH_LAYOUTS_REPO LAYOUT_KEYMAP_C := $$(LAYOUT_KEYMAP_PATH)/keymap.c ifneq ("$$(wildcard $$(LAYOUT_KEYMAP_JSON))","") -include $$(LAYOUT_KEYMAP_PATH)/rules.mk - KEYMAP_C := $(KEYBOARD_OUTPUT)/src/keymap.c + KEYMAP_C := $(KEYMAP_OUTPUT)/keymap.c KEYMAP_JSON := $$(LAYOUT_KEYMAP_JSON) KEYMAP_PATH := $$(LAYOUT_KEYMAP_PATH) else ifneq ("$$(wildcard $$(LAYOUT_KEYMAP_C))","") @@ -33,4 +33,5 @@ endif $(foreach LAYOUT,$(LAYOUTS),$(eval $(call SEARCH_LAYOUTS))) # Use rule from build_json.mk, but update prerequisite in case KEYMAP_JSON was updated -$(KEYBOARD_OUTPUT)/src/keymap.c: $(KEYMAP_JSON) +$(KEYMAP_C): $(KEYMAP_JSON) + $(QMK_BIN) json2c --quiet --output $(KEYMAP_C) $(KEYMAP_JSON) |