mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-01-19 08:05:01 +00:00
whitespace
This commit is contained in:
parent
397e8d4583
commit
4d46e95ea8
@ -8,25 +8,24 @@ VALID_NVM_DRIVERS := eeprom custom none
|
||||
NVM_DRIVER ?= eeprom
|
||||
|
||||
ifeq ($(filter $(NVM_DRIVER),$(VALID_NVM_DRIVERS)),)
|
||||
$(call CATASTROPHIC_ERROR,Invalid NVM_DRIVER,NVM_DRIVER="$(NVM_DRIVER)" is not a valid NVM driver)
|
||||
$(call CATASTROPHIC_ERROR,Invalid NVM_DRIVER,NVM_DRIVER="$(NVM_DRIVER)" is not a valid NVM driver)
|
||||
else
|
||||
|
||||
# If we don't want one, fake it with transient eeprom.
|
||||
ifeq ($(NVM_DRIVER),none)
|
||||
NVM_DRIVER := eeprom
|
||||
EEPROM_DRIVER := transient
|
||||
endif
|
||||
# If we don't want one, fake it with transient eeprom.
|
||||
ifeq ($(NVM_DRIVER),none)
|
||||
NVM_DRIVER := eeprom
|
||||
EEPROM_DRIVER := transient
|
||||
endif
|
||||
|
||||
NVM_DRIVER_UPPER := $(shell echo $(NVM_DRIVER) | tr '[:lower:]' '[:upper:]')
|
||||
NVM_DRIVER_LOWER := $(shell echo $(NVM_DRIVER) | tr '[:upper:]' '[:lower:]')
|
||||
NVM_DRIVER_UPPER := $(shell echo $(NVM_DRIVER) | tr '[:lower:]' '[:upper:]')
|
||||
NVM_DRIVER_LOWER := $(shell echo $(NVM_DRIVER) | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
OPT_DEFS += -DNVM_DRIVER_$(NVM_DRIVER_UPPER) -DNVM_DRIVER="$(NVM_DRIVER)"
|
||||
OPT_DEFS += -DNVM_DRIVER_$(NVM_DRIVER_UPPER) -DNVM_DRIVER="$(NVM_DRIVER)"
|
||||
|
||||
ifneq ("$(wildcard $(QUANTUM_DIR)/nvm/$(NVM_DRIVER_LOWER))","")
|
||||
VPATH += $(QUANTUM_DIR)/nvm/$(NVM_DRIVER_LOWER)
|
||||
endif
|
||||
ifneq ("$(wildcard $(QUANTUM_DIR)/nvm/$(NVM_DRIVER_LOWER))","")
|
||||
VPATH += $(QUANTUM_DIR)/nvm/$(NVM_DRIVER_LOWER)
|
||||
endif
|
||||
|
||||
QUANTUM_SRC += \
|
||||
nvm_eeconfig.c
|
||||
QUANTUM_SRC += nvm_eeconfig.c
|
||||
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user