diff options
author | Nick Brassel <[email protected]> | 2024-07-02 10:16:41 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-02 10:16:41 +1000 |
commit | 7bc3eef8cc262e12b0f823ba4c92cf97ca3dc1fa (patch) | |
tree | fecf3ea721b91676501b579fc637fab8d4f56f23 /builddefs | |
parent | 641a1ce568c896a3beea80649f33a71dfeaf44af (diff) | |
download | qmk_firmware-7bc3eef8cc262e12b0f823ba4c92cf97ca3dc1fa.tar.gz qmk_firmware-7bc3eef8cc262e12b0f823ba4c92cf97ca3dc1fa.zip |
SPI flash API cleanup, add async erase capability. (#23894)
Diffstat (limited to 'builddefs')
-rw-r--r-- | builddefs/common_features.mk | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk index 68f9a1dd08..498614dd26 100644 --- a/builddefs/common_features.mk +++ b/builddefs/common_features.mk @@ -282,18 +282,17 @@ ifneq ($(strip $(WEAR_LEVELING_DRIVER)),none) endif endif -VALID_FLASH_DRIVER_TYPES := spi +VALID_FLASH_DRIVER_TYPES := spi custom FLASH_DRIVER ?= none ifneq ($(strip $(FLASH_DRIVER)), none) ifeq ($(filter $(FLASH_DRIVER),$(VALID_FLASH_DRIVER_TYPES)),) $(call CATASTROPHIC_ERROR,Invalid FLASH_DRIVER,FLASH_DRIVER="$(FLASH_DRIVER)" is not a valid flash driver) else - OPT_DEFS += -DFLASH_ENABLE + OPT_DEFS += -DFLASH_ENABLE -DFLASH_DRIVER -DFLASH_DRIVER_$(strip $(shell echo $(FLASH_DRIVER) | tr '[:lower:]' '[:upper:]')) + COMMON_VPATH += $(DRIVER_PATH)/flash ifeq ($(strip $(FLASH_DRIVER)),spi) - SPI_DRIVER_REQUIRED = yes - OPT_DEFS += -DFLASH_DRIVER -DFLASH_SPI - COMMON_VPATH += $(DRIVER_PATH)/flash SRC += flash_spi.c + SPI_DRIVER_REQUIRED = yes endif endif endif |