Add overlay files to layoutlib res.zip

This adds resource overlay files to the res.zip file created by
layoutlib_data.mk. This also updates the script generating the
corresponding SBOM file.

Bug: 335355919
Test: m layoutlib
Change-Id: I2427be23720324eb03bd428d220b8777e3bf49bb
This commit is contained in:
Jerome Gaillard
2024-08-01 18:02:22 +01:00
parent 273f97b5a3
commit c97c0b4a7c
3 changed files with 28 additions and 9 deletions

View File

@@ -80,7 +80,8 @@ def main():
resource_file_spdxids = []
for file in layoutlib_sbom[sbom_writers.PropNames.FILES]:
if file[sbom_writers.PropNames.FILE_NAME].startswith('data/res/'):
file_path = file[sbom_writers.PropNames.FILE_NAME]
if file_path.startswith('data/res/') or file_path.startswith('data/overlays/'):
resource_file_spdxids.append(file[sbom_writers.PropNames.SPDXID])
doc.relationships = [