diff options
| author | R3x <siddharth.muralee@gmail.com> | 2019-05-22 18:41:16 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-05-23 08:48:16 +0200 |
| commit | 0dadcd9d912d7faab1cd5fc0dfad21ff95ff86a8 (patch) | |
| tree | ab7522e1cd4f1ce855a294233ae18874e120ba6b /pkg | |
| parent | 84b9d38467dd971812a7ce47dcaf0144e2576b6c (diff) | |
pkg/build: Add the KCOV build commands
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/build/netbsd.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/build/netbsd.go b/pkg/build/netbsd.go index 315a996f6..22f4e3e84 100644 --- a/pkg/build/netbsd.go +++ b/pkg/build/netbsd.go @@ -33,6 +33,9 @@ include "arch/amd64/conf/GENERIC" makeoptions KASAN=1 options KASAN no options SVS + +makeoptions KCOV=1 +options KCOV `) if err := osutil.WriteFile(filepath.Join(confDir, kernelName), conf); err != nil { @@ -112,7 +115,9 @@ 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. + commands := []string{"touch /fastboot", + // /fastboot file prevents disk check on start. + "mknod /dev/kcov c 346 0"} if vmType == "gce" { commands = append(commands, []string{ // We expect boot disk to be wd0a for the qemu (that's how qemu exposes -hda disk). |
