diff options
-rw-r--r-- | build_keyboard.mk | 7 | ||||
-rw-r--r-- | build_test.mk | 6 | ||||
-rw-r--r-- | common_features.mk | 4 | ||||
-rw-r--r-- | docs/feature_layers.md | 2 | ||||
-rw-r--r-- | docs/fr-fr/faq_keymap.md | 2 | ||||
-rw-r--r-- | docs/internals_gpio_control.md | 2 | ||||
-rw-r--r-- | docs/ja/faq_keymap.md | 2 | ||||
-rw-r--r-- | docs/ja/feature_layers.md | 2 | ||||
-rw-r--r-- | docs/ja/pr_checklist.md | 2 | ||||
-rw-r--r-- | docs/pr_checklist.md | 2 | ||||
-rw-r--r-- | docs/zh-cn/faq_keymap.md | 2 | ||||
-rw-r--r-- | keyboards/ai03/orbit/split_util.c | 2 | ||||
-rw-r--r-- | keyboards/cannonkeys/satisfaction75/satisfaction75.c | 2 | ||||
-rw-r--r-- | keyboards/cannonkeys/satisfaction75/satisfaction_encoder.c | 2 | ||||
-rw-r--r-- | keyboards/mxss/mxss.c | 2 | ||||
-rw-r--r-- | keyboards/mxss/mxss_frontled.c | 2 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt_main.c | 2 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt_mono_backlight.c | 2 | ||||
-rw-r--r-- | keyboards/wilba_tech/wt_rgb_backlight.c | 2 | ||||
-rw-r--r-- | paths.mk | 3 | ||||
-rw-r--r-- | platforms/arm_atsam/_timer.h (renamed from tmk_core/common/arm_atsam/_timer.h) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/_wait.h (renamed from tmk_core/common/arm_atsam/_wait.h) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/atomic_util.h (renamed from tmk_core/common/arm_atsam/atomic_util.h) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/bootloader.c (renamed from tmk_core/common/arm_atsam/bootloader.c) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/eeprom.c (renamed from tmk_core/common/arm_atsam/eeprom.c) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/gpio.h (renamed from tmk_core/common/arm_atsam/gpio.h) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/pin_defs.h (renamed from tmk_core/common/arm_atsam/pin_defs.h) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/platform.c (renamed from tmk_core/common/arm_atsam/platform.c) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/platform.mk (renamed from tmk_core/arm_atsam.mk) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/platform_deps.h (renamed from tmk_core/common/arm_atsam/platform_deps.h) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/suspend.c (renamed from tmk_core/common/arm_atsam/suspend.c) | 0 | ||||
-rw-r--r-- | platforms/arm_atsam/timer.c (renamed from tmk_core/common/arm_atsam/timer.c) | 0 | ||||
-rw-r--r-- | platforms/atomic_util.h (renamed from tmk_core/common/atomic_util.h) | 0 | ||||
-rw-r--r-- | platforms/avr/_print.h (renamed from tmk_core/common/avr/_print.h) | 0 | ||||
-rw-r--r-- | platforms/avr/_timer.h (renamed from tmk_core/common/avr/_timer.h) | 0 | ||||
-rw-r--r-- | platforms/avr/_wait.h (renamed from tmk_core/common/avr/_wait.h) | 0 | ||||
-rw-r--r-- | platforms/avr/atomic_util.h (renamed from tmk_core/common/avr/atomic_util.h) | 0 | ||||
-rw-r--r-- | platforms/avr/bootloader.c (renamed from tmk_core/common/avr/bootloader.c) | 0 | ||||
-rw-r--r-- | platforms/avr/bootloader_size.c (renamed from tmk_core/common/avr/bootloader_size.c) | 0 | ||||
-rw-r--r-- | platforms/avr/gpio.h (renamed from tmk_core/common/avr/gpio.h) | 0 | ||||
-rw-r--r-- | platforms/avr/pin_defs.h (renamed from tmk_core/common/avr/pin_defs.h) | 0 | ||||
-rw-r--r-- | platforms/avr/platform.c (renamed from tmk_core/common/avr/platform.c) | 0 | ||||
-rw-r--r-- | platforms/avr/platform.mk (renamed from tmk_core/avr.mk) | 2 | ||||
-rw-r--r-- | platforms/avr/platform_deps.h (renamed from tmk_core/common/avr/platform_deps.h) | 0 | ||||
-rw-r--r-- | platforms/avr/printf.c (renamed from tmk_core/common/avr/printf.c) | 0 | ||||
-rw-r--r-- | platforms/avr/printf.mk (renamed from tmk_core/common/avr/printf.mk) | 0 | ||||
-rw-r--r-- | platforms/avr/sleep_led.c (renamed from tmk_core/common/avr/sleep_led.c) | 0 | ||||
-rw-r--r-- | platforms/avr/suspend.c (renamed from tmk_core/common/avr/suspend.c) | 0 | ||||
-rw-r--r-- | platforms/avr/timer.c (renamed from tmk_core/common/avr/timer.c) | 0 | ||||
-rw-r--r-- | platforms/avr/timer_avr.h (renamed from tmk_core/common/avr/timer_avr.h) | 0 | ||||
-rw-r--r-- | platforms/avr/xprintf.S (renamed from tmk_core/common/avr/xprintf.S) | 0 | ||||
-rw-r--r-- | platforms/avr/xprintf.h (renamed from tmk_core/common/avr/xprintf.h) | 0 | ||||
-rw-r--r-- | platforms/bootloader.h (renamed from tmk_core/common/bootloader.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/_timer.h (renamed from tmk_core/common/chibios/_timer.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/_wait.c (renamed from tmk_core/common/chibios/_wait.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/_wait.h (renamed from tmk_core/common/chibios/_wait.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/atomic_util.h (renamed from tmk_core/common/chibios/atomic_util.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/bootloader.c (renamed from tmk_core/common/chibios/bootloader.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/chibios_config.h (renamed from tmk_core/common/chibios/chibios_config.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/eeprom_stm32.c (renamed from tmk_core/common/chibios/eeprom_stm32.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/eeprom_stm32.h (renamed from tmk_core/common/chibios/eeprom_stm32.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/eeprom_stm32_defs.h (renamed from tmk_core/common/chibios/eeprom_stm32_defs.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/eeprom_teensy.c (renamed from tmk_core/common/chibios/eeprom_teensy.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/flash_stm32.c (renamed from tmk_core/common/chibios/flash_stm32.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/flash_stm32.h (renamed from tmk_core/common/chibios/flash_stm32.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/gd32v_compatibility.h (renamed from tmk_core/common/chibios/gd32v_compatibility.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/gpio.h (renamed from tmk_core/common/chibios/gpio.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/pin_defs.h (renamed from tmk_core/common/chibios/pin_defs.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/platform.c (renamed from tmk_core/common/chibios/platform.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/platform.mk (renamed from tmk_core/chibios.mk) | 0 | ||||
-rw-r--r-- | platforms/chibios/platform_deps.h (renamed from tmk_core/common/chibios/platform_deps.h) | 0 | ||||
-rw-r--r-- | platforms/chibios/sleep_led.c (renamed from tmk_core/common/chibios/sleep_led.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/suspend.c (renamed from tmk_core/common/chibios/suspend.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/syscall-fallbacks.c (renamed from tmk_core/common/chibios/syscall-fallbacks.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/timer.c (renamed from tmk_core/common/chibios/timer.c) | 0 | ||||
-rw-r--r-- | platforms/chibios/wait.c (renamed from tmk_core/common/chibios/wait.c) | 0 | ||||
-rw-r--r-- | platforms/common.mk | 12 | ||||
-rw-r--r-- | platforms/eeprom.h (renamed from tmk_core/common/eeprom.h) | 0 | ||||
-rw-r--r-- | platforms/gpio.h (renamed from tmk_core/common/gpio.h) | 0 | ||||
-rw-r--r-- | platforms/pin_defs.h (renamed from tmk_core/common/pin_defs.h) | 0 | ||||
-rw-r--r-- | platforms/progmem.h (renamed from tmk_core/common/progmem.h) | 0 | ||||
-rw-r--r-- | platforms/sleep_led.h (renamed from tmk_core/common/sleep_led.h) | 0 | ||||
-rw-r--r-- | platforms/suspend.h (renamed from tmk_core/common/suspend.h) | 0 | ||||
-rw-r--r-- | platforms/test/_wait.h (renamed from tmk_core/common/test/_wait.h) | 0 | ||||
-rw-r--r-- | platforms/test/bootloader.c (renamed from tmk_core/common/test/bootloader.c) | 0 | ||||
-rw-r--r-- | platforms/test/eeprom.c (renamed from tmk_core/common/test/eeprom.c) | 0 | ||||
-rw-r--r-- | platforms/test/eeprom_stm32_tests.cpp (renamed from tmk_core/common/test/eeprom_stm32_tests.cpp) | 0 | ||||
-rw-r--r-- | platforms/test/flash_stm32_mock.c (renamed from tmk_core/common/test/flash_stm32_mock.c) | 0 | ||||
-rw-r--r-- | platforms/test/hal.h (renamed from tmk_core/common/test/hal.h) | 0 | ||||
-rw-r--r-- | platforms/test/platform.c (renamed from tmk_core/common/test/platform.c) | 0 | ||||
-rw-r--r-- | platforms/test/platform.h (renamed from tmk_core/common/test/platform.h) | 0 | ||||
-rw-r--r-- | platforms/test/platform.mk (renamed from tmk_core/native.mk) | 0 | ||||
-rw-r--r-- | platforms/test/platform_deps.h (renamed from tmk_core/common/test/platform_deps.h) | 0 | ||||
-rw-r--r-- | platforms/test/rules.mk (renamed from tmk_core/common/test/rules.mk) | 8 | ||||
-rw-r--r-- | platforms/test/suspend.c (renamed from tmk_core/common/test/suspend.c) | 0 | ||||
-rw-r--r-- | platforms/test/testlist.mk (renamed from tmk_core/common/test/testlist.mk) | 0 | ||||
-rw-r--r-- | platforms/test/timer.c (renamed from tmk_core/common/test/timer.c) | 0 | ||||
-rw-r--r-- | platforms/timer.h (renamed from tmk_core/common/timer.h) | 0 | ||||
-rw-r--r-- | platforms/wait.h (renamed from tmk_core/common/wait.h) | 0 | ||||
-rw-r--r-- | quantum/debounce/tests/rules.mk | 2 | ||||
-rw-r--r-- | quantum/dynamic_keymap.c | 2 | ||||
-rw-r--r-- | quantum/sequencer/tests/rules.mk | 2 | ||||
-rw-r--r-- | quantum/via.c | 2 | ||||
-rw-r--r-- | testlist.mk | 6 | ||||
-rw-r--r-- | tmk_core/common.mk | 16 | ||||
-rw-r--r-- | tmk_core/protocol.mk | 2 | ||||
-rw-r--r-- | tmk_core/rules.mk | 2 |
107 files changed, 54 insertions, 54 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index 36c628c7ce..c12aa0fce0 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk @@ -388,7 +388,7 @@ VPATH += $(COMMON_VPATH) include common_features.mk include $(BUILDDEFS_PATH)/generic_features.mk include $(TMK_PATH)/protocol.mk -include $(TMK_PATH)/common.mk +include $(PLATFORM_PATH)/common.mk include $(BUILDDEFS_PATH)/bootloader.mk SRC += $(patsubst %.c,%.clib,$(LIB_SRC)) @@ -404,13 +404,14 @@ ifneq ($(REQUIRE_PLATFORM_KEY),) endif endif -include $(TMK_PATH)/$(PLATFORM_KEY).mk +include $(PLATFORM_PATH)/$(PLATFORM_KEY)/platform.mk +-include $(PLATFORM_PATH)/$(PLATFORM_KEY)/flash.mk + ifneq ($(strip $(PROTOCOL)),) include $(TMK_PATH)/protocol/$(strip $(shell echo $(PROTOCOL) | tr '[:upper:]' '[:lower:]')).mk else include $(TMK_PATH)/protocol/$(PLATFORM_KEY).mk endif --include $(TOP_DIR)/platforms/$(PLATFORM_KEY)/flash.mk # TODO: remove this bodge? PROJECT_DEFS := $(OPT_DEFS) diff --git a/build_test.mk b/build_test.mk index 6e4494d77f..3553125a04 100644 --- a/build_test.mk +++ b/build_test.mk @@ -54,11 +54,11 @@ endif include common_features.mk include $(BUILDDEFS_PATH)/generic_features.mk -include $(TMK_PATH)/common.mk +include $(PLATFORM_PATH)/common.mk include $(TMK_PATH)/protocol.mk include $(QUANTUM_PATH)/debounce/tests/rules.mk include $(QUANTUM_PATH)/sequencer/tests/rules.mk -include $(TMK_PATH)/common/test/rules.mk +include $(PLATFORM_PATH)/test/rules.mk ifneq ($(filter $(FULL_TESTS),$(TEST)),) include build_full_test.mk endif @@ -73,7 +73,7 @@ $(TEST_OBJ)/$(TEST)_INC := $($(TEST)_INC) $(VPATH) $(GTEST_INC) $(TEST_OBJ)/$(TEST)_DEFS := $($(TEST)_DEFS) $(TEST_OBJ)/$(TEST)_CONFIG := $($(TEST)_CONFIG) -include $(TMK_PATH)/native.mk +include $(PLATFORM_PATH)/$(PLATFORM_KEY)/platform.mk include $(TMK_PATH)/rules.mk diff --git a/common_features.mk b/common_features.mk index 896fbb0129..8c593024f0 100644 --- a/common_features.mk +++ b/common_features.mk @@ -33,8 +33,10 @@ QUANTUM_SRC += \ VPATH += $(QUANTUM_DIR)/logging # Fall back to lib/printf if there is no platform provided print -ifeq ("$(wildcard $(TMK_PATH)/common/$(PLATFORM_KEY)/printf.mk)","") +ifeq ("$(wildcard $(PLATFORM_PATH)/$(PLATFORM_KEY)/printf.mk)","") include $(QUANTUM_PATH)/logging/print.mk +else + include $(PLATFORM_PATH)/$(PLATFORM_KEY)/printf.mk endif ifeq ($(strip $(DEBUG_MATRIX_SCAN_RATE_ENABLE)), yes) diff --git a/docs/feature_layers.md b/docs/feature_layers.md index 78d950dc49..e30c540a79 100644 --- a/docs/feature_layers.md +++ b/docs/feature_layers.md @@ -45,7 +45,7 @@ Once you have a good feel for how layers work and what you can do, you can get m Layers stack on top of each other in numerical order. When determining what a keypress does, QMK scans the layers from the top down, stopping when it reaches the first active layer that is not set to `KC_TRNS`. As a result if you activate a layer that is numerically lower than your current layer, and your current layer (or another layer that is active and higher than your target layer) has something other than `KC_TRNS`, that is the key that will be sent, not the key on the layer you just activated. This is the cause of most people's "why doesn't my layer get switched" problem. -Sometimes, you might want to switch between layers in a macro or as part of a tap dance routine. `layer_on` activates a layer, and `layer_off` deactivates it. More layer-related functions can be found in [action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/action_layer.h). +Sometimes, you might want to switch between layers in a macro or as part of a tap dance routine. `layer_on` activates a layer, and `layer_off` deactivates it. More layer-related functions can be found in [action_layer.h](https://github.com/qmk/qmk_firmware/blob/master/quan |