aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/common.mk
diff options
context:
space:
mode:
authorGravatar Joel Challis <git@zvecr.com>2020-03-21 05:20:04 +0000
committerGravatar GitHub <noreply@github.com>2020-03-21 16:20:04 +1100
commitd96380e65496912e0f68e6531565f4b45efd1623 (patch)
tree63e903f65b4fdc44c75c7eff21e076fdb200dca7 /tmk_core/common.mk
parent7e80686f1e400010a8a800cc73c4896936f337de (diff)
downloadqmk_firmware-d96380e65496912e0f68e6531565f4b45efd1623.tar.gz
Initial arm->chibios pass - simplify some platform logic (#8450)
Diffstat (limited to 'tmk_core/common.mk')
-rw-r--r--tmk_core/common.mk14
1 files changed, 2 insertions, 12 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index 6863929ce..b766ebe97 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -1,13 +1,5 @@
COMMON_DIR = common
-ifeq ($(PLATFORM),AVR)
- PLATFORM_COMMON_DIR = $(COMMON_DIR)/avr
-else ifeq ($(PLATFORM),CHIBIOS)
- PLATFORM_COMMON_DIR = $(COMMON_DIR)/chibios
-else ifeq ($(PLATFORM),ARM_ATSAM)
- PLATFORM_COMMON_DIR = $(COMMON_DIR)/arm_atsam
-else
- PLATFORM_COMMON_DIR = $(COMMON_DIR)/test
-endif
+PLATFORM_COMMON_DIR = $(COMMON_DIR)/$(PLATFORM_KEY)
TMK_COMMON_SRC += $(COMMON_DIR)/host.c \
$(COMMON_DIR)/keyboard.c \
@@ -179,6 +171,4 @@ endif
# Search Path
VPATH += $(TMK_PATH)/$(COMMON_DIR)
-ifeq ($(PLATFORM),CHIBIOS)
-VPATH += $(TMK_PATH)/$(COMMON_DIR)/chibios
-endif
+VPATH += $(TMK_PATH)/$(PLATFORM_COMMON_DIR)