diff options
| -rw-r--r-- | tmk_core/chibios.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk index 0f665450a..01edebfd7 100644 --- a/tmk_core/chibios.mk +++ b/tmk_core/chibios.mk | |||
| @@ -39,9 +39,13 @@ include $(STARTUP_MK) | |||
| 39 | # HAL-OSAL files (optional). | 39 | # HAL-OSAL files (optional). |
| 40 | include $(CHIBIOS)/os/hal/hal.mk | 40 | include $(CHIBIOS)/os/hal/hal.mk |
| 41 | 41 | ||
| 42 | PLATFORM_MK = $(CHIBIOS)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/platform.mk | 42 | ifeq ("$(PLATFORM_NAME)","") |
| 43 | PLATFORM_NAME = platform | ||
| 44 | endif | ||
| 45 | |||
| 46 | PLATFORM_MK = $(CHIBIOS)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/$(PLATFORM_NAME).mk | ||
| 43 | ifeq ("$(wildcard $(PLATFORM_MK))","") | 47 | ifeq ("$(wildcard $(PLATFORM_MK))","") |
| 44 | PLATFORM_MK = $(CHIBIOS_CONTRIB)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/platform.mk | 48 | PLATFORM_MK = $(CHIBIOS_CONTRIB)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/$(PLATFORM_NAME).mk |
| 45 | endif | 49 | endif |
| 46 | include $(PLATFORM_MK) | 50 | include $(PLATFORM_MK) |
| 47 | 51 | ||
