aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-03-02 15:21:07 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-03-02 15:21:26 +0100
commit13051717b5a615c5eebe3e4e9a61865de44ba8b2 (patch)
tree5947ad7ab677ca0e426d9a5e87cd0c93b076f309 /vm
parentcf3176e7b89efa4f7b0ddbebc1ac07a395e9ac16 (diff)
vm/adb: fix ppc64le build
Diffstat (limited to 'vm')
-rw-r--r--vm/adb/adb.go2
-rw-r--r--vm/adb/adb_ppc64le.go7
-rw-r--r--vm/adb/console.go2
3 files changed, 11 insertions, 0 deletions
diff --git a/vm/adb/adb.go b/vm/adb/adb.go
index fcc62574f..b8d00ea42 100644
--- a/vm/adb/adb.go
+++ b/vm/adb/adb.go
@@ -1,6 +1,8 @@
// Copyright 2015 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.
+// +build !ppc64le
+
package adb
import (
diff --git a/vm/adb/adb_ppc64le.go b/vm/adb/adb_ppc64le.go
new file mode 100644
index 000000000..749a0db73
--- /dev/null
+++ b/vm/adb/adb_ppc64le.go
@@ -0,0 +1,7 @@
+// Copyright 2017 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 adb
+
+// ppc64le does not have golang.org/x/sys/unix.TCGETS2 const required for console.go.
+// so adb is currently turned off on ppc64le, this empty file is just to make build succeed.
diff --git a/vm/adb/console.go b/vm/adb/console.go
index 8c56c7d1b..7fb32c4b9 100644
--- a/vm/adb/console.go
+++ b/vm/adb/console.go
@@ -1,6 +1,8 @@
// Copyright 2016 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.
+// +build !ppc64le
+
package adb
import (