summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-02-27 07:42:08 +0000
committer Spandan Das <spandandas@google.com> 2025-02-27 07:42:08 +0000
commit54af357e04d41873a0a13a8ca14988099e9aa6d5 (patch)
tree011784a829111dd64cae31c94c744f9d6c9fa5f0
parent6cc1472a7fb0e01ef0dcb2205958910533788279 (diff)
Create META/boot_filesystem_config.txt in target_files.zip
This file is identical to init_boot_filesystem_config.txt, so create a copy rule to create this file. Test: Verified that the file is identical between make and soong Bug: 388633394 Change-Id: Ie966aa618678600e560ccfb8edab077893431d43
-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 8b0dc1587..b3ad7a79d 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -588,6 +588,10 @@ func (a *androidDevice) copyMetadataToTargetZip(ctx android.ModuleContext, build
continue
}
builder.Command().Textf("cp").Input(fsInfos[partition].FilesystemConfig).Textf(" %s/META/%s", targetFilesDir.String(), a.filesystemConfigNameForTargetFiles(partition))
+ if partition == "ramdisk" {
+ // Create an additional copy at boot_filesystem_config.txt
+ builder.Command().Textf("cp").Input(fsInfos[partition].FilesystemConfig).Textf(" %s/META/boot_filesystem_config.txt", targetFilesDir.String())
+ }
}
// Copy ramdisk_node_list
if ramdiskNodeList := android.PathForModuleSrc(ctx, proptools.String(a.deviceProps.Ramdisk_node_list)); ramdiskNodeList != nil {