diff options
author | Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | 2020-06-04 19:30:56 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2020-06-23 08:44:02 -0300 |
commit | be4bd4650170a5e9c38875809be440daa65aa0aa (patch) | |
tree | d6c13b069ae6bfaefc71ea5ca49f717fb56c717d /recipes-security/optee-imx/optee-client | |
parent | fb3c377da24217614c0e84a738c9e2f61742f54c (diff) | |
download | meta-freescale-be4bd4650170a5e9c38875809be440daa65aa0aa.tar.gz |
optee-client: refresh patch applied upstream
PR has been closed upstream with modifications to originally submitted
patch. Later implementation implied more modification, which are not
compatible with current version, therefore accepted patch has been
backported to this fork.
Refresh patch file with updated version from upstream.
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Diffstat (limited to 'recipes-security/optee-imx/optee-client')
-rw-r--r-- | recipes-security/optee-imx/optee-client/0001-flags-do-not-override-CFLAGS-from-host.patch | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/recipes-security/optee-imx/optee-client/0001-flags-do-not-override-CFLAGS-from-host.patch b/recipes-security/optee-imx/optee-client/0001-flags-do-not-override-CFLAGS-from-host.patch index 3bbf898b..86c360f2 100644 --- a/recipes-security/optee-imx/optee-client/0001-flags-do-not-override-CFLAGS-from-host.patch +++ b/recipes-security/optee-imx/optee-client/0001-flags-do-not-override-CFLAGS-from-host.patch | |||
@@ -1,23 +1,29 @@ | |||
1 | From ea7e0fba6da734e5f99f84d10d456ceaaed05883 Mon Sep 17 00:00:00 2001 | 1 | From 6a600c5637c5446ab3d11eb4304a1dd473ec503e Mon Sep 17 00:00:00 2001 |
2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | 2 | From: Andrey Zhizhikin <andrey.z@gmail.com> |
3 | Date: Sun, 31 May 2020 20:40:25 +0000 | 3 | Date: Thu, 4 Jun 2020 19:24:05 +0000 |
4 | Subject: [PATCH] flags: do not override CFLAGS from host | 4 | Subject: [PATCH] flags: do not override CFLAGS from host |
5 | 5 | ||
6 | Some build systems set CFLAGS in environment before the build, but they | 6 | Some build systems set CFLAGS in environment before the build, but they |
7 | got overridden by CFLAGS immediate assignment operator. | 7 | got overridden by CFLAGS immediate assignment operator. |
8 | 8 | ||
9 | Replace immediate assignment with append directive, so the former | 9 | Replace immediate assignment with append directive and use override |
10 | definition of CFLAGS gets properly expanded. | 10 | directive, so the former definition of CFLAGS gets passed either from |
11 | command line or via environment is completely expanded (see [1] for | ||
12 | detailed explanation of override directive and variable append). | ||
11 | 13 | ||
12 | Upstream-Status: Submitted [https://github.com/OP-TEE/optee_client/pull/211] | 14 | Link: [1] https://www.gnu.org/software/make/manual/html_node/Override-Directive.html |
15 | |||
16 | Upstream-Status: Backport [https://github.com/OP-TEE/optee_client/pull/211] | ||
13 | 17 | ||
14 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | 18 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> |
19 | Reviewed-by: Jerome Forissier <jerome@forissier.org> | ||
20 | Reviewed-by: Joakim Bech <joakim.bech@linaro.org> | ||
15 | --- | 21 | --- |
16 | flags.mk | 2 +- | 22 | flags.mk | 6 +++--- |
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | 23 | 1 file changed, 3 insertions(+), 3 deletions(-) |
18 | 24 | ||
19 | diff --git a/flags.mk b/flags.mk | 25 | diff --git a/flags.mk b/flags.mk |
20 | index 71f3d18..af13495 100644 | 26 | index 71f3d18..faabef9 100644 |
21 | --- a/flags.mk | 27 | --- a/flags.mk |
22 | +++ b/flags.mk | 28 | +++ b/flags.mk |
23 | @@ -6,7 +6,7 @@ CROSS_COMPILE ?= arm-linux-gnueabihf- | 29 | @@ -6,7 +6,7 @@ CROSS_COMPILE ?= arm-linux-gnueabihf- |
@@ -25,10 +31,24 @@ index 71f3d18..af13495 100644 | |||
25 | AR ?= $(CROSS_COMPILE)ar | 31 | AR ?= $(CROSS_COMPILE)ar |
26 | 32 | ||
27 | -CFLAGS := -Wall -Wbad-function-cast -Wcast-align \ | 33 | -CFLAGS := -Wall -Wbad-function-cast -Wcast-align \ |
28 | +CFLAGS += -Wall -Wbad-function-cast -Wcast-align \ | 34 | +override CFLAGS += -Wall -Wbad-function-cast -Wcast-align \ |
29 | -Werror-implicit-function-declaration -Wextra \ | 35 | -Werror-implicit-function-declaration -Wextra \ |
30 | -Wfloat-equal -Wformat-nonliteral -Wformat-security \ | 36 | -Wfloat-equal -Wformat-nonliteral -Wformat-security \ |
31 | -Wformat=2 -Winit-self -Wmissing-declarations \ | 37 | -Wformat=2 -Winit-self -Wmissing-declarations \ |
38 | @@ -15,11 +15,11 @@ CFLAGS := -Wall -Wbad-function-cast -Wcast-align \ | ||
39 | -Wpointer-arith -Wshadow -Wstrict-prototypes \ | ||
40 | -Wswitch-default -Wunsafe-loop-optimizations \ | ||
41 | -Wwrite-strings -Werror | ||
42 | -CFLAGS += -c -fPIC | ||
43 | +override CFLAGS += -c -fPIC | ||
44 | |||
45 | DEBUG ?= 0 | ||
46 | ifeq ($(DEBUG), 1) | ||
47 | -CFLAGS += -DDEBUG -O0 -g | ||
48 | +override CFLAGS += -DDEBUG -O0 -g | ||
49 | endif | ||
50 | |||
51 | RM := rm -f | ||
32 | -- | 52 | -- |
33 | 2.17.1 | 53 | 2.17.1 |
34 | 54 | ||