From fd73c27d89f3a4e25e0eb1b3a8d383a5b49e5921 Mon Sep 17 00:00:00 2001 From: erikj Date: Fri, 6 Apr 2018 02:52:24 +0200 Subject: [PATCH] 8201222: JDK-8199539 broke the OpenJDK build Reviewed-by: darcy --- make/copy/CopyCommon.gmk | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/make/copy/CopyCommon.gmk b/make/copy/CopyCommon.gmk index 60ae6b3b21..6450cb169f 100644 --- a/make/copy/CopyCommon.gmk +++ b/make/copy/CopyCommon.gmk @@ -73,11 +73,12 @@ endif # EXCLUDES : List of filenames to exclude from copy SetupCopyLegalFiles = $(NamedParamsMacroTemplate) define SetupCopyLegalFilesBody - $$(eval $$(call SetupCopyFiles, $1, \ - SRC := $$(CUSTOM_ROOT), \ - DEST := $$(LEGAL_DST_DIR), \ - FILES := $$(filter-out $$(addprefix %/, $$($1_EXCLUDES)), \ - $$(wildcard $$(addsuffix /*, $$(call FindModuleLegalSrcDirs, $$(MODULE))))), \ - FLATTEN := true, \ - )) + $$(foreach f, $$(filter-out $$(addprefix %/, $$($1_EXCLUDES)), \ + $$(wildcard $$(addsuffix /*, $$(call FindModuleLegalSrcDirs, $$(MODULE))))), \ + $$(eval $$(call SetupCopyFiles, $1_$$(notdir $$f), \ + DEST := $$(LEGAL_DST_DIR), \ + FILES := $$f, \ + )) \ + $$(eval $1 += $$($1_$$(notdir $$f))) \ + ) endef -- GitLab