diff options
Diffstat (limited to 'recipes-security/optee-imx/optee-os/0001-optee-os-fix-gcc10-compilation-issue-and-missing-cc-.patch')
-rw-r--r-- | recipes-security/optee-imx/optee-os/0001-optee-os-fix-gcc10-compilation-issue-and-missing-cc-.patch | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/recipes-security/optee-imx/optee-os/0001-optee-os-fix-gcc10-compilation-issue-and-missing-cc-.patch b/recipes-security/optee-imx/optee-os/0001-optee-os-fix-gcc10-compilation-issue-and-missing-cc-.patch index 509c7fb6..ab42d340 100644 --- a/recipes-security/optee-imx/optee-os/0001-optee-os-fix-gcc10-compilation-issue-and-missing-cc-.patch +++ b/recipes-security/optee-imx/optee-os/0001-optee-os-fix-gcc10-compilation-issue-and-missing-cc-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 027a3b9a33fbb23e1d1d7ed6411d4d112d2a55a1 Mon Sep 17 00:00:00 2001 | 1 | From 109ed8d9a5351c7bb0fdc0953c7e7fb6cedcad9c 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: Sat, 30 May 2020 22:00:59 +0000 | 3 | Date: Sat, 30 May 2020 22:00:59 +0000 |
4 | Subject: [PATCH] optee-os: fix gcc10 compilation issue and missing cc-options | 4 | Subject: [PATCH] optee-os: fix gcc10 compilation issue and missing cc-options |
@@ -14,17 +14,17 @@ Upstream-Status: Backport [https://github.com/OP-TEE/optee_os/pull/3891] | |||
14 | 14 | ||
15 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | 15 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> |
16 | --- | 16 | --- |
17 | core/arch/arm/arm.mk | 21 ++++++++++++++++----- | 17 | core/arch/arm/arm.mk | 22 +++++++++++++++++----- |
18 | core/core.mk | 5 +---- | 18 | core/core.mk | 5 +---- |
19 | mk/cc-option.mk | 9 +++++++++ | 19 | mk/cc-option.mk | 9 +++++++++ |
20 | mk/gcc.mk | 2 +- | 20 | mk/gcc.mk | 2 +- |
21 | ta/mk/ta_dev_kit.mk | 3 +++ | 21 | ta/mk/ta_dev_kit.mk | 3 +++ |
22 | ta/ta.mk | 1 + | 22 | ta/ta.mk | 1 + |
23 | 6 files changed, 31 insertions(+), 10 deletions(-) | 23 | 6 files changed, 32 insertions(+), 10 deletions(-) |
24 | create mode 100644 mk/cc-option.mk | 24 | create mode 100644 mk/cc-option.mk |
25 | 25 | ||
26 | diff --git a/core/arch/arm/arm.mk b/core/arch/arm/arm.mk | 26 | diff --git a/core/arch/arm/arm.mk b/core/arch/arm/arm.mk |
27 | index aa101be8..4123d85d 100644 | 27 | index 5defb327..fffa491a 100644 |
28 | --- a/core/arch/arm/arm.mk | 28 | --- a/core/arch/arm/arm.mk |
29 | +++ b/core/arch/arm/arm.mk | 29 | +++ b/core/arch/arm/arm.mk |
30 | @@ -1,3 +1,16 @@ | 30 | @@ -1,3 +1,16 @@ |
@@ -44,7 +44,7 @@ index aa101be8..4123d85d 100644 | |||
44 | CFG_LTC_OPTEE_THREAD ?= y | 44 | CFG_LTC_OPTEE_THREAD ?= y |
45 | # Size of emulated TrustZone protected SRAM, 448 kB. | 45 | # Size of emulated TrustZone protected SRAM, 448 kB. |
46 | # Only applicable when paging is enabled. | 46 | # Only applicable when paging is enabled. |
47 | @@ -88,7 +101,7 @@ arm32-platform-aflags-no-hard-float ?= | 47 | @@ -106,7 +119,7 @@ arm32-platform-aflags-no-hard-float ?= |
48 | 48 | ||
49 | arm64-platform-cflags-no-hard-float ?= -mgeneral-regs-only | 49 | arm64-platform-cflags-no-hard-float ?= -mgeneral-regs-only |
50 | arm64-platform-cflags-hard-float ?= | 50 | arm64-platform-cflags-hard-float ?= |
@@ -53,7 +53,7 @@ index aa101be8..4123d85d 100644 | |||
53 | 53 | ||
54 | ifeq ($(DEBUG),1) | 54 | ifeq ($(DEBUG),1) |
55 | # For backwards compatibility | 55 | # For backwards compatibility |
56 | @@ -117,14 +130,12 @@ core-platform-aflags += $(platform-aflags-generic) | 56 | @@ -135,14 +148,12 @@ core-platform-aflags += $(platform-aflags-generic) |
57 | core-platform-aflags += $(platform-aflags-debug-info) | 57 | core-platform-aflags += $(platform-aflags-debug-info) |
58 | 58 | ||
59 | ifeq ($(CFG_ARM64_core),y) | 59 | ifeq ($(CFG_ARM64_core),y) |
@@ -68,16 +68,20 @@ index aa101be8..4123d85d 100644 | |||
68 | core-platform-cppflags += $(arm32-platform-cppflags) | 68 | core-platform-cppflags += $(arm32-platform-cppflags) |
69 | core-platform-cflags += $(arm32-platform-cflags) | 69 | core-platform-cflags += $(arm32-platform-cflags) |
70 | core-platform-cflags += $(arm32-platform-cflags-no-hard-float) | 70 | core-platform-cflags += $(arm32-platform-cflags-no-hard-float) |
71 | @@ -196,5 +207,5 @@ ta-mk-file-export-add-ta_arm64 += CROSS_COMPILE64 ?= $$(CROSS_COMPILE)_nl_ | 71 | @@ -241,8 +252,9 @@ ta-mk-file-export-add-ta_arm64 += COMPILER ?= gcc_nl_ |
72 | ta-mk-file-export-add-ta_arm64 += CROSS_COMPILE_ta_arm64 ?= $$(CROSS_COMPILE64)_nl_ | 72 | ta-mk-file-export-add-ta_arm64 += COMPILER_ta_arm64 ?= $$(COMPILER)_nl_ |
73 | endif | 73 | endif |
74 | 74 | ||
75 | -# Set cross compiler prefix for each submodule | 75 | -# Set cross compiler prefix for each submodule |
76 | -$(foreach sm, core $(ta-targets), $(eval CROSS_COMPILE_$(sm) ?= $(CROSS_COMPILE$(arch-bits-$(sm))))) | 76 | -$(foreach sm, core $(ta-targets), $(eval CROSS_COMPILE_$(sm) ?= $(CROSS_COMPILE$(arch-bits-$(sm))))) |
77 | +# Set cross compiler prefix for each TA target | 77 | +# Set cross compiler prefix for each TA target |
78 | +$(foreach sm, $(ta-targets), $(eval CROSS_COMPILE_$(sm) ?= $(CROSS_COMPILE$(arch-bits-$(sm))))) | 78 | +$(foreach sm, $(ta-targets), $(eval CROSS_COMPILE_$(sm) ?= $(CROSS_COMPILE$(arch-bits-$(sm))))) |
79 | + | ||
80 | |||
81 | arm32-sysreg-txt = core/arch/arm/kernel/arm32_sysreg.txt | ||
82 | arm32-sysregs-$(arm32-sysreg-txt)-h := arm32_sysreg.h | ||
79 | diff --git a/core/core.mk b/core/core.mk | 83 | diff --git a/core/core.mk b/core/core.mk |
80 | index c05815f3..68f45552 100644 | 84 | index a51cf847..28c7235c 100644 |
81 | --- a/core/core.mk | 85 | --- a/core/core.mk |
82 | +++ b/core/core.mk | 86 | +++ b/core/core.mk |
83 | @@ -8,6 +8,7 @@ arch-dir := core/arch/$(ARCH) | 87 | @@ -8,6 +8,7 @@ arch-dir := core/arch/$(ARCH) |
@@ -89,7 +93,7 @@ index c05815f3..68f45552 100644 | |||
89 | 93 | ||
90 | PLATFORM_$(PLATFORM) := y | 94 | PLATFORM_$(PLATFORM) := y |
91 | @@ -16,10 +17,6 @@ PLATFORM_FLAVOR_$(PLATFORM_FLAVOR) := y | 95 | @@ -16,10 +17,6 @@ PLATFORM_FLAVOR_$(PLATFORM_FLAVOR) := y |
92 | $(call cfg-depends-all,CFG_PAGED_USER_TA,CFG_WITH_PAGER CFG_WITH_USER_TA) | 96 | $(eval $(call cfg-depends-all,CFG_PAGED_USER_TA,CFG_WITH_PAGER CFG_WITH_USER_TA)) |
93 | include core/crypto.mk | 97 | include core/crypto.mk |
94 | 98 | ||
95 | -# Setup compiler for this sub module | 99 | -# Setup compiler for this sub module |
@@ -128,10 +132,10 @@ index 1f2c5990..c53a23b1 100644 | |||
128 | 132 | ||
129 | # Define these to something to discover accidental use | 133 | # Define these to something to discover accidental use |
130 | diff --git a/ta/mk/ta_dev_kit.mk b/ta/mk/ta_dev_kit.mk | 134 | diff --git a/ta/mk/ta_dev_kit.mk b/ta/mk/ta_dev_kit.mk |
131 | index fa0bddfe..ae70ef87 100644 | 135 | index 04a4f94b..e4b02ea7 100644 |
132 | --- a/ta/mk/ta_dev_kit.mk | 136 | --- a/ta/mk/ta_dev_kit.mk |
133 | +++ b/ta/mk/ta_dev_kit.mk | 137 | +++ b/ta/mk/ta_dev_kit.mk |
134 | @@ -78,6 +78,9 @@ clean: | 138 | @@ -92,6 +92,9 @@ clean: |
135 | @$(cmd-echo-silent) ' CLEAN $(O)' | 139 | @$(cmd-echo-silent) ' CLEAN $(O)' |
136 | ${q}if [ -d "$(O)" ]; then $(RMDIR) $(O); fi | 140 | ${q}if [ -d "$(O)" ]; then $(RMDIR) $(O); fi |
137 | 141 | ||
@@ -139,16 +143,16 @@ index fa0bddfe..ae70ef87 100644 | |||
139 | +include $(ta-dev-kit-dir$(sm))/mk/cc-option.mk | 143 | +include $(ta-dev-kit-dir$(sm))/mk/cc-option.mk |
140 | + | 144 | + |
141 | subdirs = . | 145 | subdirs = . |
142 | include $(ta-dev-kit-dir)/mk/subdir.mk | 146 | include $(ta-dev-kit-dir$(sm))/mk/subdir.mk |
143 | 147 | ||
144 | diff --git a/ta/ta.mk b/ta/ta.mk | 148 | diff --git a/ta/ta.mk b/ta/ta.mk |
145 | index 32353de3..9c64319d 100644 | 149 | index dde7be67..ca17054a 100644 |
146 | --- a/ta/ta.mk | 150 | --- a/ta/ta.mk |
147 | +++ b/ta/ta.mk | 151 | +++ b/ta/ta.mk |
148 | @@ -98,6 +98,7 @@ $(foreach f, $(libfiles), \ | 152 | @@ -157,6 +157,7 @@ $(foreach f, $(libfiles), \ |
149 | 153 | ||
150 | # Copy .mk files | 154 | # Copy .mk files |
151 | ta-mkfiles = mk/compile.mk mk/subdir.mk mk/gcc.mk mk/cleandirs.mk \ | 155 | ta-mkfiles = mk/compile.mk mk/subdir.mk mk/gcc.mk mk/clang.mk mk/cleandirs.mk \ |
152 | + mk/cc-option.mk \ | 156 | + mk/cc-option.mk \ |
153 | ta/arch/$(ARCH)/link.mk ta/arch/$(ARCH)/link_shlib.mk \ | 157 | ta/arch/$(ARCH)/link.mk ta/arch/$(ARCH)/link_shlib.mk \ |
154 | ta/mk/ta_dev_kit.mk | 158 | ta/mk/ta_dev_kit.mk |