From 3143a7597fc32dde3fefa484130dd9b33cac57bf Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sat, 4 Nov 2023 20:33:52 +0000 Subject: [PATCH] Allow generic_features to handle subdirectories (#22400) --- builddefs/generic_features.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builddefs/generic_features.mk b/builddefs/generic_features.mk index afd8bbd2762..261da564b20 100644 --- a/builddefs/generic_features.mk +++ b/builddefs/generic_features.mk @@ -44,7 +44,9 @@ GENERIC_FEATURES = \ define HANDLE_GENERIC_FEATURE # $$(info "Processing: $1_ENABLE $2.c") SRC += $$(wildcard $$(QUANTUM_DIR)/process_keycode/process_$2.c) + SRC += $$(wildcard $$(QUANTUM_DIR)/$2/$2.c) SRC += $$(wildcard $$(QUANTUM_DIR)/$2.c) + VPATH += $$(wildcard $$(QUANTUM_DIR)/$2/) OPT_DEFS += -D$1_ENABLE endef