To move the otacerts module from make to soong, define a new module type otacerts_zip module. This module collects key files from PRODUCT_DEFAULT_DEV_CERTIFICATE and PRODUCT_EXTRA_OTA_KEYS (PRODUCT_EXTRA_RECOVERY_KEYS for recovery) to install the zipped file in etc. otacerts_zip module is available to recovery to install the otacerts.zip file in the recovery partition. Bug: 335364209 Test: Define "PRODUCT_DEFAULT_DEV_CERTIFICATE := \ build/make/target/product/security/testkey" and m aosp_cf_system_x86_64 Change-Id: Ib5b671e9caef0403c6d9d69bfab29be248d7086c
24 lines
459 B
Plaintext
24 lines
459 B
Plaintext
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-etc",
|
|
pkgPath: "android/soong/etc",
|
|
deps: [
|
|
"blueprint",
|
|
"soong",
|
|
"soong-android",
|
|
],
|
|
srcs: [
|
|
"install_symlink.go",
|
|
"otacerts_zip.go",
|
|
"prebuilt_etc.go",
|
|
],
|
|
testSrcs: [
|
|
"prebuilt_etc_test.go",
|
|
"install_symlink_test.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|