1 From 1980a8f4779a955e73285e7a0d86549b69bea5c8 Mon Sep 17 00:00:00 2001
2 From: Yu Zongchun <b40527@freescale.com>
3 Date: Sun, 28 Apr 2013 14:39:22 +0800
4 Subject: [PATCH] Add the compile and install rules for cryptodev tests folder
6 This is required to install the cryptodev tests folder to rootfs
8 Signed-off-by: Yu Zongchun <b40527@freescale.com>
10 Upstream-Status: Pending
14 tests/Makefile | 8 ++++++++
15 2 files changed, 14 insertions(+), 0 deletions(-)
17 diff --git a/Makefile b/Makefile
18 index 2be8825..4cbb865 100644
21 @@ -17,6 +17,9 @@ install:
22 @echo "Installing cryptodev.h in /usr/include/crypto ..."
23 @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h
26 + make -C tests install DESTDIR=$(PREFIX)
29 make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean
31 @@ -25,6 +28,9 @@ clean:
33 KERNEL_DIR=$(KERNEL_DIR) make -C tests check
36 + KERNEL_DIR=$(KERNEL_DIR) make -C tests testprogs
38 FILEBASE = cryptodev-linux-$(VERSION)
40 OUTPUT = $(FILEBASE).tar.gz
41 diff --git a/tests/Makefile b/tests/Makefile
42 index 87ca3c7..0488cf6 100644
45 @@ -19,6 +19,12 @@ example-async-hmac-objs := async_hmac.o
46 example-async-speed-objs := async_speed.o
47 example-hashcrypt-speed-objs := hashcrypt_speed.c
50 + install -d $(DESTDIR)/usr/bin/tests_cryptodev
51 + for bin in $(hostprogs); do \
52 + install -m 755 $${bin} $(DESTDIR)/usr/bin/tests_cryptodev/; \
58 @@ -28,6 +34,8 @@ check: $(hostprogs)
62 +testprogs: $(hostprogs)
65 rm -f *.o *~ $(hostprogs)