From 5652e0ecbd245b7edec6247e6ba40ca77de9b688 Mon Sep 17 00:00:00 2001 From: Tracy Narine Date: Thu, 22 Feb 2024 15:54:14 +0000 Subject: 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 Change-Id: I3fc55df5f97b10d44e4b7042b05e4cd7c5a92d71 --- build-tool/scripts/setup-armnn.sh | 8 +++++--- 1 file 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 -- cgit v1.2.1