All of lore.kernel.org
 help / color / mirror / Atom feed
* [zeus/master] [PATCH 1/3] tensorflow-lite: add header files and change the install location of the example files
@ 2020-02-25 23:12 Hongmei Gou
  2020-02-25 23:12 ` [zeus/master] [PATCH 2/3] tensorflow-lite-demo: add version 01.00.00 Hongmei Gou
  2020-02-25 23:12 ` [zeus/master] [PATCH 3/3] packagegroup-arago-tisdk-addons: replace tensorflow-lite-examples with tensorflow-lite and add tensorflow-lite-demo Hongmei Gou
  0 siblings, 2 replies; 10+ messages in thread
From: Hongmei Gou @ 2020-02-25 23:12 UTC (permalink / raw)
  To: meta-arago; +Cc: Hongmei Gou

* The newly added header files are required to build tensorflow lite demos
  outside of the tensorflow lite release package

* Relocate the example files to ${datadir}/${BPN}

Signed-off-by: Hongmei Gou <a0271529@ti.com>
---
 .../tensorflow-lite/tensorflow-lite_1.15.bb   | 33 ++++++++++---------
 1 file changed, 18 insertions(+), 15 deletions(-)

diff --git a/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.15.bb b/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.15.bb
index b238c85e..5f65055f 100644
--- a/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.15.bb
+++ b/meta-arago-extras/recipes-support/tensorflow-lite/tensorflow-lite_1.15.bb
@@ -41,7 +41,7 @@ SRC_URI[mobilenet_v1_quant.sha256sum] = "d32432d28673a936b2d6281ab0600c71cf7226d
 
 SRCREV = "590d6eef7e91a6a7392c8ffffb7b58f2e0c8bc6b"
 
-PR = "r3"
+PR = "r4"
 
 S = "${WORKDIR}/git"
 
@@ -105,6 +105,8 @@ do_install() {
     install -m 0644 ${S}/tensorflow/lite/*.h ${D}${includedir}/tensorflow/lite/
     install -d ${D}${includedir}/tensorflow/lite/c
     install -m 0644 ${S}/tensorflow/lite/c/*.h ${D}${includedir}/tensorflow/lite/c/
+    install -d ${D}${includedir}/tensorflow/lite/core/
+    install -m 0644 ${S}/tensorflow/lite/core/*.h ${D}${includedir}/tensorflow/lite/core/
     install -d ${D}${includedir}/tensorflow/lite/core/api/
     install -m 0644 ${S}/tensorflow/lite/core/api/*.h ${D}${includedir}/tensorflow/lite/core/api/
     install -d ${D}${includedir}/tensorflow/lite/kernels
@@ -116,27 +118,28 @@ do_install() {
     install -m 0644 ${S}/tensorflow/lite/schema/schema.fbs ${D}${includedir}/tensorflow/lite/schema/
     install -d ${D}${includedir}/tensorflow/lite/tools/
     install -m 0644 ${S}/tensorflow/lite/tools/*.h ${D}${includedir}/tensorflow/lite/tools/
+    install -d ${D}${includedir}/tensorflow/lite/delegates/nnapi/
+    install -m 0644 ${S}/tensorflow/lite/delegates/nnapi/*.h ${D}${includedir}/tensorflow/lite/delegates/nnapi/
+    install -d ${D}${includedir}/tensorflow/lite/experimental/resource_variable/
+    install -m 0644 ${S}/tensorflow/lite/experimental/resource_variable/*.h ${D}${includedir}/tensorflow/lite/experimental/resource_variable/
+    install -d ${D}${includedir}/tensorflow/lite/kernels/internal/
+    install -m 0644 ${S}/tensorflow/lite/kernels/internal/*.h ${D}${includedir}/tensorflow/lite/kernels/internal/
+
     install -d ${D}${libdir}/pkgconfig
     install -m 0644 ${WORKDIR}/tensorflow-lite.pc.in ${D}${libdir}/pkgconfig/tensorflow-lite.pc
     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/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/minimal ${D}${datadir}/${PN}-${PV}/examples
-    install -m 0755 ${S}/tensorflow/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/benchmark_model ${D}${datadir}/${PN}-${PV}/examples
-    install -m 0755 ${S}/tensorflow/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/label_image ${D}${datadir}/${PN}-${PV}/examples
-    install -m 0644 ${S}/tensorflow/lite/examples/label_image/testdata/grace_hopper.bmp ${D}${datadir}/${PN}-${PV}/examples
-    install -m 0644 ${S}/tensorflow/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
+    install -d ${D}${datadir}/${BPN}/examples
+    install -m 0755 ${S}/tensorflow/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/minimal ${D}${datadir}/${BPN}/examples
+    install -m 0755 ${S}/tensorflow/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/benchmark_model ${D}${datadir}/${BPN}/examples
+    install -m 0755 ${S}/tensorflow/lite/tools/make/gen/${TARGET_OS}_${TUNE_ARCH}/bin/label_image ${D}${datadir}/${BPN}/examples
+    install -m 0644 ${S}/tensorflow/lite/examples/label_image/testdata/grace_hopper.bmp ${D}${datadir}/${BPN}/examples
+    install -m 0644 ${S}/tensorflow/lite/java/ovic/src/testdata/labels.txt ${D}${datadir}/${BPN}/examples
+    install -m 0644 ${WORKDIR}/model/mobilenet_v1_1.0_224_quant.tflite ${D}${datadir}/${BPN}/examples
     # install scripts for benchmarking
-    install -m 0755 ${WORKDIR}/tflite-benchmark.sh ${D}${datadir}/${PN}-${PV}/examples
+    install -m 0755 ${WORKDIR}/tflite-benchmark.sh ${D}${datadir}/${BPN}/examples
 }
 
-PACKAGES += "${PN}-examples"
-
-FILES_${PN}-examples = "${datadir}/${PN}-${PV}/examples"
-
-ALLOW_EMPTY_${PN} = "1"
-
 BBCLASSEXTEND = "native nativesdk"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-02-28 17:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-25 23:12 [zeus/master] [PATCH 1/3] tensorflow-lite: add header files and change the install location of the example files Hongmei Gou
2020-02-25 23:12 ` [zeus/master] [PATCH 2/3] tensorflow-lite-demo: add version 01.00.00 Hongmei Gou
2020-02-27 23:14   ` Denys Dmytriyenko
2020-02-28 17:00     ` Gou, Hongmei
2020-02-28 17:12       ` Denys Dmytriyenko
2020-02-28 17:22         ` Gou, Hongmei
2020-02-28 17:25           ` Denys Dmytriyenko
2020-02-28 17:54             ` Gou, Hongmei
2020-02-25 23:12 ` [zeus/master] [PATCH 3/3] packagegroup-arago-tisdk-addons: replace tensorflow-lite-examples with tensorflow-lite and add tensorflow-lite-demo Hongmei Gou
2020-02-25 23:31   ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.