summaryrefslogtreecommitdiff
path: root/filesystem/android_device.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-01-09 19:37:47 +0000
committer Spandan Das <spandandas@google.com> 2025-01-10 00:32:32 +0000
commit3ec6d067389a74ea01b86e6cc16c8cfb5ba14afc (patch)
tree09536cd698fe33a06fdacace3b3ae6096b351069 /filesystem/android_device.go
parente51ff957ad1fb2ecc03d82e293069c764c014c3c (diff)
Assemble ROOT/ files of target_files.zip
rsync will be used to copy the root files of the system_image dep Test: verified that ROOT/ in target_files.zip is same when built with make and soong Bug: 385383524 Change-Id: I84279109308d36ec147a63000bb1912c2ffb1273
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 406f47cbe..8e2b9f7ab 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -202,6 +202,10 @@ func (a *androidDevice) buildTargetFilesZip(ctx android.ModuleContext) {
Textf("-rd %s/. %s/%s", rootDirString, targetFilesDir, subdir).
Implicit(fsInfo.Output) // so that the staging dir is built
+ if subdir == "SYSTEM" {
+ // Create the ROOT partition in target_files.zip
+ builder.Command().Textf("rsync --links --exclude=system/* %s/ -r %s/ROOT", fsInfo.RootDir, targetFilesDir.String())
+ }
}
// Copy cmdline, kernel etc. files of boot images
if a.partitionProps.Vendor_boot_partition_name != nil {