diff --git a/tools/Config.mk b/tools/Config.mk index 8b3e4762cd0..b059bbabe3d 100644 --- a/tools/Config.mk +++ b/tools/Config.mk @@ -292,7 +292,7 @@ endif # FILELIST = ${shell find -name } define RWILDCARD - $(foreach d,$(wildcard $1/*),$(call RWILDCARD,$d/)$(filter $(subst *,%,$2),$d)) + $(foreach d,$(wildcard $1/*),$(call RWILDCARD,$d,$2)$(filter $(subst *,%,$2),$d)) endef # CLEAN - Default clean target