Make a soong-only copy of generate-notice-files.py

This is an unchanged copy of build/make/tools/generate-notice-files.py

After this change, the make implementation of generate-notice-files.py
will change to take a required parameter for $(PRODUCT_OUT) and will
only include notices for files built under $(PRODUCT_OUT).

Because soong has the ability to walk dependency trees, the soong
version will likely change in the future to use that ability causing
both versions to move in different directions.

After those changes are complete, we can look into factoring out any
remaining shared logic.

Test: run manually and system image notices checked for changes

Change-Id: Id139a66503457615548b46e7996349ca0817e831
This commit is contained in:
Bob Badour
2020-02-10 17:08:47 -08:00
parent 2d4b8d2188
commit 3911e6a1c4
3 changed files with 269 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
#
"""
Merges input notice files to the output file while ignoring duplicated files
This script shouldn't be confused with build/make/tools/generate-notice-files.py
This script shouldn't be confused with build/soong/scripts/generate-notice-files.py
which is responsible for creating the final notice file for all artifacts
installed. This script has rather limited scope; it is meant to create a merged
notice file for a set of modules that are packaged together, e.g. in an APEX.