1 From 188f30f6233d05eb62b58bf6d94a16bcbeeae0ee Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@freescale.com>
3 Date: Mon, 27 Apr 2015 15:26:14 +0300
4 Subject: [PATCH 4/4] Add the compile and install rules for cryptodev tests
6 Change-Id: Ica10dc563c77220dcf0e0993515230df8a86c34d
7 Signed-off-by: Yu Zongchun <b40527@freescale.com>
10 tests/Makefile | 8 ++++++++
11 2 files changed, 14 insertions(+)
13 diff --git a/Makefile b/Makefile
14 index 855bb54..5497037 100644
17 @@ -32,6 +32,9 @@ install: modules_install
19 make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install
22 + make -C tests install DESTDIR=$(PREFIX)
25 make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean
27 @@ -40,6 +43,9 @@ clean:
29 CFLAGS=$(CRYPTODEV_CFLAGS) KERNEL_DIR=$(KERNEL_DIR) make -C tests check
32 + KERNEL_DIR=$(KERNEL_DIR) make -C tests testprogs
35 ifneq (${SHOW_TYPES},)
36 CPOPTS += --show-types
37 diff --git a/tests/Makefile b/tests/Makefile
38 index 20c52ba..67c3c83 100644
41 @@ -19,6 +19,12 @@ example-async-hmac-objs := async_hmac.o
42 example-async-speed-objs := async_speed.o
43 example-hashcrypt-speed-objs := hashcrypt_speed.c
46 + install -d $(DESTDIR)/usr/bin/tests_cryptodev
47 + for bin in $(hostprogs); do \
48 + install -m 755 $${bin} $(DESTDIR)/usr/bin/tests_cryptodev/; \
54 @@ -28,6 +34,8 @@ check: $(hostprogs)
58 +testprogs: $(hostprogs)
61 rm -f *.o *~ $(hostprogs)