* 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 <[email protected]>
---
.../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
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago