aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorPatrick Meyer <meyerpatrick@google.com>2021-05-08 21:01:32 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-05-20 13:29:54 +0200
commita39775d33f7a69adcf1f5b39474a7dba73c0d049 (patch)
treea7673eb059b884876afd0bb713f2055f6823d164 /pkg
parent0f87d2b200b5025fb813cd728e71d9a386595f8a (diff)
pkg/build, Makefile: basic darwin/amd64 build plumbing
Diffstat (limited to 'pkg')
-rw-r--r--pkg/build/build.go1
-rw-r--r--pkg/build/darwin.go20
2 files changed, 21 insertions, 0 deletions
diff --git a/pkg/build/build.go b/pkg/build/build.go
index f56c9a0d3..ee64da447 100644
--- a/pkg/build/build.go
+++ b/pkg/build/build.go
@@ -128,6 +128,7 @@ func getBuilder(targetOS, targetArch, vmType string) (builder, error) {
{targets.OpenBSD, []string{targets.AMD64}, []string{"gce", "vmm"}, openbsd{}},
{targets.NetBSD, []string{targets.AMD64}, []string{"gce", "qemu"}, netbsd{}},
{targets.FreeBSD, []string{targets.AMD64}, []string{"gce", "qemu"}, freebsd{}},
+ {targets.Darwin, []string{targets.AMD64}, []string{"qemu"}, darwin{}},
{targets.TestOS, []string{targets.TestArch64}, []string{"qemu"}, test{}},
}
for _, s := range supported {
diff --git a/pkg/build/darwin.go b/pkg/build/darwin.go
new file mode 100644
index 000000000..41cfad7a6
--- /dev/null
+++ b/pkg/build/darwin.go
@@ -0,0 +1,20 @@
+// Copyright 2021 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+package build
+
+import (
+ "fmt"
+)
+
+type darwin struct{}
+
+func (ctx darwin) build(params *Params) error {
+ // TODO(HerrSpace): Implement this.
+ return fmt.Errorf("pkg/build: darwin.build not implemented")
+}
+
+func (ctx darwin) clean(kernelDir, targetArch string) error {
+ // TODO(HerrSpace): Implement this.
+ return fmt.Errorf("pkg/build: darwin.build not implemented")
+}