diff options
| author | 2024-10-24 23:45:11 +0000 | |
|---|---|---|
| committer | 2024-11-05 19:44:59 +0000 | |
| commit | 675d4688f8d5b8c5790de0d4b06f9cb168d3a3d4 (patch) | |
| tree | 35e040433ef45402b8826df5b3dbbe418b128704 /java/java.go | |
| parent | 2e2b7441a09c55bfa42e88a6935071e5606fb3e4 (diff) | |
Revert^2 "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: Id9daa9d248a0187185e86ab33484d6140ee228a1
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions