aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTracy Narine <tracy.narine@arm.com>2024-02-22 15:54:14 +0000
committerTracy Narine <tracy.narine@arm.com>2024-02-22 15:56:40 +0000
commit5652e0ecbd245b7edec6247e6ba40ca77de9b688 (patch)
tree5d384891c6d56dc8962611273a7286f9ffffe6d1
parent68c60e93d445cc51bd9f650aa3489f57d2227e13 (diff)
downloadarmnn-5652e0ecbd245b7edec6247e6ba40ca77de9b688.tar.gz
IVGCVSW-8228 build-tool does not setup flatbuffer library if building only the onnx-parser
* flatbuffer download and build now triggered by onnx_parser parameter Signed-off-by: Tracy Narine <tracy.narine@arm.com> Change-Id: I3fc55df5f97b10d44e4b7042b05e4cd7c5a92d71
-rwxr-xr-xbuild-tool/scripts/setup-armnn.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/build-tool/scripts/setup-armnn.sh b/build-tool/scripts/setup-armnn.sh
index e5b4c2160b..6b87d6f6ea 100755
--- a/build-tool/scripts/setup-armnn.sh
+++ b/build-tool/scripts/setup-armnn.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright © 2022-2023 Arm Ltd and Contributors. All rights reserved.
+# Copyright © 2022-2024 Arm Ltd and Contributors. All rights reserved.
# SPDX-License-Identifier: MIT
#
@@ -420,7 +420,7 @@ if [ "$TARGET_ARCH" == "android64" ]; then
download_androidndk
fi
-if [ "$flag_tflite_classic_delegate" -eq 1 ] || [ "$flag_tflite_opaque_delegate" -eq 1 ] || [ "$flag_tflite_parser" -eq 1 ]; then
+if [ "$flag_onnx_parser" -eq 1 ] || [ "$flag_tflite_classic_delegate" -eq 1 ] || [ "$flag_tflite_opaque_delegate" -eq 1 ] || [ "$flag_tflite_parser" -eq 1 ]; then
download_flatbuffers
# Host build
@@ -431,7 +431,9 @@ if [ "$flag_tflite_classic_delegate" -eq 1 ] || [ "$flag_tflite_opaque_delegate"
build_flatbuffers 0
fi
- download_tensorflow
+ if [ "$flag_tflite_classic_delegate" -eq 1 ] || [ "$flag_tflite_opaque_delegate" -eq 1 ] || [ "$flag_tflite_parser" -eq 1 ]; then
+ download_tensorflow
+ fi
fi
if [ "$flag_tflite_parser" -eq 1 ]; then