generic_features.mk to automatically pick up nvm repositories

This commit is contained in:
Nick Brassel 2024-09-03 17:12:48 +10:00
parent 0f4fe7e1f9
commit 5917a1dcd5
No known key found for this signature in database
2 changed files with 1 additions and 8 deletions

View File

@ -627,9 +627,6 @@ ifeq ($(strip $(VIA_ENABLE)), yes)
RAW_ENABLE := yes
BOOTMAGIC_ENABLE := yes
TRI_LAYER_ENABLE := yes
QUANTUM_SRC += \
nvm_via.c
endif
VALID_CUSTOM_MATRIX_TYPES:= yes lite no
@ -984,8 +981,3 @@ ifeq ($(strip $(UART_DRIVER_REQUIRED)), yes)
QUANTUM_LIB_SRC += uart.c
endif
endif
DYNAMIC_KEYMAP_ENABLE ?= no
ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes)
QUANTUM_LIB_SRC += nvm_dynamic_keymap.c
endif

View File

@ -59,6 +59,7 @@ define HANDLE_GENERIC_FEATURE
SRC += $$(wildcard $$(QUANTUM_DIR)/process_keycode/process_$2.c)
SRC += $$(wildcard $$(QUANTUM_DIR)/$2/$2.c)
SRC += $$(wildcard $$(QUANTUM_DIR)/$2.c)
SRC += $$(wildcard $$(QUANTUM_DIR)/nvm/$(NVM_DRIVER_LOWER)/nvm_$2.c)
VPATH += $$(wildcard $$(QUANTUM_DIR)/$2/)
OPT_DEFS += -D$1_ENABLE
endef