Add Ramdisk_node_list to target_files.zip
Test: Built soong target_files.zip locally
Bug: 388633394
Change-Id: Ie647c1907475a78233db2bcdd23ebb76dc235d9c
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index 38bfe6b..224c2ef 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -74,6 +74,8 @@
Ab_ota_partitions []string
Ab_ota_keys []string
Ab_ota_postinstall_config []string
+
+ Ramdisk_node_list *string `android:"path"`
}
type androidDevice struct {
@@ -474,6 +476,8 @@
}
builder.Command().Textf("cp").Input(fsInfos[partition].FilesystemConfig).Textf(" %s/META/%s", targetFilesDir.String(), a.filesystemConfigNameForTargetFiles(partition))
}
+ // Copy ramdisk_node_list
+ builder.Command().Textf("cp").Input(android.PathForModuleSrc(ctx, proptools.String(a.deviceProps.Ramdisk_node_list))).Textf(" %s/META/", targetFilesDir.String())
}
// Filenames for the partition specific fs_config files.