diff options
| author | R3x <siddharth.muralee@gmail.com> | 2019-06-10 17:14:39 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-06-11 11:49:04 +0200 |
| commit | 5b5826d06539695f1c2b54039d145d62e7dc8e8a (patch) | |
| tree | d8cd6b5ded536872a299917a4ddddff4eac34f41 /pkg | |
| parent | 0159583c3bcfe4ece6b839712327cd955aabee66 (diff) | |
pkg/build: fix the failing build
1. Add MKCTF option
2. Remove the command to make the kcov node. Since do it in the script.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/build/netbsd.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go index 22f4e3e84..eda23f952 100644 --- a/pkg/build/netbsd.go +++ b/pkg/build/netbsd.go @@ -43,13 +43,13 @@ options KCOV } // Build tools before building kernel if _, err := osutil.RunCmd(10*time.Minute, kernelDir, "./build.sh", "-m", targetArch, - "-U", "-u", "-j"+strconv.Itoa(runtime.NumCPU()), "tools"); err != nil { + "-U", "-u", "-j"+strconv.Itoa(runtime.NumCPU()), "-V", "MKCTF=no", "tools"); err != nil { return err } // Build kernel if _, err := osutil.RunCmd(10*time.Minute, kernelDir, "./build.sh", "-m", targetArch, - "-U", "-u", "-j"+strconv.Itoa(runtime.NumCPU()), "kernel="+kernelName); err != nil { + "-U", "-u", "-j"+strconv.Itoa(runtime.NumCPU()), "-V", "MKCTF=no", "kernel="+kernelName); err != nil { return err } for _, s := range []struct{ dir, src, dst string }{ @@ -115,9 +115,7 @@ func (ctx netbsd) copyKernelToDisk(targetArch, vmType, outputDir, kernel string) if kernel != "/netbsd" { return fmt.Errorf("kernel is copied into wrong location: %v", kernel) } - commands := []string{"touch /fastboot", - // /fastboot file prevents disk check on start. - "mknod /dev/kcov c 346 0"} + commands := []string{"touch /fastboot"} // /fastboot file prevents disk check on start. if vmType == "gce" { commands = append(commands, []string{ // We expect boot disk to be wd0a for the qemu (that's how qemu exposes -hda disk). |
