summaryrefslogtreecommitdiff
path: root/filesystem/filesystem_test.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2024-10-24 23:45:11 +0000
committer Jihoon Kang <jihoonkang@google.com> 2024-11-01 22:28:43 +0000
commit235b13b93ebcb17c083aac383fc61b49fdea564d (patch)
treed0f1cc5932f23b8e587a37f7572c19ce52c07467 /filesystem/filesystem_test.go
parent2a7bf750e7fed942ecdb7f0b80b8fb226f584d61 (diff)
Auto generate prebuilt_* modules from PRODUCT_COPY_FILES
This change generates the prebuilt_* modules from PRODUCT_COPY_FILES and add the generated modules as deps of the (also) auto generated filesystem modules. The modules generation takes 3 factors into consideration: - source file path - install partition - relative install path from the partition root For example, for PRODUCT_COPY_FILES entries that look like below: ``` foo/bar/baz.ogg:$(TARGET_OUT_PRODUCT)/media/audio/baaz.ogg foo/bar/bar.txt:$(TARGET_OUT)/bar.txt foo/bar.xml:$(TARGET_OUT_VENDOR)/etc/init/bar.xml ``` Three distinct modules would be generated, that look like the followings: ``` foo/bar/Android.bp: prebuilt_media_audio { name: "product-foo_bar-media_audio-ogg", product_specific: true, srcs: [ "baz.ogg", ], dsts: [ "baaz.ogg", ], } prebuilt_root { name: "system-foo_bar-bar-txt", srcs: [ "bar.txt", ], } foo/Android.bp: prebuilt_etc { name: "vendor-foo-etc_init-xml", relative_install_path: "init", srcs: [ "bar.xml", ], } ``` This change also remove some hardcoded deps entries from `FsGenState.fsDeps`, as they are replaced with the auto generated prebuilt_* modules. Test: m nothing && m soong_generated_product_filesystem_test Bug: 375053752 Change-Id: I868e426f8b36cd151a7dac946fa23288795fb6bd
Diffstat (limited to 'filesystem/filesystem_test.go')
0 files changed, 0 insertions, 0 deletions