summaryrefslogtreecommitdiff
path: root/filesystem/android_device.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-03-10 22:34:25 +0000
committer Spandan Das <spandandas@google.com> 2025-03-11 15:44:31 -0700
commitd73441e44151516d530d87384d1ae276013f3103 (patch)
tree55266ccd0c88708cabf08d37c505ef54752d8be0 /filesystem/android_device.go
parentcb8fd3e3c1ce17d5ee0cfd54a6b19f212cf42751 (diff)
Create super_empty.img using Soong
The build rule for this .img file will be created in super_image. It will use the a minimized file returned by `buildMiscInfo` without any partition information. This file will be disted in target_files.zip Bug: 390192334 Test: Verified that this file is bit-identical between make and soong for aosp_cf_x86_64_phone Change-Id: I9238d67d2ca8739064509a858d5251f2641896e9
Diffstat (limited to 'filesystem/android_device.go')
-rw-r--r--filesystem/android_device.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index 22ad7cf7b..45a8620c5 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -623,6 +623,10 @@ func (a *androidDevice) copyImagesToTargetZip(ctx android.ModuleContext, builder
builder.Command().Textf("cp ").Input(info.SubImageInfo[partition].MapFile).Textf(" %s/IMAGES/", targetFilesDir.String())
}
}
+ // super_empty.img
+ if info.SuperEmptyImage != nil {
+ builder.Command().Textf("cp ").Input(info.SuperEmptyImage).Textf(" %s/IMAGES/", targetFilesDir.String())
+ }
} else {
ctx.ModuleErrorf("Super partition %s does set SuperImageProvider\n", superPartition.Name())
}