Relocate platform specific drivers (#13894)

* Relocate platform specific drivers

* Move stm eeprom

* Tidy up slightly
This commit is contained in:
Joel Challis 2021-08-17 23:43:09 +01:00 committed by GitHub
parent 483691dd73
commit 1bb7af4d44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 5 additions and 5 deletions

View File

@ -12,6 +12,9 @@ QUANTUM_PATH = $(QUANTUM_DIR)
DRIVER_DIR = drivers DRIVER_DIR = drivers
DRIVER_PATH = $(DRIVER_DIR) DRIVER_PATH = $(DRIVER_DIR)
PLATFORM_DIR = platforms
PLATFORM_PATH = $(PLATFORM_DIR)
BUILD_DIR := .build BUILD_DIR := .build
COMMON_VPATH := $(TOP_DIR) COMMON_VPATH := $(TOP_DIR)

View File

@ -178,6 +178,7 @@ else
else ifneq ($(filter $(MCU_SERIES),STM32L0xx STM32L1xx),) else ifneq ($(filter $(MCU_SERIES),STM32L0xx STM32L1xx),)
OPT_DEFS += -DEEPROM_DRIVER OPT_DEFS += -DEEPROM_DRIVER
COMMON_VPATH += $(DRIVER_PATH)/eeprom COMMON_VPATH += $(DRIVER_PATH)/eeprom
COMMON_VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/eeprom
SRC += eeprom_driver.c eeprom_stm32_L0_L1.c SRC += eeprom_driver.c eeprom_stm32_L0_L1.c
else else
# This will effectively work the same as "transient" if not supported by the chip # This will effectively work the same as "transient" if not supported by the chip

View File

@ -12,8 +12,6 @@ HEX = $(OBJCOPY) -O $(FORMAT) -R .eeprom -R .fuse -R .lock -R .signature
EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT) EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT)
BIN = BIN =
COMMON_VPATH += $(DRIVER_PATH)/avr
COMPILEFLAGS += -funsigned-char COMPILEFLAGS += -funsigned-char
COMPILEFLAGS += -funsigned-bitfields COMPILEFLAGS += -funsigned-bitfields
COMPILEFLAGS += -ffunction-sections COMPILEFLAGS += -ffunction-sections

View File

@ -278,8 +278,6 @@ HEX = $(OBJCOPY) -O $(FORMAT)
EEP = EEP =
BIN = $(OBJCOPY) -O binary BIN = $(OBJCOPY) -O binary
COMMON_VPATH += $(DRIVER_PATH)/chibios
THUMBFLAGS = -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB THUMBFLAGS = -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB
COMPILEFLAGS += -fomit-frame-pointer COMPILEFLAGS += -fomit-frame-pointer

View File

@ -138,3 +138,4 @@ endif
# Search Path # Search Path
VPATH += $(TMK_PATH)/$(COMMON_DIR) VPATH += $(TMK_PATH)/$(COMMON_DIR)
VPATH += $(TMK_PATH)/$(PLATFORM_COMMON_DIR) VPATH += $(TMK_PATH)/$(PLATFORM_COMMON_DIR)
VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)

View File

@ -49,7 +49,6 @@ SRC += $(LUFA_DIR)/usb_util.c
# Search Path # Search Path
VPATH += $(TMK_PATH)/$(LUFA_DIR) VPATH += $(TMK_PATH)/$(LUFA_DIR)
VPATH += $(LUFA_PATH) VPATH += $(LUFA_PATH)
VPATH += $(DRIVER_PATH)/avr
# Option modules # Option modules
#ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE) #ifdef $(or MOUSEKEY_ENABLE, PS2_MOUSE_ENABLE)