diff options
author | Joel Challis <git@zvecr.com> | 2021-10-28 01:07:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 01:07:53 +0100 |
commit | b780c797beb726839e99e3f4054f9b4c33331cdc (patch) | |
tree | 019aed772e8204149727afb0841f9043a7084eda /build_keyboard.mk | |
parent | 6c507afcf212165dd5f3c3f6c026b517295c5090 (diff) | |
download | qmk_firmware-b780c797beb726839e99e3f4054f9b4c33331cdc.tar.gz qmk_firmware-b780c797beb726839e99e3f4054f9b4c33331cdc.zip |
Migrate makefile utilities to sub-directory (#14917)
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r-- | build_keyboard.mk | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index c1f4f9338..36c628c7c 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
@@ -10,7 +10,8 @@ endif | |||
10 | 10 | ||
11 | .DEFAULT_GOAL := all | 11 | .DEFAULT_GOAL := all |
12 | 12 | ||
13 | include common.mk | 13 | include paths.mk |
14 | include $(BUILDDEFS_PATH)/message.mk | ||
14 | 15 | ||
15 | # Set the qmk cli to use | 16 | # Set the qmk cli to use |
16 | QMK_BIN ?= qmk | 17 | QMK_BIN ?= qmk |
@@ -164,7 +165,7 @@ ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes) | |||
164 | include platforms/chibios/boards/QMK_PROTON_C/convert_to_proton_c.mk | 165 | include platforms/chibios/boards/QMK_PROTON_C/convert_to_proton_c.mk |
165 | endif | 166 | endif |
166 | 167 | ||
167 | include quantum/mcu_selection.mk | 168 | include $(BUILDDEFS_PATH)/mcu_selection.mk |
168 | 169 | ||
169 | # Find all the C source files to be compiled in subfolders. | 170 | # Find all the C source files to be compiled in subfolders. |
170 | KEYBOARD_SRC := | 171 | KEYBOARD_SRC := |
@@ -342,7 +343,7 @@ ifneq ("$(wildcard $(USER_PATH)/post_config.h)","") | |||
342 | endif | 343 | endif |
343 | 344 | ||
344 | # Disable features that a keyboard doesn't support | 345 | # Disable features that a keyboard doesn't support |
345 | -include disable_features.mk | 346 | -include $(BUILDDEFS_PATH)/disable_features.mk |
346 | 347 | ||
347 | # Pull in post_rules.mk files from all our subfolders | 348 | # Pull in post_rules.mk files from all our subfolders |
348 | ifneq ("$(wildcard $(KEYBOARD_PATH_1)/post_rules.mk)","") | 349 | ifneq ("$(wildcard $(KEYBOARD_PATH_1)/post_rules.mk)","") |
@@ -385,10 +386,10 @@ VPATH += $(KEYBOARD_PATHS) | |||
385 | VPATH += $(COMMON_VPATH) | 386 | VPATH += $(COMMON_VPATH) |
386 | 387 | ||
387 | include common_features.mk | 388 | include common_features.mk |
388 | include generic_features.mk | 389 | include $(BUILDDEFS_PATH)/generic_features.mk |
389 | include $(TMK_PATH)/protocol.mk | 390 | include $(TMK_PATH)/protocol.mk |
390 | include $(TMK_PATH)/common.mk | 391 | include $(TMK_PATH)/common.mk |
391 | include bootloader.mk | 392 | include $(BUILDDEFS_PATH)/bootloader.mk |
392 | 393 | ||
393 | SRC += $(patsubst %.c,%.clib,$(LIB_SRC)) | 394 | SRC += $(patsubst %.c,%.clib,$(LIB_SRC)) |
394 | SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC)) | 395 | SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC)) |
@@ -445,7 +446,7 @@ check-size: build | |||
445 | check-md5: build | 446 | check-md5: build |
446 | objs-size: build | 447 | objs-size: build |
447 | 448 | ||
448 | include show_options.mk | 449 | include $(BUILDDEFS_PATH)/show_options.mk |
449 | include $(TMK_PATH)/rules.mk | 450 | include $(TMK_PATH)/rules.mk |
450 | 451 | ||
451 | # Ensure we have generated files available for each of the objects | 452 | # Ensure we have generated files available for each of the objects |