[Spec] Disable some components in tizen-6.0 profile
authorDongju Chae <dongju.chae@samsung.com>
Fri, 11 Dec 2020 05:33:05 +0000 (14:33 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 16 Dec 2020 05:25:43 +0000 (14:25 +0900)
This patch disables some components in tizen-6.0 profile.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
packaging/nnstreamer.spec
tests/nnstreamer_grpc/runTest.sh

index 9ea2c4d..297ca5a 100644 (file)
 %define                edgetpu_support 0
 %endif
 
+# tizen 6.0 (or less) backward-compatibility check
+%if ( 0%{?tizen_version_major} == 6 && 0%{?tizen_version_minor} < 5 ) || 0%{?tizen_version_major} < 6
+%define                grpc_support 0
+%define                tensorflow2_lite_support 0
+%endif
+
 # Disable e-TPU if it's not 64bit system
 %ifnarch aarch64 x86_64
 %define                edgetpu_support 0
index 05d9547..19687cb 100755 (executable)
@@ -18,7 +18,23 @@ fi
 # This is compatible with SSAT (https://github.com/myungjoo/SSAT)
 testInit $1
 
+# NNStreamer and plugins path for test
 PATH_TO_PLUGIN="../../build"
+
+if [[ -d $PATH_TO_PLUGIN ]]; then
+    ini_path="${PATH_TO_PLUGIN}/ext/nnstreamer"
+    if [[ -d ${ini_path} ]]; then
+        check=$(ls ${ini_path} | grep nnstreamer-grpc.so)
+        if [[ ! $check ]]; then
+            echo "Cannot find nnstreamer-grpc shared lib"
+            report
+            exit
+        fi
+    else
+        echo "Cannot find ${ini_path}"
+    fi
+fi
+
 NUM_BUFFERS=10
 
 # Dump original frames, passthrough, other/tensor