aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-09-11 15:43:55 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-09-11 15:43:55 +0200
commitff2962ae80af567fc346c4e9d4d7b6c743f25e73 (patch)
tree4e70a02c287d8188f847162af55b237fb5e0269c /pkg
parenta54c2b7b920e69215f16cd02bb95957902ab1541 (diff)
syz-ci: de-hardcode kernel object file names
We used to have this list in syz-ci and syz-managers. Now we have kernel object in sys/targets, so use it instead. Update #712
Diffstat (limited to 'pkg')
-rw-r--r--pkg/build/build.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/build/build.go b/pkg/build/build.go
index 615cc7ad7..8882748b1 100644
--- a/pkg/build/build.go
+++ b/pkg/build/build.go
@@ -23,7 +23,8 @@ import (
// - kernel: kernel for injected boot
// - initrd: initrd for injected boot
// - kernel.config: actual kernel config used during build
-// - obj/: directory with kernel object files (e.g. vmlinux for linux)
+// - obj/: directory with kernel object files (this should match KernelObject
+// specified in sys/targets, e.g. vmlinux for linux)
func Image(targetOS, targetArch, vmType, kernelDir, outputDir, compiler, userspaceDir,
cmdlineFile, sysctlFile string, config []byte) error {
builder, err := getBuilder(targetOS, targetArch, vmType)