summaryrefslogtreecommitdiff
path: root/filesystem/android_device.go
diff options
context:
space:
mode:
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 83d56c638..555eddc03 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -208,6 +208,9 @@ func (a *androidDevice) buildTargetFilesZip(ctx android.ModuleContext) {
toCopy = append(toCopy, targetFilesZipCopy{a.partitionProps.Recovery_partition_name, "VENDOR_BOOT/RAMDISK"})
}
+ // Create an IMAGES/ subdirectory
+ builder.Command().Textf("mkdir -p %s/IMAGES/", targetFilesDir.String())
+
for _, zipCopy := range toCopy {
if zipCopy.srcModule == nil {
continue
@@ -228,6 +231,7 @@ func (a *androidDevice) buildTargetFilesZip(ctx android.ModuleContext) {
// Create the ROOT partition in target_files.zip
builder.Command().Textf("rsync --links --exclude=system/* %s/ -r %s/ROOT", fsInfo.RootDir, targetFilesDir.String())
}
+ builder.Command().Textf("cp %s %s/IMAGES/", fsInfo.Output, targetFilesDir.String())
}
// Copy cmdline, kernel etc. files of boot images
if a.partitionProps.Vendor_boot_partition_name != nil {