mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 21:30:33 +00:00
pkg/build: Add the KCOV build commands
This commit is contained in:
parent
84b9d38467
commit
0dadcd9d91
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user