aboutsummaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2018-03-16 16:48:41 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-25 09:33:35 +0100
commite0dbcdc2ca0b05b6b062a0ec1496204bb2122fbf (patch)
tree99ebef7a4f78ae3b989a47103eaec768f5997acd /meta/classes
parentc292945611d9f825051ac4938bb22a7d42fff994 (diff)
downloadopenembedded-core-e0dbcdc2ca0b05b6b062a0ec1496204bb2122fbf.zip
openembedded-core-e0dbcdc2ca0b05b6b062a0ec1496204bb2122fbf.tar.gz
openembedded-core-e0dbcdc2ca0b05b6b062a0ec1496204bb2122fbf.tar.bz2
glide.bbclass: Add class to easy Glide use
To use 'glide' this class does the integration and reduces code duplication. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/glide.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/glide.bbclass b/meta/classes/glide.bbclass
new file mode 100644
index 0000000..db42174
--- /dev/null
+++ b/meta/classes/glide.bbclass
@@ -0,0 +1,9 @@
+# Handle Glide Vendor Package Management use
+#
+# Copyright 2018 (C) O.S. Systems Software LTDA.
+
+DEPENDS_append = " glide-native"
+
+do_compile_prepend() {
+ ( cd ${B}/src/${GO_IMPORT} && glide install )
+}