From 5e94bcd1cba2936efbff077d85759978b7ac9134 Mon Sep 17 00:00:00 2001 From: zvecr Date: Sat, 4 Nov 2023 03:21:24 +0000 Subject: [PATCH] Allow generic_features to handle subdirectories --- builddefs/generic_features.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builddefs/generic_features.mk b/builddefs/generic_features.mk index afd8bbd27620..261da564b209 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