Skip to contentSkip to conversation

Add tensorflow-lite

PATCH Superseded Hongmei Gou 3 participants 10 messages Aug 21, 2019 – Aug 22, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Add tensorflow-lite

This patch set starts from the baseline recipe at
https://github.com/nnsuite/meta-neural-network/tree/master/recipes-tensorflow/tensorflow-lite,

The major changes are listed below:
1. Ported/created recipes for all the dependencies required for tensorflow-lite 1.12
2. Installed minimal and benchmark_model binaries which have been built with the original Makefile
3. Patched Makefile to add label_image and installed the example binary and files (model/image/labels.txt) needed to run the example

Hongmei Gou (7):
tensorflow-lite: add version 1.12
flatbuffers: add version 1.10.0 needed by tensorflow-lite
tensorflow-lite-libeigen: add the version for commit fd6845384b86 tensorflow-lite-*: add other dependencies for tensorflow-lite 1.12
tensorflow-lite: define dependencies via DEPENDS
tensorflow-lite: install minimal and benchmark_model examples, and all
.a files
tensorflow-lite: add label_image example and install the files to run
the example

 .../flatbuffers/flatbuffers_1.10.0.bb         | 34 +++++++
 ...the-path-for-the-depedencies-built-v.patch | 50 ++++++++++
 ...002-Makefile-add-label_image-example.patch | 89 ++++++++++++++++++
 ...odification-for-tflite-1.12-to-eigen.patch | 13 +++
 .../files/tensorflow-lite.pc.in               |  6 ++
 .../tensorflow-lite-absl_git.bb               | 16 ++++
 .../tensorflow-lite-farmhash_git.bb           | 14 +++
 .../tensorflow-lite-fft2d_1.0.bb              | 14 +++
 .../tensorflow-lite-gemmlowp_git.bb           | 16 ++++
 .../tensorflow-lite-libeigen_git.bb           | 20 ++++
 .../tensorflow-lite-neon-2-sse_git.bb         | 14 +++
 .../tensorflow-lite/tensorflow-lite_1.12.bb   | 93 +++++++++++++++++++
 12 files changed, 379 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/flatbuffers/flatbuffers_1.10.0.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/files/0001-Makefile-update-the-path-for-the-depedencies-built-v.patch
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/files/0002-Makefile-add-label_image-example.patch
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/files/apply-modification-for-tflite-1.12-to-eigen.patch
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/files/tensorflow-lite.pc.in
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-absl_git.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-farmhash_git.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-fft2d_1.0.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-gemmlowp_git.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-libeigen_git.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-neon-2-sse_git.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/7 tensorflow-lite: add version 1.12

* Source of the recipe: https://github.com/nnsuite/meta-neural-network/tree/master/recipes-tensorflow/tensorflow-lite
* Updated checksums for NEON2SSE from the baseline

