From 0dadcd9d912d7faab1cd5fc0dfad21ff95ff86a8 Mon Sep 17 00:00:00 2001 From: R3x Date: Wed, 22 May 2019 18:41:16 +0000 Subject: pkg/build: Add the KCOV build commands --- pkg/build/netbsd.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkg/build/netbsd.go') 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). -- cgit mrf-deployment