aboutsummaryrefslogtreecommitdiff
path: root/build_keyboard.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-28 01:07:53 +0100
committerGitHub <noreply@github.com>2021-10-28 01:07:53 +0100
commitb780c797beb726839e99e3f4054f9b4c33331cdc (patch)
tree019aed772e8204149727afb0841f9043a7084eda /build_keyboard.mk
parent6c507afcf212165dd5f3c3f6c026b517295c5090 (diff)
downloadqmk_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.mk13
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
13include common.mk 13include paths.mk
14include $(BUILDDEFS_PATH)/message.mk
14 15
15# Set the qmk cli to use 16# Set the qmk cli to use
16QMK_BIN ?= qmk 17QMK_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
165endif 166endif
166 167
167include quantum/mcu_selection.mk 168include $(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.
170KEYBOARD_SRC := 171KEYBOARD_SRC :=
@@ -342,7 +343,7 @@ ifneq ("$(wildcard $(USER_PATH)/post_config.h)","")
342endif 343endif
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
348ifneq ("$(wildcard $(KEYBOARD_PATH_1)/post_rules.mk)","") 349ifneq ("$(wildcard $(KEYBOARD_PATH_1)/post_rules.mk)","")
@@ -385,10 +386,10 @@ VPATH += $(KEYBOARD_PATHS)
385VPATH += $(COMMON_VPATH) 386VPATH += $(COMMON_VPATH)
386 387
387include common_features.mk 388include common_features.mk
388include generic_features.mk 389include $(BUILDDEFS_PATH)/generic_features.mk
389include $(TMK_PATH)/protocol.mk 390include $(TMK_PATH)/protocol.mk
390include $(TMK_PATH)/common.mk 391include $(TMK_PATH)/common.mk
391include bootloader.mk 392include $(BUILDDEFS_PATH)/bootloader.mk
392 393
393SRC += $(patsubst %.c,%.clib,$(LIB_SRC)) 394SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
394SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC)) 395SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC))
@@ -445,7 +446,7 @@ check-size: build
445check-md5: build 446check-md5: build
446objs-size: build 447objs-size: build
447 448
448include show_options.mk 449include $(BUILDDEFS_PATH)/show_options.mk
449include $(TMK_PATH)/rules.mk 450include $(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