--- a/make/common/Modules.gmk Thu Apr 05 20:31:57 2018 +0000
+++ b/make/common/Modules.gmk Thu Apr 05 23:46:05 2018 +0200
@@ -394,12 +394,11 @@
endif
LEGAL_SUBDIRS += share/legal
-# Find all legal dirs for a particular module
+# Find all legal src dirs for a particular module
# $1 - Module to find legal dirs for
-FindModuleLegalDirs = \
+FindModuleLegalSrcDirs = \
$(strip $(wildcard \
- $(addsuffix /$(strip $1), $(SUPPORT_OUTPUTDIR)/modules_legal \
- $(IMPORT_MODULES_LEGAL)) \
+ $(addsuffix /$(strip $1), $(IMPORT_MODULES_LEGAL)) \
$(foreach sub, $(LEGAL_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))) \
))