Create new module type 'snapshot_etc'

It requires new module type to generate 'prebuilt_etc' modules in the
snapshot, because of name conflict with existing modules. This change
defines new module type 'snapshot_etc' as prebuilt of 'prebuilt_etc', so
it can replace original module on certain conditions.

Bug: 192430376
Test: Tested with snapshot_etc of ld.config.recovery.txt module
Change-Id: Ia4d27ce2077a10591597d2614c7c29c23a245149
This commit is contained in:
Kiyoung Kim
2021-07-23 15:47:56 +09:00
parent ae11c233b5
commit ab9a31c9bc
3 changed files with 373 additions and 0 deletions

View File

@@ -13,9 +13,11 @@ bootstrap_go_package {
],
srcs: [
"prebuilt_etc.go",
"snapshot_etc.go",
],
testSrcs: [
"prebuilt_etc_test.go",
"snapshot_etc_test.go",
],
pluginFor: ["soong_build"],
}