blob: b4ab34ce9e2a00c15842c6c4fea3dbbb8c93f260 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
From 76de6db1bc69b2239d8fb91fd65b74610cb8e22f Mon Sep 17 00:00:00 2001
From: Cristian Stoica <cristian.stoica@nxp.com>
Date: Thu, 27 Oct 2016 16:41:10 +0300
Subject: [PATCH 077/104] the C standard used by cryptodev is C90 with GNU
extensions
This avoids some problems with gcc>=5.0 which chaged the default to C11.
The choice for gnu90 is based on the C standard used by Linux kernel which
is gnu90 as well.
Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
---
Makefile | 6 +++---
lib/Makefile | 2 +-
tests/Makefile | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 90e86d9..80439f6 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
# disabled by default. To re-enable it uncomment the
# corresponding CFLAG.
#
-CRYPTODEV_CFLAGS += -DENABLE_ASYNC
+CRYPTODEV_CFLAGS += -DENABLE_ASYNC -std=gnu90
KBUILD_CFLAGS += -I$(src) $(CRYPTODEV_CFLAGS)
KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
VERSION = 1.8
@@ -38,10 +38,10 @@ modules_install:
clean:
$(MAKE) $(KERNEL_MAKE_OPTS) clean
rm -f $(hostprogs) *~
- CFLAGS=$(CRYPTODEV_CFLAGS) KERNEL_DIR=$(KERNEL_DIR) $(MAKE) -C tests clean
+ CFLAGS="$(CRYPTODEV_CFLAGS)" KERNEL_DIR="$(KERNEL_DIR)" $(MAKE) -C tests clean
check:
- CFLAGS=$(CRYPTODEV_CFLAGS) KERNEL_DIR=$(KERNEL_DIR) $(MAKE) -C tests check
+ CFLAGS="$(CRYPTODEV_CFLAGS)" KERNEL_DIR="$(KERNEL_DIR)" $(MAKE) -C tests check
testprogs:
KERNEL_DIR=$(KERNEL_DIR) $(MAKE) -C tests all
diff --git a/lib/Makefile b/lib/Makefile
index 3bedc34..0044613 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,4 +1,4 @@
-CFLAGS=-g -O2 -Wall
+CFLAGS=-g -O2 -Wall -std=gnu90
all: benchmark
diff --git a/tests/Makefile b/tests/Makefile
index e7a60cb..23d67f9 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,4 +1,4 @@
-CRYPTODEV_CFLAGS += -DENABLE_ASYNC -Wall -Werror
+CRYPTODEV_CFLAGS += -DENABLE_ASYNC -std=gnu90 -Wall -Werror
CFLAGS += -I.. $(CRYPTODEV_CFLAGS)
comp_progs := cipher_comp hash_comp hmac_comp
--
2.10.2
|