aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-03-10 19:39:26 +0100
committerAndrey Konovalov <andreyknvl@google.com>2017-03-10 19:40:05 +0100
commitfc93e6ec5763080500faec9dd70670389dfb05b0 (patch)
tree422dd3998f51536da5926708eacbd977cc90f252
parent3816386feb0d83d60dfe0745f52bf93c8679c75d (diff)
vm: build odroid vm only if odroid build tag is present
-rw-r--r--vm/odroid/empty.go4
-rw-r--r--vm/odroid/odroid.go2
2 files changed, 6 insertions, 0 deletions
diff --git a/vm/odroid/empty.go b/vm/odroid/empty.go
new file mode 100644
index 000000000..2e6ddbe50
--- /dev/null
+++ b/vm/odroid/empty.go
@@ -0,0 +1,4 @@
+// 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 odroid
diff --git a/vm/odroid/odroid.go b/vm/odroid/odroid.go
index f99b2a645..59b3a577b 100644
--- a/vm/odroid/odroid.go
+++ b/vm/odroid/odroid.go
@@ -1,6 +1,8 @@
// 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.
+// +build odroid
+
package odroid
// #cgo pkg-config: libusb-1.0