* mobilenet_v2_1.0_224.tflite is also installed for using TFLite with ArmnnExamples
Signed-off-by: Hongmei Gou <a0271...@ti.com> --- ...sioned-library-for-armnnTfLiteParser.patch | 25 +++++++++++++++++ recipes-support/armnn/armnn_git.bbappend | 27 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 recipes-support/armnn/armnn/0011-Generate-versioned-library-for-armnnTfLiteParser.patch create mode 100644 recipes-support/armnn/armnn_git.bbappend diff --git a/recipes-support/armnn/armnn/0011-Generate-versioned-library-for-armnnTfLiteParser.patch b/recipes-support/armnn/armnn/0011-Generate-versioned-library-for-armnnTfLiteParser.patch new file mode 100644 index 0000000..a504aa7 --- /dev/null +++ b/recipes-support/armnn/armnn/0011-Generate-versioned-library-for-armnnTfLiteParser.patch @@ -0,0 +1,25 @@ +From 1f5670c6ef8669d7d25621d9c97d66178800dcf9 Mon Sep 17 00:00:00 2001 +From: Hongmei Gou <a0271...@ti.com> +Date: Tue, 17 Sep 2019 17:58:39 -0400 +Subject: [PATCH] Generate versioned library for armnnTfLiteParser + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Hongmei Gou <a0271...@ti.com> +--- + src/armnnTfLiteParser/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/armnnTfLiteParser/CMakeLists.txt b/src/armnnTfLiteParser/CMakeLists.txt +index 17d4cf68..c83f7059 100755 +--- a/src/armnnTfLiteParser/CMakeLists.txt ++++ b/src/armnnTfLiteParser/CMakeLists.txt +@@ -24,4 +24,5 @@ if(BUILD_TF_LITE_PARSER) + install(TARGETS armnnTfLiteParser + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) ++ set_target_properties(armnnTfLiteParser PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) + endif() +-- +2.17.1 + diff --git a/recipes-support/armnn/armnn_git.bbappend b/recipes-support/armnn/armnn_git.bbappend new file mode 100644 index 0000000..26dfdad --- /dev/null +++ b/recipes-support/armnn/armnn_git.bbappend @@ -0,0 +1,27 @@ +PR_append = ".tisdk0" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " \ + file://0011-Generate-versioned-library-for-armnnTfLiteParser.patch \ + https://storage.googleapis.com/mobilenet_v2/checkpoints/mobilenet_v2_1.0_224.tgz;name=mobilenetv2;subdir=${WORKDIR}/tfmodel;destsuffix=tfmodel \ +" + +SRC_URI[mobilenetv2.md5sum] = "519bba7052fd279c66d2a28dc3f51f46" +SRC_URI[mobilenetv2.sha256sum] = "318084bc1b63d6d7b854553e09cdf77078b1c0168be27c59a0d44253b5ed49dc" + +DEPENDS += " \ + tensorflow-lite \ + flatbuffers \ +" + +EXTRA_OECMAKE += " \ + -DBUILD_TF_LITE_PARSER=1 \ + -DTF_LITE_GENERATED_PATH=${STAGING_DIR_HOST}${includedir}/tensorflow/contrib/lite/schema \ + -DFLATBUFFERS_ROOT=${STAGING_DIR_HOST}${includedir}/flatbuffers \ + -DFLATBUFFERS_LIBRARY=${STAGING_DIR_HOST}${libdir}/libflatbuffers.a \ +" + +do_install_append() { + cp ${WORKDIR}/tfmodel/mobilenet_v2_1.0_224.tflite ${D}${TESTVECS_INSTALL_DIR}/models +} -- 2.17.1 _______________________________________________ meta-arago mailing list meta-arago@arago-project.org http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago