summaryrefslogtreecommitdiffstats
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-05-01 01:00:34 +0000
committerQMK Bot <hello@qmk.fm>2021-05-01 01:00:34 +0000
commite9b0e9286eefce3c4ca21e4c0ad0c43a245e3666 (patch)
tree2e2b2fa8936963f878b418fb6711ff0a482f90d7 /build_keyboard.mk
parent876352a030c213aa04cff323ab94ea1cb1547064 (diff)
parentfc2b51194c58140b096b4c953c703b7f3f6f1fbc (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r--build_keyboard.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk
index 74046a0947..93b1a70971 100644
--- a/build_keyboard.mk
+++ b/build_keyboard.mk
@@ -208,6 +208,7 @@ endif
#
# https://docs.qmk.fm/#/feature_layouts?id=tips-for-making-layouts-keyboard-agnostic
#
+QMK_KEYBOARD_H = $(KEYBOARD_OUTPUT)/src/default_keyboard.h
ifneq ("$(wildcard $(KEYBOARD_PATH_1)/$(KEYBOARD_FOLDER_1).h)","")
QMK_KEYBOARD_H = $(KEYBOARD_FOLDER_1).h
endif
@@ -299,10 +300,13 @@ CONFIG_H += $(KEYBOARD_OUTPUT)/src/info_config.h $(KEYBOARD_OUTPUT)/src/layouts.
$(KEYBOARD_OUTPUT)/src/info_config.h: $(INFO_JSON_FILES)
$(QMK_BIN) generate-config-h --quiet --keyboard $(KEYBOARD) --output $(KEYBOARD_OUTPUT)/src/info_config.h
+$(KEYBOARD_OUTPUT)/src/default_keyboard.h: $(INFO_JSON_FILES)
+ bin/qmk generate-keyboard-h --quiet --keyboard $(KEYBOARD) --output $(KEYBOARD_OUTPUT)/src/default_keyboard.h
+
$(KEYBOARD_OUTPUT)/src/layouts.h: $(INFO_JSON_FILES)
$(QMK_BIN) generate-layouts --quiet --keyboard $(KEYBOARD) --output $(KEYBOARD_OUTPUT)/src/layouts.h
-generated-files: $(KEYBOARD_OUTPUT)/src/info_config.h $(KEYBOARD_OUTPUT)/src/layouts.h
+generated-files: $(KEYBOARD_OUTPUT)/src/info_config.h $(KEYBOARD_OUTPUT)/src/default_keyboard.h $(KEYBOARD_OUTPUT)/src/layouts.h
.INTERMEDIATE : generated-files