summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/cryptodev/sdk_patches/0076-exit-early-if-cryptodev-tests-are-not-installed.patch
diff options
context:
space:
mode:
authorChunrong Guo <chunrong.guo@nxp.com>2017-07-28 15:44:09 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2017-08-07 11:42:29 -0300
commitece24e8f9a042561f188d8f09c60b146dd081c94 (patch)
tree1f9b832c30fa2740f16363187493814aca21a3c2 /recipes-kernel/cryptodev/sdk_patches/0076-exit-early-if-cryptodev-tests-are-not-installed.patch
parentd586bfdde75ab6cae4f2dcdb63c068e07f4c188e (diff)
downloadmeta-freescale-ece24e8f9a042561f188d8f09c60b146dd081c94.tar.gz
cryptodev-qoriq: update to v1.9
Signed-off-by: Chunrong Guo <B40290@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0076-exit-early-if-cryptodev-tests-are-not-installed.patch')
-rw-r--r--recipes-kernel/cryptodev/sdk_patches/0076-exit-early-if-cryptodev-tests-are-not-installed.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0076-exit-early-if-cryptodev-tests-are-not-installed.patch b/recipes-kernel/cryptodev/sdk_patches/0076-exit-early-if-cryptodev-tests-are-not-installed.patch
deleted file mode 100644
index 0570e1a21..000000000
--- a/recipes-kernel/cryptodev/sdk_patches/0076-exit-early-if-cryptodev-tests-are-not-installed.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1From 87214642cbfc6dbd43948940b5d1ce9528f451bd Mon Sep 17 00:00:00 2001
2From: Cristian Stoica <cristian.stoica@nxp.com>
3Date: Thu, 27 Oct 2016 10:46:01 +0300
4Subject: [PATCH 076/104] exit early if cryptodev tests are not installed
5
6Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
7---
8 tests/async_speed_multi.sh | 10 +++++++++-
9 1 file changed, 9 insertions(+), 1 deletion(-)
10
11diff --git a/tests/async_speed_multi.sh b/tests/async_speed_multi.sh
12index 862f39d..62c4759 100755
13--- a/tests/async_speed_multi.sh
14+++ b/tests/async_speed_multi.sh
15@@ -20,6 +20,7 @@
16 # no user-configurable options below this line
17
18 NUM_CORES=$(nproc)
19+CMD_BIN="async_speed"
20 OUT_BASENAME="async_speed"
21 MPSTAT_OUT="mpstat_out"
22
23@@ -56,7 +57,7 @@ function run_parallel
24 trap control_c SIGINT
25
26 OPTIONS="-t $tvalue -n $nvalue -m"
27- CMD="async_speed $OPTIONS $alg_name"
28+ CMD="$CMD_BIN $OPTIONS $alg_name"
29
30 if [ ! -z "$vvalue" ]
31 then
32@@ -120,6 +121,13 @@ function main
33 [ ! -e "/dev/crypto" ] &&
34 (sudo modprobe cryptodev || modprobe cryptodev || exit 1)
35
36+ $(which ${CMD_BIN} &> /dev/null)
37+ if (($? != 0))
38+ then
39+ echo "${CMD_BIN} test is not installed"
40+ exit 1
41+ fi
42+
43 rm -f ${OUT_BASENAME}_*
44 rm -f ${MPSTAT_OUT}
45
46--
472.10.2
48