diff options
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | build_keyboard.mk | 13 | ||||
| -rw-r--r-- | build_test.mk | 5 | ||||
| -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
| @@ -425,7 +425,8 @@ define SET_SILENT_MODE | |||
| 425 | endif | 425 | endif |
| 426 | endef | 426 | endef |
| 427 | 427 | ||
| 428 | include $(ROOT_DIR)/message.mk | 428 | include paths.mk |
| 429 | include $(BUILDDEFS_PATH)/message.mk | ||
| 429 | 430 | ||
| 430 | ifeq ($(strip $(BREAK_ON_ERRORS)), yes) | 431 | ifeq ($(strip $(BREAK_ON_ERRORS)), yes) |
| 431 | HANDLE_ERROR = exit 1 | 432 | HANDLE_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 | ||
| 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 |
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 | ||
| 7 | include common.mk | 7 | include paths.mk |
| 8 | include $(BUILDDEFS_PATH)/message.mk | ||
| 8 | 9 | ||
| 9 | TARGET=test/$(TEST) | 10 | TARGET=test/$(TEST) |
| 10 | 11 | ||
| @@ -52,7 +53,7 @@ include tests/$(TEST)/rules.mk | |||
| 52 | endif | 53 | endif |
| 53 | 54 | ||
| 54 | include common_features.mk | 55 | include common_features.mk |
| 55 | include generic_features.mk | 56 | include $(BUILDDEFS_PATH)/generic_features.mk |
| 56 | include $(TMK_PATH)/common.mk | 57 | include $(TMK_PATH)/common.mk |
| 57 | include $(QUANTUM_PATH)/debounce/tests/rules.mk | 58 | include $(QUANTUM_PATH)/debounce/tests/rules.mk |
| 58 | include $(QUANTUM_PATH)/sequencer/tests/rules.mk | 59 | include $(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 | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | include message.mk | ||
| 2 | |||
| 3 | # Directory common source files exist | 1 | # Directory common source files exist |
| 4 | TOP_DIR = . | 2 | TOP_DIR = . |
| 5 | TMK_DIR = tmk_core | 3 | TMK_DIR = tmk_core |
| @@ -15,6 +13,9 @@ DRIVER_PATH = $(DRIVER_DIR) | |||
| 15 | PLATFORM_DIR = platforms | 13 | PLATFORM_DIR = platforms |
| 16 | PLATFORM_PATH = $(PLATFORM_DIR) | 14 | PLATFORM_PATH = $(PLATFORM_DIR) |
| 17 | 15 | ||
| 16 | BUILDDEFS_DIR = builddefs | ||
| 17 | BUILDDEFS_PATH = $(BUILDDEFS_DIR) | ||
| 18 | |||
| 18 | BUILD_DIR := .build | 19 | BUILD_DIR := .build |
| 19 | 20 | ||
| 20 | COMMON_VPATH := $(TOP_DIR) | 21 | COMMON_VPATH := $(TOP_DIR) |
