]> code.ossystems Code Review - meta-freescale.git/blob
1e7f58439b39f61e4ce56cd38d84a80c76555ef8
[meta-freescale.git] /
1 From 03257bf2aff37b78496ccc1b58a87e7baaea042a Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@nxp.com>
3 Date: Mon, 22 Feb 2016 12:17:52 +0200
4 Subject: [PATCH 2/2] Add the compile and install rules for cryptodev tests
5
6 (original patch Signed-off-by: Yu Zongchun <b40527@freescale.com>)
7 Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
8
9 Upstream-Status: Inappropriate [ OE specific ]
10 ---
11  Makefile       | 6 ++++++
12  tests/Makefile | 4 ++--
13  2 files changed, 8 insertions(+), 2 deletions(-)
14
15 diff --git a/Makefile b/Makefile
16 index 06202bd..a598b12 100644
17 --- a/Makefile
18 +++ b/Makefile
19 @@ -42,6 +42,12 @@ clean:
20  check:
21         CFLAGS=$(CRYPTODEV_CFLAGS) KERNEL_DIR=$(KERNEL_DIR) $(MAKE) -C tests check
22  
23 +testprogs:
24 +       KERNEL_DIR=$(KERNEL_DIR) $(MAKE) -C tests all
25 +
26 +install_tests:
27 +       $(MAKE) -C tests install
28 +
29  CPOPTS =
30  ifneq ($(SHOW_TYPES),)
31  CPOPTS += --show-types
32 diff --git a/tests/Makefile b/tests/Makefile
33 index 5e3111d..cda971c 100644
34 --- a/tests/Makefile
35 +++ b/tests/Makefile
36 @@ -35,9 +35,9 @@ check: $(hostprogs)
37         ./cipher-aead
38  
39  install:
40 -       install -d $(DESTDIR)/$(bindir)
41 +       install -d $(DESTDIR)/$(bindir)/tests_cryptodev
42         for prog in $(hostprogs); do \
43 -               install -m 755 $$prog $(DESTDIR)/$(bindir); \
44 +               install -m 755 $$prog $(DESTDIR)/$(bindir)/tests_cryptodev/; \
45         done
46  
47  clean:
48 -- 
49 2.7.0
50