summaryrefslogtreecommitdiff
path: root/snapshot
diff options
context:
space:
mode:
author Jose Galmes <jgalmes@google.com> 2021-11-05 14:04:54 -0700
committer Jose Galmes <jgalmes@google.com> 2021-11-09 08:40:50 -0800
commitd7d99be2259747ba0082aa97b954c504dd43db38 (patch)
treed301f2b9b6ff9d44cbf2934b53f818467e403e12 /snapshot
parentba6d4ac226d49c89d07558e1507f9d3b0feaca28 (diff)
Support for rust recovery snapshot.
Bug: 197866992 Test: source build/envsetup.sh Test: m -j nothing Change-Id: I02bb188669cf9f17073592a4622998f96d5f54ac
Diffstat (limited to 'snapshot')
-rw-r--r--snapshot/recovery_snapshot.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/snapshot/recovery_snapshot.go b/snapshot/recovery_snapshot.go
index 9b3919c34..f1e31ca03 100644
--- a/snapshot/recovery_snapshot.go
+++ b/snapshot/recovery_snapshot.go
@@ -71,6 +71,10 @@ func (RecoverySnapshotImage) Init(ctx android.RegistrationContext) {
ctx.RegisterSingletonType("recovery-snapshot", RecoverySnapshotSingleton)
}
+func (RecoverySnapshotImage) RegisterAdditionalModule(ctx android.RegistrationContext, name string, factory android.ModuleFactory) {
+ ctx.RegisterModuleType(name, factory)
+}
+
func (RecoverySnapshotImage) shouldGenerateSnapshot(ctx android.SingletonContext) bool {
// RECOVERY_SNAPSHOT_VERSION must be set to 'current' in order to generate a
// snapshot.