aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2020-04-09 16:57:53 +0800
committerHongxu Jia <hongxu.jia@windriver.com>2020-04-10 10:19:55 +0800
commit0ae815fb676baef0c53653198e4df9d6d23b21f4 (patch)
treec8a240cd494983a5f0e3a08dd156e01c876b559f
parent4e73308ad52f04151dd889178738206538b7b2eb (diff)
downloadmeta-tensorflow-0ae815fb676baef0c53653198e4df9d6d23b21f4.tar.gz
meta-tensorflow-0ae815fb676baef0c53653198e4df9d6d23b21f4.tar.bz2
meta-tensorflow-0ae815fb676baef0c53653198e4df9d6d23b21f4.zip
classes/bazel.bbclass: fix cannot connect to bazel server
If [batch mode is] set, Bazel will be run as just a client process without a server, instead of in the standard client/server mode. [1] It is not necessary to shutdown a bazel server in batch mode. [1] https://docs.bazel.build/versions/master/user-manual.html Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--classes/bazel.bbclass1
-rw-r--r--recipes-framework/tensorflow/tensorboard_1.12.2.bb2
-rw-r--r--recipes-framework/tensorflow/tensorflow-estimator_1.13.bb2
-rw-r--r--recipes-framework/tensorflow/tensorflow-native_1.13.0.bb2
-rw-r--r--recipes-framework/tensorflow/tensorflow_1.13.0.bb2
5 files changed, 1 insertions, 8 deletions
diff --git a/classes/bazel.bbclass b/classes/bazel.bbclass
index 46e1658..02438b0 100644
--- a/classes/bazel.bbclass
+++ b/classes/bazel.bbclass
@@ -8,6 +8,7 @@ BAZEL_OUTPUTBASE_DIR ?= "${BAZEL_DIR}/output_base"
export BAZEL_ARGS="--output_user_root=${BAZEL_DIR}/user_root \
--output_base=${BAZEL_OUTPUTBASE_DIR} \
--bazelrc=${S}/bazelrc \
+ --batch \
"
export JAVA_HOME="${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native"
diff --git a/recipes-framework/tensorflow/tensorboard_1.12.2.bb b/recipes-framework/tensorflow/tensorboard_1.12.2.bb
index efa44a1..f0b53aa 100644
--- a/recipes-framework/tensorflow/tensorboard_1.12.2.bb
+++ b/recipes-framework/tensorflow/tensorboard_1.12.2.bb
@@ -52,8 +52,6 @@ do_compile () {
--crosstool_top=@local_config_yocto_compiler//:toolchain \
--verbose_failures \
//tensorboard/pip_package:build_pip_package
-
- ${BAZEL} shutdown
}
do_install () {
diff --git a/recipes-framework/tensorflow/tensorflow-estimator_1.13.bb b/recipes-framework/tensorflow/tensorflow-estimator_1.13.bb
index dd6e1f6..f3a5098 100644
--- a/recipes-framework/tensorflow/tensorflow-estimator_1.13.bb
+++ b/recipes-framework/tensorflow/tensorflow-estimator_1.13.bb
@@ -32,8 +32,6 @@ do_compile () {
--python_path="${PYTHON}" \
//tensorflow_estimator/tools/pip_package:build_pip_package
- ${BAZEL} shutdown
-
PYTHON_BIN_PATH="${PYTHON}" \
${S}/bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package \
${WORKDIR}/estimator_pip
diff --git a/recipes-framework/tensorflow/tensorflow-native_1.13.0.bb b/recipes-framework/tensorflow/tensorflow-native_1.13.0.bb
index 076bdc0..8967768 100644
--- a/recipes-framework/tensorflow/tensorflow-native_1.13.0.bb
+++ b/recipes-framework/tensorflow/tensorflow-native_1.13.0.bb
@@ -18,8 +18,6 @@ do_compile () {
--verbose_explanations --verbose_failures \
--verbose_failures \
//tensorflow/tools/pip_package:build_pip_package
-
- ${BAZEL} shutdown
}
do_install() {
diff --git a/recipes-framework/tensorflow/tensorflow_1.13.0.bb b/recipes-framework/tensorflow/tensorflow_1.13.0.bb
index 551c9c8..c6d7852 100644
--- a/recipes-framework/tensorflow/tensorflow_1.13.0.bb
+++ b/recipes-framework/tensorflow/tensorflow_1.13.0.bb
@@ -98,8 +98,6 @@ do_compile () {
tensorflow/examples/label_image/... \
//tensorflow/lite/examples/label_image:label_image \
${TF_TARGET_EXTRA}
-
- ${BAZEL} shutdown
}
do_install() {