From: 이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Wed, 3 Jul 2019 07:27:03 +0000 (+0900) Subject: Enable tflite_loader on gbs build (#5536) X-Git-Tag: submit/tizen/20190809.050447~606 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9be746b30382b4a32259766745253f55bd735cac;p=platform%2Fcore%2Fml%2Fnnfw.git Enable tflite_loader on gbs build (#5536) - Note that tizen does not have flatbuffer repo - This patch enables tflite_loader build on gbs - flatbuffer source commit : 1f5eae5d6a135 Signed-off-by: Chunseok Lee --- diff --git a/cmake/options/options_armv7l-tizen.cmake b/cmake/options/options_armv7l-tizen.cmake index 0dc2be7..ca35126 100644 --- a/cmake/options/options_armv7l-tizen.cmake +++ b/cmake/options/options_armv7l-tizen.cmake @@ -6,4 +6,5 @@ option(BUILD_ANDROID_TFLITE "Enable android support for TensorFlow Lite" OFF) option(DOWNLOAD_ARMCOMPUTE "Download ARM Compute source" ON) option(DOWNLOAD_NEON2SSE "Download NEON2SSE library source" OFF) option(DOWNLOAD_NNPACK "Download NNPACK library source" OFF) -option(BUILD_TFLITE_LOADER "Build tensorflow lite file loader" OFF) +option(BUILD_TFLITE_LOADER "Build tensorflow lite file loader" ON) +option(BUILD_TFLITE_LOADER_TEST_TOOL "Build tflite loader testing tool" OFF) diff --git a/packaging/flatbuffers.tar.gz b/packaging/flatbuffers.tar.gz new file mode 100644 index 0000000..090b330 Binary files /dev/null and b/packaging/flatbuffers.tar.gz differ diff --git a/packaging/nnfw.spec b/packaging/nnfw.spec index 6508d79..e0d5853 100644 --- a/packaging/nnfw.spec +++ b/packaging/nnfw.spec @@ -7,6 +7,7 @@ License: Apache-2.0 and MIT Source0: %{name}-%{version}.tar.gz Source1: %{name}.manifest +Source1001: flatbuffers.tar.gz %ifarch arm armv7l aarch64 BuildRequires: cmake @@ -56,6 +57,9 @@ NNFW test rpm. It does not depends on nnfw rpm since it contains nnfw runtime. %prep %setup -q cp %{SOURCE1} . +cp %{SOURCE1001} ./externals/. +cd ./externals +tar -xf %{SOURCE1001} %build %ifarch arm armv7l aarch64