diff options
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r-- | build_keyboard.mk | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index 91a6c23b7..4c4ff3b5f 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
@@ -103,6 +103,15 @@ MAIN_KEYMAP_PATH_5 := $(KEYBOARD_PATH_5)/keymaps/$(KEYMAP) | |||
103 | INFO_RULES_MK = $(shell $(QMK_BIN) generate-rules-mk --quiet --escape --keyboard $(KEYBOARD) --output $(KEYBOARD_OUTPUT)/src/rules.mk) | 103 | INFO_RULES_MK = $(shell $(QMK_BIN) generate-rules-mk --quiet --escape --keyboard $(KEYBOARD) --output $(KEYBOARD_OUTPUT)/src/rules.mk) |
104 | include $(INFO_RULES_MK) | 104 | include $(INFO_RULES_MK) |
105 | 105 | ||
106 | ifneq ($(FORCE_LAYOUT),) | ||
107 | TARGET := $(TARGET)_$(FORCE_LAYOUT) | ||
108 | endif | ||
109 | |||
110 | # Object files and generated keymap directory | ||
111 | # To put object files in current directory, use a dot (.), do NOT make | ||
112 | # this an empty or blank macro! | ||
113 | KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET) | ||
114 | |||
106 | # Check for keymap.json first, so we can regenerate keymap.c | 115 | # Check for keymap.json first, so we can regenerate keymap.c |
107 | include build_json.mk | 116 | include build_json.mk |
108 | 117 | ||
@@ -145,10 +154,6 @@ ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes) | |||
145 | include platforms/chibios/QMK_PROTON_C/convert_to_proton_c.mk | 154 | include platforms/chibios/QMK_PROTON_C/convert_to_proton_c.mk |
146 | endif | 155 | endif |
147 | 156 | ||
148 | ifneq ($(FORCE_LAYOUT),) | ||
149 | TARGET := $(TARGET)_$(FORCE_LAYOUT) | ||
150 | endif | ||
151 | |||
152 | include quantum/mcu_selection.mk | 157 | include quantum/mcu_selection.mk |
153 | 158 | ||
154 | # Find all the C source files to be compiled in subfolders. | 159 | # Find all the C source files to be compiled in subfolders. |
@@ -327,11 +332,6 @@ endif | |||
327 | # Disable features that a keyboard doesn't support | 332 | # Disable features that a keyboard doesn't support |
328 | -include disable_features.mk | 333 | -include disable_features.mk |
329 | 334 | ||
330 | # Object files directory | ||
331 | # To put object files in current directory, use a dot (.), do NOT make | ||
332 | # this an empty or blank macro! | ||
333 | KEYMAP_OUTPUT := $(BUILD_DIR)/obj_$(TARGET) | ||
334 | |||
335 | ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","") | 335 | ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","") |
336 | CONFIG_H += $(KEYMAP_PATH)/config.h | 336 | CONFIG_H += $(KEYMAP_PATH)/config.h |
337 | endif | 337 | endif |