aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2019-02-14 06:51:10 -0500
committerHongxu Jia <hongxu.jia@windriver.com>2019-08-09 15:33:03 +0800
commit7288d6b78fa864d0ac5af67500c83ed359d77ac3 (patch)
treeb490086eedfd081f67f12b067603c477270e19a5 /recipes-devtools
parent38a861f06f39dadb72b6e06680897e802af19dd7 (diff)
downloadmeta-tensorflow-7288d6b78fa864d0ac5af67500c83ed359d77ac3.tar.gz
meta-tensorflow-7288d6b78fa864d0ac5af67500c83ed359d77ac3.tar.bz2
meta-tensorflow-7288d6b78fa864d0ac5af67500c83ed359d77ac3.zip
bazel-native: add version 0.21.0
It is the build system of tensorflow. The build steps refers: https://docs.bazel.build/versions/master/install-compile-source.html Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/bazel/bazel-native_0.21.0.bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-devtools/bazel/bazel-native_0.21.0.bb b/recipes-devtools/bazel/bazel-native_0.21.0.bb
new file mode 100644
index 0000000..122e507
--- /dev/null
+++ b/recipes-devtools/bazel/bazel-native_0.21.0.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "Bazel build and test tool"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI[md5sum] = "8c8240b178a35c0f3c1bc03017550270"
+SRC_URI[sha256sum] = "6ccb831e683179e0cfb351cb11ea297b4db48f9eab987601c038aa0f83037db4"
+
+SRC_URI = "https://github.com/bazelbuild/bazel/releases/download/${PV}/bazel-${PV}-dist.zip"
+
+inherit native
+
+INHIBIT_SYSROOT_STRIP = "1"
+
+DEPENDS = "coreutils-native \
+ zip-native \
+ openjdk-8-native \
+ "
+
+S="${WORKDIR}"
+
+do_compile () {
+ export JAVA_HOME="${RECIPE_SYSROOT_NATIVE}/usr/lib/jvm/openjdk-8-native"
+ TMPDIR="${TOPDIR}/bazel" \
+ VERBOSE=yes \
+ EXTRA_BAZEL_ARGS="--distdir=${DL_DIR}" \
+ ./compile.sh
+}
+
+do_install () {
+ install -d ${D}${bindir}
+ install -m 0755 ${S}/output/bazel ${D}${bindir}
+ create_cmdline_wrapper ${D}/${bindir}/bazel \$BAZEL_ARGS
+}