summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShihpin Tseng <deftsp@gmail.com>2019-02-09 00:12:43 +0800
committerDrashna Jaelre <drashna@live.com>2019-02-14 21:06:26 -0800
commit68fad7b777e629b9837b1f60080a21386002c444 (patch)
treed682ca3deb0e5f8f4f3f32f2a8e6f49cedfd8f2e
parent7c2bee8b8848d2dbfb3ff1f9d5bdd7558fd74b26 (diff)
downloadqmk_firmware-68fad7b777e629b9837b1f60080a21386002c444.tar.gz
qmk_firmware-68fad7b777e629b9837b1f60080a21386002c444.zip
Enable custom chibios sub-platform
-rw-r--r--tmk_core/chibios.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk
index 0f665450ac..01edebfd74 100644
--- a/tmk_core/chibios.mk
+++ b/tmk_core/chibios.mk
@@ -39,9 +39,13 @@ include $(STARTUP_MK)
# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
-PLATFORM_MK = $(CHIBIOS)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/platform.mk
+ifeq ("$(PLATFORM_NAME)","")
+ PLATFORM_NAME = platform
+endif
+
+PLATFORM_MK = $(CHIBIOS)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/$(PLATFORM_NAME).mk
ifeq ("$(wildcard $(PLATFORM_MK))","")
-PLATFORM_MK = $(CHIBIOS_CONTRIB)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/platform.mk
+PLATFORM_MK = $(CHIBIOS_CONTRIB)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/$(PLATFORM_NAME).mk
endif
include $(PLATFORM_MK)