1
0
Fork 0
forked from forks/qmk_firmware

Allow generic_features to handle subdirectories (#22400)

This commit is contained in:
Joel Challis 2023-11-04 20:33:52 +00:00 committed by GitHub
parent c9afacccf4
commit 3143a7597f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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