summaryrefslogtreecommitdiff
path: root/android/module_test.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2024-11-08 19:35:09 +0000
committer Jihoon Kang <jihoonkang@google.com> 2024-11-12 00:31:27 +0000
commit3a8759c27d4336ea2e3297b1d724f241bac5ea35 (patch)
treed63c146b48d20c455107627b0125bafeaa597bf7 /android/module_test.go
parentb31472422a17e0ba0f878dca50f9b834e9f71426 (diff)
Support generating prebuilt_* modules from 1:n mapping of PRODUCT_COPY_FILES
The current implementation of prebuilt_* modules generation from PRODUCT_COPY_FILES relies on the assumption that its entries are 1:1 mapping. However, there are entries where the mapping is 1:n (i.e. a source file is installed multiple times with different names). Some of the cases are copying the same file multiple times in the same install directory with different file names. This cannot be supported with a single prebuilt_* module, and a multiple prebuilt_* modules need to be generated for a single source file to support this. Implementation details: - Import PRODUCT_COPY_FILES as a string list instead of map and process it - Reformat the generated prebuilt_* module name to end with an interger instead of file extension - Group source files to ensure that a source file cannot be duplicated in each generated prebuilt_* modules. Test: m soong_generated_vendor_filesystem_test && observe etc/ueventd.rc is not shown Bug: 375053752 Change-Id: Iac40ebfa4433a6589a5bc1ad31ce0cb7140bcfc4
Diffstat (limited to 'android/module_test.go')
0 files changed, 0 insertions, 0 deletions