You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Create instance from a local build, the required files are https://cs.android.com/android/platform/superproject/+/master:device/google/cuttlefish/required_images and cvd-host-packages.tar.gz")
Copy file name to clipboardExpand all lines: pkg/cli/cvd.go
+26-51Lines changed: 26 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -83,13 +83,29 @@ type CreateCVDLocalOpts struct {
83
83
LocalImagesZipSrcstring
84
84
}
85
85
86
+
// Represents a build from ci.android.com.
87
+
typeAndroidCIBuildstruct {
88
+
// The branch name. If omitted the passed `BuildID` will determine the branch.
89
+
Branchstring
90
+
// Uniquely identifies a branch's snapshot. If empty, the latest green snapshot of the used branch will
91
+
// be used.
92
+
BuildIDstring
93
+
// A string to determine the specific device product and flavor
94
+
Targetstring
95
+
}
96
+
97
+
func (b*AndroidCIBuild) EnvConfigURI() string {
98
+
branch:=b.Branch
99
+
ifb.BuildID!="" {
100
+
branch=b.BuildID
101
+
}
102
+
returnfmt.Sprintf("@ab/%s/%s", branch, b.Target)
103
+
}
104
+
86
105
typeCreateCVDOptsstruct {
87
-
Hoststring
88
-
MainBuild hoapi.AndroidCIBuild
89
-
KernelBuild hoapi.AndroidCIBuild
90
-
BootloaderBuild hoapi.AndroidCIBuild
91
-
SystemImgBuild hoapi.AndroidCIBuild
92
-
LocalImagebool
106
+
Hoststring
107
+
MainBuildAndroidCIBuild
108
+
LocalImagebool
93
109
// Creates multiple instances. Only relevant if given a single build source.
94
110
NumInstancesint
95
111
// TODO(b/378123925): Work with https://github.com/google/android-cuttlefish/blob/main/base/cvd/cuttlefish/host/commands/cvd/cli/parser/load_config.proto
0 commit comments