Create license metadata for copied targets.

Bug: 213388645
Bug: 240342946

Test: m cts dist reportmissinglicenses

Change-Id: I43043e5e7b80d9f3210d6498c215846aec761add
Merged-in: I43043e5e7b80d9f3210d6498c215846aec761add
This commit is contained in:
Bob Badour
2022-05-27 19:40:41 -07:00
parent b9747b5295
commit bb6cde6064
5 changed files with 79 additions and 13 deletions

View File

@@ -29,6 +29,6 @@ $(foreach m,$(1),\
$(eval my_copy_dest := $(patsubst data/%,DATA/%,\
$(patsubst system/%,DATA/%,\
$(patsubst $(PRODUCT_OUT)/%,%,$(ins)))))\
$(eval ALL_TARGETS.$(2)/$(my_copy_dest).META_LIC := $(if $(strip $(ALL_MODULES.$(m).META_LIC)),$(ALL_MODULES.$(m).META_LIC),$(ALL_MODULES.$(m).DELAYED_META_LIC)))\
$(call declare-copy-target-license-metadata,$(2)/$(my_copy_dest),$(bui))\
$(bui):$(2)/$(my_copy_dest))))
endef