aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--build_keyboard.mk13
-rw-r--r--build_test.mk5
-rw-r--r--builddefs/bootloader.mk (renamed from bootloader.mk)0
-rw-r--r--builddefs/disable_features.mk (renamed from disable_features.mk)0
-rw-r--r--builddefs/generic_features.mk (renamed from generic_features.mk)0
-rw-r--r--builddefs/mcu_selection.mk (renamed from quantum/mcu_selection.mk)0
-rw-r--r--builddefs/message.mk (renamed from message.mk)0
-rw-r--r--builddefs/show_options.mk (renamed from show_options.mk)0
-rw-r--r--paths.mk (renamed from common.mk)5
10 files changed, 15 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index a1741dd96..c221cb89e 100644
--- a/Makefile
+++ b/Makefile
@@ -425,7 +425,8 @@ define SET_SILENT_MODE
425 endif 425 endif
426endef 426endef
427 427
428include $(ROOT_DIR)/message.mk 428include paths.mk
429include $(BUILDDEFS_PATH)/message.mk
429 430
430ifeq ($(strip $(BREAK_ON_ERRORS)), yes) 431ifeq ($(strip $(BREAK_ON_ERRORS)), yes)
431HANDLE_ERROR = exit 1 432HANDLE_ERROR = exit 1
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
diff --git a/build_test.mk b/build_test.mk
index dd66a008e..8f1ff1e84 100644
--- a/build_test.mk
+++ b/build_test.mk
@@ -4,7 +4,8 @@ endif
4 4
5.DEFAULT_GOAL := all 5.DEFAULT_GOAL := all
6 6
7include common.mk 7include paths.mk
8include $(BUILDDEFS_PATH)/message.mk
8 9
9TARGET=test/$(TEST) 10TARGET=test/$(TEST)
10 11
@@ -52,7 +53,7 @@ include tests/$(TEST)/rules.mk
52endif 53endif
53 54
54include common_features.mk 55include common_features.mk
55include generic_features.mk 56include $(BUILDDEFS_PATH)/generic_features.mk
56include $(TMK_PATH)/common.mk 57include $(TMK_PATH)/common.mk
57include $(QUANTUM_PATH)/debounce/tests/rules.mk 58include $(QUANTUM_PATH)/debounce/tests/rules.mk
58include $(QUANTUM_PATH)/sequencer/tests/rules.mk 59include $(QUANTUM_PATH)/sequencer/tests/rules.mk
diff --git a/bootloader.mk b/builddefs/bootloader.mk
index ccb92392d..ccb92392d 100644
--- a/bootloader.mk
+++ b/builddefs/bootloader.mk
diff --git a/disable_features.mk b/builddefs/disable_features.mk
index 090a9b5a1..090a9b5a1 100644
--- a/disable_features.mk
+++ b/builddefs/disable_features.mk
diff --git a/generic_features.mk b/builddefs/generic_features.mk
index ff02d56bb..ff02d56bb 100644
--- a/generic_features.mk
+++ b/builddefs/generic_features.mk
diff --git a/quantum/mcu_selection.mk b/builddefs/mcu_selection.mk
index 1251b7a2b..1251b7a2b 100644
--- a/quantum/mcu_selection.mk
+++ b/builddefs/mcu_selection.mk
diff --git a/message.mk b/builddefs/message.mk
index cb4ef4371..cb4ef4371 100644
--- a/message.mk
+++ b/builddefs/message.mk
diff --git a/show_options.mk b/builddefs/show_options.mk
index ee60597e1..ee60597e1 100644
--- a/show_options.mk
+++ b/builddefs/show_options.mk
diff --git a/common.mk b/paths.mk
index 8acea3937..78eaf3996 100644
--- a/common.mk
+++ b/paths.mk
@@ -1,5 +1,3 @@
1include message.mk
2
3# Directory common source files exist 1# Directory common source files exist
4TOP_DIR = . 2TOP_DIR = .
5TMK_DIR = tmk_core 3TMK_DIR = tmk_core
@@ -15,6 +13,9 @@ DRIVER_PATH = $(DRIVER_DIR)
15PLATFORM_DIR = platforms 13PLATFORM_DIR = platforms
16PLATFORM_PATH = $(PLATFORM_DIR) 14PLATFORM_PATH = $(PLATFORM_DIR)
17 15
16BUILDDEFS_DIR = builddefs
17BUILDDEFS_PATH = $(BUILDDEFS_DIR)
18
18BUILD_DIR := .build 19BUILD_DIR := .build
19 20
20COMMON_VPATH := $(TOP_DIR) 21COMMON_VPATH := $(TOP_DIR)