From f9e5a41e1ac9bb85a0e5d3f5093d2af3f5c1f412 Mon Sep 17 00:00:00 2001 From: Erik Joelsson 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 60ae6b3b214..6450cb169f3 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