From: flabbergast Date: Tue, 15 Sep 2015 07:52:03 +0000 (+0100) Subject: Rename some Makefile defines. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=438559f11dba792630201d66a2b690760550c2e2;p=max%2Ftmk_keyboard.git Rename some Makefile defines. --- diff --git a/keyboard/chibi_onekey/Makefile b/keyboard/chibi_onekey/Makefile index 0a88f075..2d5ff8cd 100644 --- a/keyboard/chibi_onekey/Makefile +++ b/keyboard/chibi_onekey/Makefile @@ -28,11 +28,14 @@ MCU_SERIES = STM32F0xx # linker script to use # it should exist either in /os/common/ports/ARMCMx/compilers/GCC/ld/ # or /ld/ -MCU_MODEL_FAMILY = STM32F072xB +MCU_LDSCRIPT = STM32F072xB +# startup code to use +# is should exist in /os/common/ports/ARMCMx/compilers/GCC/mk/ +MCU_STARTUP = stm32f0xx # it should exist either in /os/hal/boards/ # or /boards BOARD = ST_STM32F072B_DISCOVERY -# ARM version, M0/M1 are 6, M3/M4/M7 are 7 +# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 ARMV = 6 # If you want to be able to jump to bootloader from firmware (on STM32 MCUs), # set the correct BOOTLOADER_ADDRESS here. Otherwise leave commented out. diff --git a/tmk_core/protocol/chibios/usb_main.h b/tmk_core/protocol/chibios/usb_main.h index 3a7e76fc..85ea9153 100644 --- a/tmk_core/protocol/chibios/usb_main.h +++ b/tmk_core/protocol/chibios/usb_main.h @@ -127,7 +127,6 @@ typedef struct { /* Putchar over the USB console */ int8_t sendchar(uint8_t c); -/* wrapper for printf lib */ /* Flush output (send everything immediately) */ void console_flush_output(void); diff --git a/tmk_core/tool/chibios/chibios.mk b/tmk_core/tool/chibios/chibios.mk index ed5fd5b8..6ba783e3 100644 --- a/tmk_core/tool/chibios/chibios.mk +++ b/tmk_core/tool/chibios/chibios.mk @@ -85,7 +85,7 @@ endif # Imported source files and paths CHIBIOS = $(TMK_DIR)/tool/chibios/chibios # Startup files. -include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/startup_$(shell echo $(MCU_SERIES) | tr '[:upper:]' '[:lower:]').mk +include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/startup_$(MCU_STARTUP).mk # HAL-OSAL files (optional). include $(CHIBIOS)/os/hal/hal.mk include $(CHIBIOS)/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)/platform.mk @@ -101,10 +101,10 @@ include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_v$(ARMV)m.mk # Other files (optional). # Define linker script file here -ifneq ("$(wildcard $(TARGET_DIR)/ld/$(MCU_MODEL_FAMILY).ld)","") -LDSCRIPT = $(TARGET_DIR)/ld/$(MCU_MODEL_FAMILY).ld +ifneq ("$(wildcard $(TARGET_DIR)/ld/$(MCU_LDSCRIPT).ld)","") +LDSCRIPT = $(TARGET_DIR)/ld/$(MCU_LDSCRIPT).ld else -LDSCRIPT = $(STARTUPLD)/$(MCU_MODEL_FAMILY).ld +LDSCRIPT = $(STARTUPLD)/$(MCU_LDSCRIPT).ld endif # C sources that can be compiled in ARM or THUMB mode depending on the global