aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/cryptodev/yocto_patches/0001-Add-the-compile-and-install-rules-for-cryptodev-test.patch
blob: 1e7f58439b39f61e4ce56cd38d84a80c76555ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From 03257bf2aff37b78496ccc1b58a87e7baaea042a Mon Sep 17 00:00:00 2001
From: Cristian Stoica <cristian.stoica@nxp.com>
Date: Mon, 22 Feb 2016 12:17:52 +0200
Subject: [PATCH 2/2] Add the compile and install rules for cryptodev tests

(original patch Signed-off-by: Yu Zongchun <b40527@freescale.com>)
Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>

Upstream-Status: Inappropriate [ OE specific ]
---
 Makefile       | 6 ++++++
 tests/Makefile | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 06202bd..a598b12 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,12 @@ clean:
 check:
 	CFLAGS=$(CRYPTODEV_CFLAGS) KERNEL_DIR=$(KERNEL_DIR) $(MAKE) -C tests check
 
+testprogs:
+	KERNEL_DIR=$(KERNEL_DIR) $(MAKE) -C tests all
+
+install_tests:
+	$(MAKE) -C tests install
+
 CPOPTS =
 ifneq ($(SHOW_TYPES),)
 CPOPTS += --show-types
diff --git a/tests/Makefile b/tests/Makefile
index 5e3111d..cda971c 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -35,9 +35,9 @@ check: $(hostprogs)
 	./cipher-aead
 
 install:
-	install -d $(DESTDIR)/$(bindir)
+	install -d $(DESTDIR)/$(bindir)/tests_cryptodev
 	for prog in $(hostprogs); do \
-		install -m 755 $$prog $(DESTDIR)/$(bindir); \
+		install -m 755 $$prog $(DESTDIR)/$(bindir)/tests_cryptodev/; \
 	done
 
 clean:
-- 
2.7.0