diff options
| author | Armin Kuster <akuster808@gmail.com> | 2020-02-08 15:03:11 -0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2020-02-10 19:13:52 -0800 |
| commit | 676d7166a22611908c225fab5fbecf1fb4e82627 (patch) | |
| tree | a51cddd4e6425b338c6b76a323b043ea057737d4 /meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch | |
| parent | 5f258016b3d8de8b154a0838198d4079921eae66 (diff) | |
| download | meta-security-676d7166a22611908c225fab5fbecf1fb4e82627.tar.gz | |
ibmswtpm2: update to 1563
fix build issue
[v2]
Fix subject line
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch')
| -rw-r--r-- | meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch b/meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch new file mode 100644 index 0000000..2919e2e --- /dev/null +++ b/meta-tpm/recipes-tpm2/ibmswtpm2/files/remove_optimization.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Allow recipe to overide optimization. | ||
| 2 | |||
| 3 | fixes: | ||
| 4 | |||
| 5 | 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ||
| 6 | | | ^~~~~~~ | ||
| 7 | | cc1: all warnings being treated as errors | ||
| 8 | |||
| 9 | |||
| 10 | Upstream-Status: OE specific | ||
| 11 | |||
| 12 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
| 13 | |||
| 14 | Index: src/makefile | ||
| 15 | =================================================================== | ||
| 16 | --- src.orig/makefile | ||
| 17 | +++ src/makefile | ||
| 18 | @@ -43,7 +43,7 @@ CC = /usr/bin/gcc | ||
| 19 | CCFLAGS = -Wall \ | ||
| 20 | -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ | ||
| 21 | -Werror -Wsign-compare \ | ||
| 22 | - -c -ggdb -O0 \ | ||
| 23 | + -c -ggdb -O \ | ||
| 24 | -DTPM_POSIX \ | ||
| 25 | -D_POSIX_ \ | ||
| 26 | -DTPM_NUVOTON | ||
