summaryrefslogtreecommitdiff
path: root/android/config.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2024-12-02 19:42:20 +0000
committer Jihoon Kang <jihoonkang@google.com> 2024-12-02 23:27:00 +0000
commit3216c986a9c1002c0240093dd25b203b289d22db (patch)
treef2882353373baa2f52a5cd225266a31b491bdcd7 /android/config.go
parentf0eabbf94ffa8acf87e88822ec85c162f33b973e (diff)
Auto generate recovery partition
This change conditionally auto generates the recovery partition in filesystem_generator. Test: m soong_generated_recovery_filesystem_test Bug: 381888358 Change-Id: I8938e842d8587ec1c986542385ed50c19dc1c76d
Diffstat (limited to 'android/config.go')
-rw-r--r--android/config.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go
index cb604a654..b811c55eb 100644
--- a/android/config.go
+++ b/android/config.go
@@ -1519,6 +1519,13 @@ func (c *deviceConfig) BinderBitness() string {
return "64"
}
+func (c *deviceConfig) RecoveryPath() string {
+ if c.config.productVariables.RecoveryPath != nil {
+ return *c.config.productVariables.RecoveryPath
+ }
+ return "recovery"
+}
+
func (c *deviceConfig) VendorPath() string {
if c.config.productVariables.VendorPath != nil {
return *c.config.productVariables.VendorPath
@@ -1614,6 +1621,10 @@ func (c *deviceConfig) BuildingUserdataImage() bool {
return proptools.Bool(c.config.productVariables.BuildingUserdataImage)
}
+func (c *deviceConfig) BuildingRecoveryImage() bool {
+ return proptools.Bool(c.config.productVariables.BuildingRecoveryImage)
+}
+
func (c *deviceConfig) BtConfigIncludeDir() string {
return String(c.config.productVariables.BtConfigIncludeDir)
}