Lines Matching refs:ctx
40 func genKatiSuffix(ctx Context, config Config) {
52 ctx.Verbosef("Kati ninja suffix too long: %q", katiSuffix)
53 ctx.Verbosef("Replacing with: %q", shortSuffix)
56 ctx.Println("Error writing suffix file:", err)
63 func runKati(ctx Context, config Config, extraSuffix string, args []string, envFunc func(*Environme…
97 cmd := Command(ctx, config, "ckati", executable, args...)
101 ctx.Fatalln("Error getting output pipe for ckati:", err)
112 ctx.Println("Failed to get current user:", err)
120 ctx.Println("Failed to read hostname:", err)
127 status.KatiReader(ctx.Status.StartTool(), pipe)
131 func runKatiBuild(ctx Context, config Config) {
132 ctx.BeginTrace(metrics.RunKati, "kati build")
133 defer ctx.EndTrace()
157 runKati(ctx, config, katiBuildSuffix, args, func(env *Environment) {})
159 distGzipFile(ctx, config, config.KatiBuildNinjaFile())
161 cleanCopyHeaders(ctx, config)
162 cleanOldInstalledFiles(ctx, config)
165 func cleanCopyHeaders(ctx Context, config Config) {
166 ctx.BeginTrace("clean", "clean copy headers")
167 defer ctx.EndTrace()
174 ctx.Fatalf("Failed to read copied headers list: %v", err)
179 ctx.Fatal("Failed to parse copied headers list: %q", string(data))
193 ctx.Printf("Removing obsolete header %q", path)
195 ctx.Fatalf("Failed to remove obsolete header %q: %v", path, err)
202 func cleanOldInstalledFiles(ctx Context, config Config) {
203 ctx.BeginTrace("clean", "clean old installed files")
204 defer ctx.EndTrace()
214 cleanOldFiles(ctx, config.ProductOut(), ".installable_files"+suffix)
216 cleanOldFiles(ctx, config.HostOut(), ".installable_test_files")
219 func runKatiPackage(ctx Context, config Config) {
220 ctx.BeginTrace(metrics.RunKati, "kati package")
221 defer ctx.EndTrace()
231 runKati(ctx, config, katiPackageSuffix, args, func(env *Environment) {
257 distGzipFile(ctx, config, config.KatiPackageNinjaFile())
260 func runKatiCleanSpec(ctx Context, config Config) {
261 ctx.BeginTrace(metrics.RunKati, "kati cleanspec")
262 defer ctx.EndTrace()
264 runKati(ctx, config, katiCleanspecSuffix, []string{