From: Qin Su <[email protected]>

Signed-off-by: Qin Su <[email protected]>
Signed-off-by: Jacob Stiffler <[email protected]>
---
Changes from v6:
* Use only "tensorflow" in SRCREV_FORMAT
* Install files to ${datadir}/${BPN}
* Add comment explaining what generate_tensorflow_protobuf.sh is doing
  in do_install()
* Remove source package and allow files to populate main package

Changes from previous versions:
* Add "_git" suffix to recipe name.
* Add version.
* DESCRIPTION --> SUMMARY.
* Add branch option for SRC_URI.
* Add dependency on protobuf-native
* Add Apache license version (Apache-2.0)

 .../armnn-tensorflow/armnn-tensorflow_git.bb       | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 
meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow_git.bb

diff --git 
a/meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow_git.bb 
b/meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow_git.bb
new file mode 100644
index 0000000..0b0f148
--- /dev/null
+++ b/meta-arago-extras/recipes-support/armnn-tensorflow/armnn-tensorflow_git.bb
@@ -0,0 +1,26 @@
+SUMMARY = "Tensorflow protobuf files - used in ARMNN for Tensorflow network 
models"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=01e86893010a1b87e69a213faa753ebd"
+
+SRC_URI = " \
+    git://github.com/tensorflow/tensorflow.git;name=tensorflow; \
+    
git://github.com/ARM-software/armnn.git;name=armnn;subdir=${WORKDIR}/armnn;destsuffix=armnn
 \
+"
+
+PV = "1.10.0"
+
+SRCREV_tensorflow = "aed8f42bafabf11c5d92ce4109a5e0408b31f9c5"
+SRCREV_armnn = "4c7098bfeab1ffe1cdc77f6c15548d3e73274746"
+SRCREV_FORMAT = "tensorflow"
+
+DEPENDS = "protobuf-native"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    # Install sources + build artifacts as reuired by ARMNN
+    install -d ${D}${datadir}/${BPN}
+
+    # Convert protobuf sources to C sources and install
+    ${WORKDIR}/armnn/scripts/generate_tensorflow_protobuf.sh 
${D}${datadir}/${BPN} ${STAGING_DIR_NATIVE}${prefix}
+}
-- 
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to