aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/netbsd.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-07-11 17:09:04 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-07-12 08:22:44 +0200
commitc1147c8df73eb61bc9d66e6628e0369e21f28670 (patch)
tree1f5f75bf13a32941025c134fdd236fb137cf3181 /pkg/build/netbsd.go
parent0faffd0438df859fb66236085ac3992735900d26 (diff)
all: fix comments format
Fix capitalization, dots at the end and two spaces after a period. Update #1876
Diffstat (limited to 'pkg/build/netbsd.go')
-rw-r--r--pkg/build/netbsd.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go
index ecf21ee77..43620c9cf 100644
--- a/pkg/build/netbsd.go
+++ b/pkg/build/netbsd.go
@@ -30,25 +30,25 @@ func (ctx netbsd) build(params *Params) error {
return err
}
- // Clear the tools
+ // Clear the tools.
if _, err := osutil.RunCmd(5*time.Minute, params.KernelDir, "rm", "-rf", "obj/"); err != nil {
return err
}
- // Clear the build files
+ // Clear the build files.
if _, err := osutil.RunCmd(5*time.Minute, params.KernelDir, "rm", "-rf", compileDir); err != nil {
return err
}
if strings.HasSuffix(params.Compiler, "clang++") {
- // Build tools before building kernel
+ // Build tools before building kernel.
if _, err := osutil.RunCmd(60*time.Minute, params.KernelDir, "./build.sh", "-m", params.TargetArch,
"-U", "-j"+strconv.Itoa(runtime.NumCPU()), "-V", "MKCTF=no",
"-V", "MKLLVM=yes", "-V", "MKGCC=no", "-V", "HAVE_LLVM=yes", "tools"); err != nil {
return err
}
- // Build kernel
+ // Build kernel.
if _, err := osutil.RunCmd(20*time.Minute, params.KernelDir, "./build.sh", "-m", params.TargetArch,
"-U", "-j"+strconv.Itoa(runtime.NumCPU()), "-V", "MKCTF=no",
"-V", "MKLLVM=yes", "-V", "MKGCC=no", "-V", "HAVE_LLVM=yes", "kernel="+kernelName); err != nil {
@@ -126,7 +126,7 @@ func (ctx netbsd) copyKernelToDisk(targetArch, vmType, outputDir, kernel string)
return fmt.Errorf("failed to create the VM Instance: %v", err)
}
defer inst.Close()
- // Copy the kernel into the disk image and replace it
+ // Copy the kernel into the disk image and replace it.
kernel, err = inst.Copy(kernel)
if err != nil {
return fmt.Errorf("error copying the kernel: %v", err)