diff --git a/core/product.mk b/core/product.mk index 4849d7abd..d8f78cdb8 100644 --- a/core/product.mk +++ b/core/product.mk @@ -273,3 +273,7 @@ $(strip \ $(eval $(error The following variables have been changed: $(changed_variables))),) ) endef + +define add-to-product-copy-files-if-exists +$(if $(wildcard $(word 1,$(subst :, ,$(1)))),$(1)) +endef