From ef1f50399ddca17285ed3f9dd5c9e35a4646df31 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 17 Feb 2017 15:22:54 -0800 Subject: [PATCH] Add a check if hexagon is unlocked into a script to build tf runtime with hexagon Change: 147886830 --- .../makefile/samples/build_and_run_inception_hexagon.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tensorflow/contrib/makefile/samples/build_and_run_inception_hexagon.sh b/tensorflow/contrib/makefile/samples/build_and_run_inception_hexagon.sh index 7201ea1154a..3d72247cd87 100755 --- a/tensorflow/contrib/makefile/samples/build_and_run_inception_hexagon.sh +++ b/tensorflow/contrib/makefile/samples/build_and_run_inception_hexagon.sh @@ -51,6 +51,11 @@ if [[ "${BUILD_ONLY}" != "true" ]]; then echo "adb is not in your path ${PATH}." exit 1 fi + if ! adb shell ls /system/lib/rfsa/adsp/testsig* >/dev/null 2>&1; then + echo "test signature not found. Unlock your phone first" + echo "See ${QUALCOMM_SDK}/tools/elfsigner/README.txt" + exit 1 + fi fi SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"