---
 ...odification-for-tflite-1.12-to-eigen.patch |  13 ++
 .../files/tensorflow-lite.pc.in               |   6 +
 .../tensorflow-lite/tensorflow-lite_1.12.bb   | 124 ++++++++++++++++++
 3 files changed, 143 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/files/apply-modification-for-tflite-1.12-to-eigen.patch
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/files/tensorflow-lite.pc.in
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb
meta-arago-extras/recipes-support/tensorflow-lite/files/apply-modification-for-tflite-1.12-to-eigen.patch new file +13 -0
new file mode 100644
index 00000000..1a8de78b
@@ -0,0 +1,13 @@
+diff --git a/tensorflow/contrib/lite/tools/make/downloads/eigen/Eigen/src/Core/arch/NEON/Complex.h b/tensorflow/contrib/lite/tools/make/downloads/eigen/Eigen/src/Core/arch/NEON/Complex.h
+index 306a309beb..4527a64c91 100644
+--- a/tensorflow/contrib/lite/tools/make/downloads/eigen/Eigen/src/Core/arch/NEON/Complex.h
++++ b/tensorflow/contrib/lite/tools/make/downloads/eigen/Eigen/src/Core/arch/NEON/Complex.h
+@@ -295,7 +295,7 @@ ptranspose(PacketBlock<Packet2cf,2>& kernel) {
+   static uint64x2_t p2ul_CONJ_XOR = {0x0, 0x8000000000000000};
+ #else
+   const uint64_t  p2ul_conj_XOR_DATA[] = { 0x0, 0x8000000000000000 };
+-  static uint64x2_t p2ul_CONJ_XOR = vld1q_u64( p2ul_conj_XOR_DATA );
++  static uint64x2_t p2ul_CONJ_XOR;// = vld1q_u64( p2ul_conj_XOR_DATA ); - Removed by script
+ #endif
+ 
+ struct Packet1cd
meta-arago-extras/recipes-support/tensorflow-lite/files/tensorflow-lite.pc.in new file +6 -0
new file mode 100644
index 00000000..44afd0ee
@@ -0,0 +1,6 @@
+ Name: tensorflow lite
+ Description: tensorflow lite static library
+ Version: @version@
+ Requires:
+ Libs: -L@libdir@ -ltensorflow-lite
+ Cflags: -I@includedir@
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb new file +124 -0

124 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/7 flatbuffers: add version 1.10.0 needed by tensorflow-lite

In reply to Hongmei Gou
---
 .../flatbuffers/flatbuffers_1.10.0.bb         | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/flatbuffers/flatbuffers_1.10.0.bb
meta-arago-extras/recipes-devtools/flatbuffers/flatbuffers_1.10.0.bb new file +34 -0
new file mode 100644
index 00000000..452e1e65
@@ -0,0 +1,34 @@
+SUMMARY = "Memory Efficient Serialization Library"
+HOMEPAGE = "https://github.com/google/flatbuffers"
+SECTION = "console/tools"
+LICENSE = "Apache-2.0"
+
+PACKAGE_BEFORE_PN = "${PN}-compiler"
+
+RDEPENDS_${PN}-compiler = "${PN}"
+RDEPENDS_${PN}-dev += "${PN}-compiler"
+
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a873c5645c184d51e0f9b34e1d7cf559"
+
+SRCREV = "c0698cc33f1e534bb59c455909b88cc2726089af"
+
+SRC_URI = "git://github.com/google/flatbuffers.git"
+
+# Make sure C++11 is used, required for example for GCC 4.9
+CXXFLAGS += "-std=c++11"
+BUILD_CXXFLAGS += "-std=c++11"
+
+# BUILD_TYPE=Release is required, otherwise flatc is not installed
+EXTRA_OECMAKE += "\
+    -DCMAKE_BUILD_TYPE=Release \
+    -DFLATBUFFERS_BUILD_TESTS=OFF \    
+    -DFLATBUFFERS_BUILD_SHAREDLIB=ON \
+"
+
+inherit cmake
+
+S = "${WORKDIR}/git"
+
+FILES_${PN}-compiler = "${bindir}"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
#3 lore raw

PATCH 3/7 tensorflow-lite-libeigen: add the version for commit fd6845384b86

In reply to Hongmei Gou

* This commit is required by tensorflow-lite version 1.12, which cannot be built with either libeigen_3.3.5.bb or libeigen_3.3.7.bb in meta-oe

---
 .../tensorflow-lite-libeigen_git.bb           | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-libeigen_git.bb
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-libeigen_git.bb new file +20 -0
new file mode 100644
index 00000000..a4bcb76f
@@ -0,0 +1,20 @@
+DESCRIPTION = "Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms."
+AUTHOR = "BenoîJacob and GaëGuennebaud and others"
+HOMEPAGE = "http://eigen.tuxfamily.org/"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://COPYING.MPL2;md5=815ca599c9df247a0c7f619bab123dad"
+
+SRC_URI = "http://bitbucket.org/eigen/eigen/get/fd6845384b86.tar.gz;downloadfilename=${BP}.tar.gz"
+SRC_URI[md5sum] = "4c884968ede816a84c70e2cd2c81de8d"
+SRC_URI[sha256sum] = "d956415d784fa4e42b6a2a45c32556d6aec9d0a3d8ef48baee2522ab762556a9"
+
+S = "${WORKDIR}/eigen-eigen-fd6845384b86"
+
+inherit cmake
+
+FILES_${PN} = "${libdir}"
+FILES_${PN}-dev = "${includedir} ${datadir}/eigen3/cmake ${datadir}/cmake/Modules ${datadir}/pkgconfig"
+
+# ${PN} is empty so we need to tweak -dev and -dbg package dependencies
+RDEPENDS_${PN}-dev = ""
+RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
Signature · 1 line
2.17.1
#4 lore raw

PATCH 4/7 tensorflow-lite-*: add other dependencies for tensorflow-lite 1.12

In reply to Hongmei Gou
---
 .../tensorflow-lite/tensorflow-lite-absl_git.bb  | 16 ++++++++++++++++
 .../tensorflow-lite-farmhash_git.bb              | 14 ++++++++++++++
 .../tensorflow-lite/tensorflow-lite-fft2d_1.0.bb | 14 ++++++++++++++
 .../tensorflow-lite-gemmlowp_git.bb              | 16 ++++++++++++++++
 .../tensorflow-lite-neon-2-sse_git.bb            | 14 ++++++++++++++
 5 files changed, 74 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-absl_git.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-farmhash_git.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-fft2d_1.0.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-gemmlowp_git.bb
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-neon-2-sse_git.bb
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-absl_git.bb new file +16 -0
new file mode 100644
index 00000000..8d02958a
@@ -0,0 +1,16 @@
+DESCRIPTION = "Abseil C++ Common Libraries"
+HOMEPAGE = "https://github.com/abseil/abseil-cpp"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=917cc5763a741e915bf7f2cc55830c17"
+
+SRC_URI = "git://github.com/abseil/abseil-cpp.git"
+SRCREV  = "48cd2c3f351ff188bc85684b84a91b6e6d17d896"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+do_install() {
+    install -d ${D}${datadir}/absl
+    cp -r ${S}/absl ${D}${datadir}/absl
+}
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-farmhash_git.bb new file +14 -0
new file mode 100644
index 00000000..cd0bb14c
@@ -0,0 +1,14 @@
+DESCRIPTION = "FarmHash, a family of hash functions"
+HOMEPAGE = "https://github.com/google/farmhash"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7dfaa79e2b070897e495fec386e3acfc"
+
+SRC_URI = "git://github.com/google/farmhash.git"
+SRCREV  = "816a4ae622e964763ca0862d9dbd19324a1eaf45"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/farmhash
+    cp -r ${S}/src ${D}${datadir}/farmhash
+}
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-fft2d_1.0.bb new file +14 -0
new file mode 100644
index 00000000..5a01a2b2
@@ -0,0 +1,14 @@
+DESCRIPTION = "General Purpose FFT (Fast Fourier/Cosine/Sine Transform) Package"
+LICENSE = "FFT-License"
+LIC_FILES_CHKSUM = "file://readme.txt;beginline=140;endline=145;md5=62461d28fdc0c056c098f3fb2f015799"
+
+SRC_URI = "https://mirror.bazel.build/www.kurims.kyoto-u.ac.jp/~ooura/fft.tgz;downloadfilename=${BP}.tgz"
+SRC_URI[md5sum] = "4255dd8a74949d123216b1ab91520469"
+SRC_URI[sha256sum] = "52bb637c70b971958ec79c9c8752b1df5ff0218a4db4510e60826e0cb79b5296"
+
+S = "${WORKDIR}/fft"
+
+do_install() {
+    install -d ${D}${datadir}/fft2d
+    cp -r ${S}/* ${D}${datadir}/fft2d
+}
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-gemmlowp_git.bb new file +16 -0
new file mode 100644
index 00000000..9ce38486
@@ -0,0 +1,16 @@
+DESCRIPTION = "gemmlowp: a small self-contained low-precision GEMM library"
+HOMEPAGE = "https://github.com/google/gemmlowp"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI = "git://github.com/google/gemmlowp.git"
+SRCREV  = "38ebac7b059e84692f53e5938f97a9943c120d98"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/gemmlowp
+    cp -r ${S}/* ${D}${datadir}/gemmlowp
+}
+
+INSANE_SKIP_${PN} = "file-rdeps"
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-neon-2-sse_git.bb new file +14 -0
new file mode 100644
index 00000000..a93bf1fd
@@ -0,0 +1,14 @@
+DESCRIPTION = "Header file simplifying ARM->IA32 porting"
+HOMEPAGE = "https://github.com/intel/ARM_NEON_2_x86_SSE"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b4fdfcb48f273d192333c498d75fa26f"
+
+SRC_URI = "git://github.com/intel/ARM_NEON_2_x86_SSE.git"
+SRCREV  = "3057bb91b99bae9c7fbdf8710c032d462ca10051"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/neon-2-sse
+    cp -r ${S}/*.h ${D}${datadir}/neon-2-sse
+}
Signature · 1 line
2.17.1
#5 lore raw

Re: [EXTERNAL] [PATCH 4/7] tensorflow-lite-*: add other dependencies for tensorflow-lite 1.12

Why do we need to prefix all of these with "tensorflow-lite"?

Quoted 118 lines · Hongmei Gou
---
  .../tensorflow-lite/tensorflow-lite-absl_git.bb  | 16 ++++++++++++++++
  .../tensorflow-lite-farmhash_git.bb              | 14 ++++++++++++++
  .../tensorflow-lite/tensorflow-lite-fft2d_1.0.bb | 14 ++++++++++++++
  .../tensorflow-lite-gemmlowp_git.bb              | 16 ++++++++++++++++
  .../tensorflow-lite-neon-2-sse_git.bb            | 14 ++++++++++++++
  5 files changed, 74 insertions(+)

create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-absl_git.bb create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-farmhash_git.bb create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-fft2d_1.0.bb create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-gemmlowp_git.bb create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-neon-2-sse_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-absl_git.bb new file +16 -0
new file mode 100644
index 00000000..8d02958a
@@ -0,0 +1,16 @@
+DESCRIPTION = "Abseil C++ Common Libraries"
+HOMEPAGE = "https://github.com/abseil/abseil-cpp"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=917cc5763a741e915bf7f2cc55830c17"
+
+SRC_URI = "git://github.com/abseil/abseil-cpp.git"
+SRCREV  = "48cd2c3f351ff188bc85684b84a91b6e6d17d896"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+do_install() {
+    install -d ${D}${datadir}/absl
+    cp -r ${S}/absl ${D}${datadir}/absl
+}
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-farmhash_git.bb new file +14 -0
new file mode 100644
index 00000000..cd0bb14c
@@ -0,0 +1,14 @@
+DESCRIPTION = "FarmHash, a family of hash functions"
+HOMEPAGE = "https://github.com/google/farmhash"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7dfaa79e2b070897e495fec386e3acfc"
+
+SRC_URI = "git://github.com/google/farmhash.git"
+SRCREV  = "816a4ae622e964763ca0862d9dbd19324a1eaf45"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/farmhash
+    cp -r ${S}/src ${D}${datadir}/farmhash
+}
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-fft2d_1.0.bb new file +14 -0
new file mode 100644
index 00000000..5a01a2b2
@@ -0,0 +1,14 @@
+DESCRIPTION = "General Purpose FFT (Fast Fourier/Cosine/Sine Transform) Package"
+LICENSE = "FFT-License"
+LIC_FILES_CHKSUM = "file://readme.txt;beginline=140;endline=145;md5=62461d28fdc0c056c098f3fb2f015799"
+
+SRC_URI = "https://mirror.bazel.build/www.kurims.kyoto-u.ac.jp/~ooura/fft.tgz;downloadfilename=${BP}.tgz"
+SRC_URI[md5sum] = "4255dd8a74949d123216b1ab91520469"
+SRC_URI[sha256sum] = "52bb637c70b971958ec79c9c8752b1df5ff0218a4db4510e60826e0cb79b5296"
+
+S = "${WORKDIR}/fft"
+
+do_install() {
+    install -d ${D}${datadir}/fft2d
+    cp -r ${S}/* ${D}${datadir}/fft2d
+}
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-gemmlowp_git.bb new file +16 -0
new file mode 100644
index 00000000..9ce38486
@@ -0,0 +1,16 @@
+DESCRIPTION = "gemmlowp: a small self-contained low-precision GEMM library"
+HOMEPAGE = "https://github.com/google/gemmlowp"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRC_URI = "git://github.com/google/gemmlowp.git"
+SRCREV  = "38ebac7b059e84692f53e5938f97a9943c120d98"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/gemmlowp
+    cp -r ${S}/* ${D}${datadir}/gemmlowp
+}
+
+INSANE_SKIP_${PN} = "file-rdeps"
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-neon-2-sse_git.bb new file +14 -0
new file mode 100644
index 00000000..a93bf1fd
@@ -0,0 +1,14 @@
+DESCRIPTION = "Header file simplifying ARM->IA32 porting"
+HOMEPAGE = "https://github.com/intel/ARM_NEON_2_x86_SSE"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b4fdfcb48f273d192333c498d75fa26f"
+
+SRC_URI = "git://github.com/intel/ARM_NEON_2_x86_SSE.git"
+SRCREV  = "3057bb91b99bae9c7fbdf8710c032d462ca10051"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/neon-2-sse
+    cp -r ${S}/*.h ${D}${datadir}/neon-2-sse
+}
#6 lore raw

Re: [EXTERNAL] [PATCH 4/7] tensorflow-lite-*: add other dependencies for tensorflow-lite 1.12

Quoted 8 lines

-----Original Message-----
From: Stiffler, Jacob
Sent: Thursday, August 22, 2019 10:22 AM
To: Gou, Hongmei; [email protected]
Subject: Re: [EXTERNAL] [meta-arago] [PATCH 4/7] tensorflow-lite-*: add other dependencies for tensorflow-lite 1.12

Why do we need to prefix all of these with "tensorflow-lite"?

As these dependencies are specific to tensorflow-lite to get the source packages, and therefore, I put them under the same folder of " tensorflow-lite" with the prefix. This is also referring to the naming convention for armnn dependencies:
http://arago-project.org/git/?p=meta-arago.git;a=tree;f=meta-arago-extras/recipes-support/armnn;h=3e56a74bc783606d06fa478ea1516dd4d2375853;hb=ddb08715bf11d45886106e98ee81cbf1b3bda802

If this is not the common practice, I can create separate folders for these dependencies under recipes-support, and remove the "tensorflow-lite" prefix.

Quoted 150 lines · Hongmei Gou
Quoted 9 lines
---
  .../tensorflow-lite/tensorflow-lite-absl_git.bb  | 16 ++++++++++++++++
  .../tensorflow-lite-farmhash_git.bb              | 14 ++++++++++++++
  .../tensorflow-lite/tensorflow-lite-fft2d_1.0.bb | 14 ++++++++++++++
  .../tensorflow-lite-gemmlowp_git.bb              | 16 ++++++++++++++++
  .../tensorflow-lite-neon-2-sse_git.bb            | 14 ++++++++++++++
  5 files changed, 74 insertions(+)

create mode 100644 meta-arago-extras/recipes-support/tensorflow-

lite/tensorflow-lite-absl_git.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-support/tensorflow-

lite/tensorflow-lite-farmhash_git.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-support/tensorflow-

lite/tensorflow-lite-fft2d_1.0.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-support/tensorflow-

lite/tensorflow-lite-gemmlowp_git.bb

Quoted 1 line

create mode 100644 meta-arago-extras/recipes-support/tensorflow-

lite/tensorflow-lite-neon-2-sse_git.bb

Review

Quoted 2 lines
(quoted diff) +0 -0

lite-absl_git.bb b/meta-arago-extras/recipes-support/tensorflow- lite/tensorflow-lite-absl_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-

Quoted 4 lines

new file mode 100644
index 00000000..8d02958a

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +0 -0

absl_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 4

Quoted 5 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +4 -0
@@ -0,0 +1,16 @@
+DESCRIPTION = "Abseil C++ Common Libraries"
+HOMEPAGE = "https://github.com/abseil/abseil-cpp"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=917cc5763a741e915bf7f2cc55830c17"

Review

Quoted 13 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +12 -0
+
+SRC_URI = "git://github.com/abseil/abseil-cpp.git"
+SRCREV  = "48cd2c3f351ff188bc85684b84a91b6e6d17d896"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+do_install() {
+    install -d ${D}${datadir}/absl
+    cp -r ${S}/absl ${D}${datadir}/absl
+}
(quoted diff) +0 -0

lite-farmhash_git.bb b/meta-arago-extras/recipes-support/tensorflow- lite/tensorflow-lite-farmhash_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-

Quoted 4 lines

new file mode 100644
index 00000000..cd0bb14c

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +0 -0

farmhash_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 4

Quoted 5 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +4 -0
@@ -0,0 +1,14 @@
+DESCRIPTION = "FarmHash, a family of hash functions"
+HOMEPAGE = "https://github.com/google/farmhash"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=7dfaa79e2b070897e495fec386e3acfc"

Review

Quoted 11 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +10 -0
+
+SRC_URI = "git://github.com/google/farmhash.git"
+SRCREV  = "816a4ae622e964763ca0862d9dbd19324a1eaf45"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/farmhash
+    cp -r ${S}/src ${D}${datadir}/farmhash
+}
(quoted diff) +0 -0

lite-fft2d_1.0.bb b/meta-arago-extras/recipes-support/tensorflow- lite/tensorflow-lite-fft2d_1.0.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-

Quoted 4 lines

new file mode 100644
index 00000000..5a01a2b2

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +0 -0

fft2d_1.0.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 1

Quoted 2 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +1 -0
@@ -0,0 +1,14 @@
+DESCRIPTION = "General Purpose FFT (Fast Fourier/Cosine/Sine

Transform) Package"

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 3

Quoted 2 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +2 -0
+LICENSE = "FFT-License"
+LIC_FILES_CHKSUM =

"file://readme.txt;beginline=140;endline=145;md5=62461d28fdc0c056c098f3 fb2f015799"

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 5

Quoted 2 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +2 -0
+
+SRC_URI = "https://mirror.bazel.build/www.kurims.kyoto-

u.ac.jp/~ooura/fft.tgz;downloadfilename=${BP}.tgz"

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 7

Quoted 2 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +2 -0
+SRC_URI[md5sum] = "4255dd8a74949d123216b1ab91520469"
+SRC_URI[sha256sum] =

"52bb637c70b971958ec79c9c8752b1df5ff0218a4db4510e60826e0cb79b5296"

Review

Quoted 8 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +7 -0
+
+S = "${WORKDIR}/fft"
+
+do_install() {
+    install -d ${D}${datadir}/fft2d
+    cp -r ${S}/* ${D}${datadir}/fft2d
+}
(quoted diff) +0 -0

lite-gemmlowp_git.bb b/meta-arago-extras/recipes-support/tensorflow- lite/tensorflow-lite-gemmlowp_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-

Quoted 4 lines

new file mode 100644
index 00000000..9ce38486

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +0 -0

gemmlowp_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 1

Quoted 2 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +1 -0
@@ -0,0 +1,16 @@
+DESCRIPTION = "gemmlowp: a small self-contained low-precision GEMM

library"

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 4

Quoted 3 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +3 -0
+HOMEPAGE = "https://github.com/google/gemmlowp"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

Review

Quoted 13 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +12 -0
+
+SRC_URI = "git://github.com/google/gemmlowp.git"
+SRCREV  = "38ebac7b059e84692f53e5938f97a9943c120d98"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/gemmlowp
+    cp -r ${S}/* ${D}${datadir}/gemmlowp
+}
+
+INSANE_SKIP_${PN} = "file-rdeps"
(quoted diff) +0 -0

lite-neon-2-sse_git.bb b/meta-arago-extras/recipes-support/tensorflow- lite/tensorflow-lite-neon-2-sse_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite-

Quoted 4 lines

new file mode 100644
index 00000000..a93bf1fd

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +0 -0

neon-2-sse_git.bb

meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- line 4

Quoted 5 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +4 -0
@@ -0,0 +1,14 @@
+DESCRIPTION = "Header file simplifying ARM->IA32 porting"
+HOMEPAGE = "https://github.com/intel/ARM_NEON_2_x86_SSE"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=b4fdfcb48f273d192333c498d75fa26f"

Quoted 10 lines
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite- new file +10 -0
+
+SRC_URI = "git://github.com/intel/ARM_NEON_2_x86_SSE.git"
+SRCREV  = "3057bb91b99bae9c7fbdf8710c032d462ca10051"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${datadir}/neon-2-sse
+    cp -r ${S}/*.h ${D}${datadir}/neon-2-sse
+}
#7 lore raw

PATCH 5/7 tensorflow-lite: define dependencies via DEPENDS

In reply to Hongmei Gou

* Remove the step of downloading and copying the dependencies
* A few other changes: 1) replace AUTOREV with commit ID;
2) remove do_configure{} which is not needed; 3) remove installation for flatbuffers

---
 ...the-path-for-the-depedencies-built-v.patch | 50 +++++++++++++++
 .../tensorflow-lite/tensorflow-lite_1.12.bb   | 64 +++----------------
 2 files changed, 58 insertions(+), 56 deletions(-)
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/files/0001-Makefile-update-the-path-for-the-depedencies-built-v.patch
meta-arago-extras/recipes-support/tensorflow-lite/files/0001-Makefile-update-the-path-for-the-depedencies-built-v.patch new file +50 -0
new file mode 100644
index 00000000..58ff81ba
@@ -0,0 +1,50 @@
+From dfe8afa41f7f4bf2cb24853a1385e90da7fd6cc3 Mon Sep 17 00:00:00 2001
+From: Hongmei Gou <[email protected]>
+Date: Wed, 21 Aug 2019 17:31:53 -0400
+Subject: [PATCH] Makefile: update the path for the depedencies built via Yocto
+
+Upstream-Status: Inappropriate [applicable to Yocto build only]
+
+Signed-off-by: Hongmei Gou <[email protected]>
+---
+ tensorflow/contrib/lite/tools/make/Makefile | 17 ++++++++---------
+ 1 file changed, 8 insertions(+), 9 deletions(-)
+
+diff --git a/tensorflow/contrib/lite/tools/make/Makefile b/tensorflow/contrib/lite/tools/make/Makefile
+index 16012a3fb1..8b1b05b280 100644
+--- a/tensorflow/contrib/lite/tools/make/Makefile
++++ b/tensorflow/contrib/lite/tools/make/Makefile
+@@ -28,13 +28,12 @@ INCLUDES := \
+ -I. \
+ -I$(MAKEFILE_DIR)/../../../../../ \
+ -I$(MAKEFILE_DIR)/../../../../../../ \
+--I$(MAKEFILE_DIR)/downloads/ \
+--I$(MAKEFILE_DIR)/downloads/eigen \
+--I$(MAKEFILE_DIR)/downloads/absl \
+--I$(MAKEFILE_DIR)/downloads/gemmlowp \
+--I$(MAKEFILE_DIR)/downloads/neon_2_sse \
+--I$(MAKEFILE_DIR)/downloads/farmhash/src \
+--I$(MAKEFILE_DIR)/downloads/flatbuffers/include \
++-I$(DEPINC_DIR)/eigen3 \
++-I$(DEPINC_DIR)/flatbuffers/include \
++-I$(DEPDATA_DIR)/absl \
++-I$(DEPDATA_DIR)/gemmlowp \
++-I$(DEPDATA_DIR)/neon_2_sse \
++-I$(DEPDATA_DIR)/farmhash/src \
+ -I$(OBJDIR)
+ # This is at the end so any globally-installed frameworks like protobuf don't
+ # override local versions in the source tree.
+@@ -97,8 +96,8 @@ $(wildcard tensorflow/contrib/lite/kernels/*.c) \
+ $(wildcard tensorflow/contrib/lite/kernels/internal/*.c) \
+ $(wildcard tensorflow/contrib/lite/kernels/internal/optimized/*.c) \
+ $(wildcard tensorflow/contrib/lite/kernels/internal/reference/*.c) \
+-$(wildcard tensorflow/contrib/lite/tools/make/downloads/farmhash/src/farmhash.cc) \
+-$(wildcard tensorflow/contrib/lite/tools/make/downloads/fft2d/fftsg.c)
++$(wildcard $(DEPDATA_DIR)/farmhash/src/farmhash.cc) \
++$(wildcard $(DEPDATA_DIR)/fft2d/fftsg.c)
+ endif
+ # Remove any duplicates.
+ CORE_CC_ALL_SRCS := $(sort $(CORE_CC_ALL_SRCS))
+-- 
+2.17.1
+
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb +8 -56

97 lines not on this page · raw message

Signature · 1 line
2.17.1
#8 lore raw

PATCH 6/7 tensorflow-lite: install minimal and benchmark_model examples, and all .a files

In reply to Hongmei Gou
---
 .../tensorflow-lite/tensorflow-lite_1.12.bb        | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb +12 -2
index b5112939..20f0ffed 100644
@@ -10,7 +10,7 @@ SRC_URI = "git://github.com/tensorflow/tensorflow.git;branch=r1.12;protocol=http
 
 SRCREV = "5b900cfe4b3b848f577315a0dde09a729f770e95"
 
-PR = "r1"
+PR = "r2"
 
 S = "${WORKDIR}/git"
 
@@ -51,7 +51,7 @@ do_compile() {
 
 do_install() {
     install -d ${D}${libdir}
-    install -m 0644 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/lib/libtensorflow-lite.a ${D}${libdir}/
+    install -m 0644 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/lib/*.a ${D}${libdir}/
     install -d ${D}${includedir}/tensorflow/contrib/lite
     install -m 0644 ${S}/tensorflow/contrib/lite/*.h ${D}${includedir}/tensorflow/contrib/lite/
     install -d ${D}${includedir}/tensorflow/contrib/lite/c
@@ -71,6 +71,16 @@ do_install() {
     sed -i 's:@version@:${PV}:g
         s:@libdir@:${libdir}:g
         s:@includedir@:${includedir}:g' ${D}${libdir}/pkgconfig/tensorflow-lite.pc
+    # install examples
+    install -d ${D}${datadir}/${PN}-${PV}/examples
+    install -m 0755 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/minimal ${D}${datadir}/${PN}-${PV}/examples
+    install -m 0755 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/benchmark_model ${D}${datadir}/${PN}-${PV}/examples
 }
 
+PACKAGES += "${PN}-examples"
+
+FILES_${PN}-examples = " \
+    ${datadir}/${PN}-${PV}/examples/minimal \
+    ${datadir}/${PN}-${PV}/examples/benchmark_model \ "
+
 ALLOW_EMPTY_${PN} = "1"
Signature · 1 line
2.17.1
#9 lore raw

PATCH 7/7 tensorflow-lite: add label_image example and install the files to run the example

In reply to Hongmei Gou

* Patch Makefile to add the label_image example
* Install sample model/image/labels.txt to run the example

---
 ...002-Makefile-add-label_image-example.patch | 89 +++++++++++++++++++
 .../tensorflow-lite/tensorflow-lite_1.12.bb   | 15 +++-
 2 files changed, 100 insertions(+), 4 deletions(-)
 create mode 100644 meta-arago-extras/recipes-support/tensorflow-lite/files/0002-Makefile-add-label_image-example.patch
meta-arago-extras/recipes-support/tensorflow-lite/files/0002-Makefile-add-label_image-example.patch new file +89 -0
new file mode 100644
index 00000000..d3bd2a05
@@ -0,0 +1,89 @@
+From eb4148a4b230cee9b4e3c00d8661653c7b29559a Mon Sep 17 00:00:00 2001
+From: Hongmei Gou <[email protected]>
+Date: Wed, 21 Aug 2019 18:03:17 -0400
+Subject: [PATCH] Makefile: add label_image example
+
+Upstream-Status: Pending
+
+Signed-off-by: Hongmei Gou <[email protected]>
+---
+ tensorflow/contrib/lite/tools/make/Makefile | 21 +++++++++++++++++++--
+ 1 file changed, 19 insertions(+), 2 deletions(-)
+
+diff --git a/tensorflow/contrib/lite/tools/make/Makefile b/tensorflow/contrib/lite/tools/make/Makefile
+index 8b1b05b280..1af726e2a3 100644
+--- a/tensorflow/contrib/lite/tools/make/Makefile
++++ b/tensorflow/contrib/lite/tools/make/Makefile
+@@ -71,6 +71,11 @@ BENCHMARK_BINARY_NAME := benchmark_model
+ MINIMAL_SRCS := \
+ tensorflow/contrib/lite/examples/minimal/minimal.cc
+ 
++# label image example
++LABELIMAGE_SRCS := \
++tensorflow/contrib/lite/examples/label_image/bitmap_helpers.cc \
++tensorflow/contrib/lite/examples/label_image/label_image.cc
++
+ # What sources we want to compile, must be kept in sync with the main Bazel
+ # build files.
+ 
+@@ -107,7 +112,8 @@ $(wildcard tensorflow/contrib/lite/*/*test.cc) \
+ $(wildcard tensorflow/contrib/lite/*/*/*test.cc) \
+ $(wildcard tensorflow/contrib/lite/*/*/*/*test.cc) \
+ $(wildcard tensorflow/contrib/lite/kernels/test_util.cc) \
+-$(MINIMAL_SRCS)
++$(MINIMAL_SRCS) \
++$(LABELIMAGE_SRCS)
+ ifeq ($(BUILD_TYPE),micro)
+ CORE_CC_EXCLUDE_SRCS += \
+ tensorflow/contrib/lite/mmap_allocation.cc \
+@@ -134,6 +140,7 @@ include $(wildcard $(MAKEFILE_DIR)/targets/*_makefile.inc)
+ 
+ ALL_SRCS := \
+ 	$(MINIMAL_SRCS) \
++	$(LABELIMAGE_SRCS) \
+ 	$(PROFILER_SRCS) \
+ 	$(PROFILER_SUMMARY_SRCS) \
+ 	$(TF_LITE_CC_SRCS) \
+@@ -149,6 +156,7 @@ LIB_PATH := $(LIBDIR)$(LIB_NAME)
+ BENCHMARK_LIB := $(LIBDIR)$(BENCHMARK_LIB_NAME)
+ BENCHMARK_BINARY := $(BINDIR)$(BENCHMARK_BINARY_NAME)
+ MINIMAL_BINARY := $(BINDIR)minimal
++LABELIMAGE_BINARY := $(BINDIR)label_image
+ 
+ CXX := $(CC_PREFIX)${TARGET_TOOLCHAIN_PREFIX}g++
+ CC := $(CC_PREFIX)${TARGET_TOOLCHAIN_PREFIX}gcc
+@@ -157,6 +165,9 @@ AR := $(CC_PREFIX)${TARGET_TOOLCHAIN_PREFIX}ar
+ MINIMAL_OBJS := $(addprefix $(OBJDIR), \
+ $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(MINIMAL_SRCS))))
+ 
++LABELIMAGE_OBJS := $(addprefix $(OBJDIR), \
++$(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(LABELIMAGE_SRCS))))
++
+ LIB_OBJS := $(addprefix $(OBJDIR), \
+ $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(TF_LITE_CC_SRCS))))
+ 
+@@ -173,7 +184,7 @@ $(OBJDIR)%.o: %.c
+ 	$(CC) $(CCFLAGS) $(INCLUDES) -c $< -o $@
+ 
+ # The target that's compiled if there's no command-line arguments.
+-all: $(LIB_PATH)  $(MINIMAL_BINARY) $(BENCHMARK_BINARY)
++all: $(LIB_PATH)  $(MINIMAL_BINARY) $(LABELIMAGE_BINARY) $(BENCHMARK_BINARY)
+ 
+ # The target that's compiled for micro-controllers
+ micro: $(LIB_PATH)
+@@ -197,6 +208,12 @@ $(BENCHMARK_LIB) : $(LIB_PATH) $(BENCHMARK_OBJS)
+ 	@mkdir -p $(dir $@)
+ 	$(AR) $(ARFLAGS) $(BENCHMARK_LIB) $(LIB_OBJS) $(BENCHMARK_OBJS)
+ 
++$(LABELIMAGE_BINARY): $(LABELIMAGE_OBJS) $(LIB_PATH)
++	@mkdir -p $(dir $@)
++	$(CXX) $(CXXFLAGS) $(INCLUDES) \
++	-o $(LABELIMAGE_BINARY) $(LABELIMAGE_OBJS) \
++	$(LIBFLAGS) $(LIB_PATH) $(LDFLAGS) $(LIBS)
++
+ benchmark_lib: $(BENCHMARK_LIB)
+ 
+ $(BENCHMARK_BINARY) : $(BENCHMARK_LIB)
+-- 
+2.17.1
+
meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.12.bb +11 -4
index 20f0ffed..6f0254ef 100644
@@ -5,12 +5,17 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=01e86893010a1b87e69a213faa753ebd"
 
 SRC_URI = "git://github.com/tensorflow/tensorflow.git;branch=r1.12;protocol=https \
+    http://download.tensorflow.org/models/mobilenet_v1_2018_08_02/mobilenet_v1_1.0_224_quant.tgz;name=mobilenet_v1_quant;subdir=${WORKDIR}/model;destsuffix=model \
     file://0001-Makefile-update-the-path-for-the-depedencies-built-v.patch \
+    file://0002-Makefile-add-label_image-example.patch \
     file://tensorflow-lite.pc.in"
 
+SRC_URI[mobilenet_v1_quant.md5sum] = "36af340c00e60291931cb30ce32d4e86"
+SRC_URI[mobilenet_v1_quant.sha256sum] = "d32432d28673a936b2d6281ab0600c71cf7226dfe4cdcef3012555f691744166"
+
 SRCREV = "5b900cfe4b3b848f577315a0dde09a729f770e95"
 
-PR = "r2"
+PR = "r3"
 
 S = "${WORKDIR}/git"
 
@@ -75,12 +80,14 @@ do_install() {
     install -d ${D}${datadir}/${PN}-${PV}/examples
     install -m 0755 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/minimal ${D}${datadir}/${PN}-${PV}/examples
     install -m 0755 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/benchmark_model ${D}${datadir}/${PN}-${PV}/examples
+    install -m 0755 ${S}/tensorflow/contrib/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/label_image ${D}${datadir}/${PN}-${PV}/examples
+    install -m 0644 ${S}/tensorflow/contrib/lite/examples/label_image/testdata/grace_hopper.bmp ${D}${datadir}/${PN}-${PV}/examples
+    install -m 0644 ${S}/tensorflow/contrib/lite/java/ovic/src/testdata/labels.txt ${D}${datadir}/${PN}-${PV}/examples
+    install -m 0644 ${WORKDIR}/model/mobilenet_v1_1.0_224_quant.tflite ${D}${datadir}/${PN}-${PV}/examples
 }
 
 PACKAGES += "${PN}-examples"
 
-FILES_${PN}-examples = " \
-    ${datadir}/${PN}-${PV}/examples/minimal \
-    ${datadir}/${PN}-${PV}/examples/benchmark_model \ "
+FILES_${PN}-examples = "${datadir}/${PN}-${PV}/examples"
 
 ALLOW_EMPTY_${PN} = "1"
Signature · 1 line
2.17.1