From 39e17262492493468eb9c1151e25dd202e81929f Mon Sep 17 00:00:00 2001 From: Vivien Didelot Date: Thu, 17 Aug 2023 12:45:28 -0400 Subject: [PATCH] tensorflow-lite: fix meta-neural-network paths The tensorflow-lite_2.* recipe from meta-neural-network installs the library and pkg-config files as tensorflow2-lite*, because their users may use several versions of the same library. However packages such as libcamera-apps expect tensorflow-lite* files. While this is being discussed with the upstream meta-neural-network layer, adding a dynamic bbappend in meta-raspberrypi also helps documenting the support for this tensorflow-lite provider. Refs https://github.com/nnstreamer/meta-neural-network/pull/85 Signed-off-by: Vivien Didelot --- .../tensorflow-lite/tensorflow-lite_2.%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dynamic-layers/neuralnetwork/recipes-tensorflow/tensorflow-lite/tensorflow-lite_2.%.bbappend diff --git a/dynamic-layers/neuralnetwork/recipes-tensorflow/tensorflow-lite/tensorflow-lite_2.%.bbappend b/dynamic-layers/neuralnetwork/recipes-tensorflow/tensorflow-lite/tensorflow-lite_2.%.bbappend new file mode 100644 index 000000000..8dc5d661f --- /dev/null +++ b/dynamic-layers/neuralnetwork/recipes-tensorflow/tensorflow-lite/tensorflow-lite_2.%.bbappend @@ -0,0 +1,5 @@ +# https://github.com/nnstreamer/meta-neural-network/pull/85 +do_install:append () { + ln -sf libtensorflow2-lite.a ${D}${libdir}/libtensorflow-lite.a + ln -sf tensorflow2-lite.pc ${D}${libdir}/pkgconfig/tensorflow-lite.pc +}