Add a check if hexagon is unlocked into a script to build tf runtime with hexagon

Change: 147886830
This commit is contained in:
A. Unique TensorFlower 2017-02-17 15:22:54 -08:00 committed by TensorFlower Gardener
parent bc082fb6fb
commit ef1f50399d

View File

@ -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)"