From 564c3764d30f2c0c22d19fe967b4257a3d69c632 Mon Sep 17 00:00:00 2001 From: Purdea Andrei Date: Sat, 15 Apr 2023 17:17:43 +0300 Subject: [PATCH] Fix EEPROM_DRIVER=legacy_stm32_flash regression was introduced in commit bebfdad795add9fbc8c6c1393d1b817d542474ed --- builddefs/common_features.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index 0880934e9579..e742ab50725e 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -213,10 +213,10 @@ else SRC += eeprom_driver.c eeprom_spi.c else ifeq ($(strip $(EEPROM_DRIVER)), legacy_stm32_flash) # STM32 Emulated EEPROM, backed by MCU flash (soon to be deprecated) - OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_STM32_FLASH_EMULATED + OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_LEGACY_EMULATED_FLASH COMMON_VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/flash COMMON_VPATH += $(DRIVER_PATH)/flash - SRC += eeprom_driver.c eeprom_stm32.c flash_stm32.c + SRC += eeprom_driver.c eeprom_legacy_emulated_flash.c legacy_flash_ops.c else ifeq ($(strip $(EEPROM_DRIVER)), transient) # Transient EEPROM implementation -- no data storage but provides runtime area for it OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_TRANSIENT