diff options
| author | Denys Dmytriyenko <denis@denix.org> | 2020-12-18 03:40:34 +0000 |
|---|---|---|
| committer | Dan Murphy <dmurphy@ti.com> | 2021-01-08 16:07:24 -0600 |
| commit | cb9297c9394783d94d69b044689bb226b074e7d2 (patch) | |
| tree | 31c30eced0d14c9d65487a447cf1c079c33b7e11 /recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch | |
| parent | 2e46158ae39222717a3fb92958cebb148ee658f1 (diff) | |
| download | meta-ti-cb9297c9394783d94d69b044689bb226b074e7d2.tar.gz | |
optee-os: upgrade to upstream 3.11.0
As meta-arm has this version in master, but not in dunfell, temporarily overlay
corresponding patches locally - could be removed for the next release. Need to
alter FILESEXTRAPATHS for bbappend to locate local patches.
Since meta-arm/dunfell has 3.8-specific patches in SRC_URI, let's redefine it
completely to match 3.11-specific patch list in meta-arm/master.
Last, but not least, guard all upstream recipe varibales with "ti-soc" override
to only affect platforms in meta-ti, but not any other BSPs.
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Diffstat (limited to 'recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch')
| -rw-r--r-- | recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch b/recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch new file mode 100644 index 00000000..11296c8c --- /dev/null +++ b/recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | Upstream-Status: Backport | ||
| 2 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 3 | |||
| 4 | From 73196b58ea6978ffa5e581738030f51c5789ef73 Mon Sep 17 00:00:00 2001 | ||
| 5 | From: Volodymyr Babchuk <volodymyr_babchuk@epam.com> | ||
| 6 | Date: Tue, 13 Oct 2020 22:54:13 +0300 | ||
| 7 | Subject: [PATCH 2/3] link.mk: implement support for libnames-after-libgcc | ||
| 8 | variable | ||
| 9 | |||
| 10 | Newer versions of libgcc depend on external __getauxval() symbol, which is | ||
| 11 | now provided by libutils. But libgcc is linked after libutils, so linker | ||
| 12 | can't resolve that symbol. We can't include libgcc into linking group with | ||
| 13 | libtutils, because libgcc provides symbols that conflict with libutil's | ||
| 14 | ones, like __aeabi_idiv with friends for instance. | ||
| 15 | |||
| 16 | So, to resolve libgcc dependency on libutils we need to link with libutils | ||
| 17 | second time. To make things more generic, we will introduce | ||
| 18 | $(libnames-after-libgcc) variable for libraries that should be linked after | ||
| 19 | libgcc. | ||
| 20 | |||
| 21 | Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> | ||
| 22 | Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> | ||
| 23 | Reviewed-by: Jerome Forissier <jerome@forissier.org> | ||
| 24 | --- | ||
| 25 | ta/arch/arm/link.mk | 6 +++++- | ||
| 26 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
| 27 | |||
| 28 | diff --git a/ta/arch/arm/link.mk b/ta/arch/arm/link.mk | ||
| 29 | index 445c285d..3025acb1 100644 | ||
| 30 | --- a/ta/arch/arm/link.mk | ||
| 31 | +++ b/ta/arch/arm/link.mk | ||
| 32 | @@ -55,8 +55,11 @@ link-ldflags += --eh-frame-hdr | ||
| 33 | link-ldadd += $(libstdc++$(sm)) $(libgcc_eh$(sm)) | ||
| 34 | endif | ||
| 35 | link-ldadd += --end-group | ||
| 36 | -ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) $(libgcc$(sm)) | ||
| 37 | |||
| 38 | +link-ldadd-after-libgcc += $(addprefix -l,$(libnames-after-libgcc)) | ||
| 39 | + | ||
| 40 | +ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \ | ||
| 41 | + $(libgcc$(sm)) $(link-ldadd-after-libgcc) | ||
| 42 | |||
| 43 | link-script-cppflags-$(sm) := \ | ||
| 44 | $(filter-out $(CPPFLAGS_REMOVE) $(cppflags-remove), \ | ||
| 45 | @@ -76,6 +79,7 @@ $(link-script-pp$(sm)): $(link-script$(sm)) $(conf-file) $(link-script-pp-makefi | ||
| 46 | $(link-script-cppflags-$(sm)) $$< -o $$@ | ||
| 47 | |||
| 48 | $(link-out-dir$(sm))/$(user-ta-uuid).elf: $(objs) $(libdeps) \ | ||
| 49 | + $(libdeps-after-libgcc) \ | ||
| 50 | $(link-script-pp$(sm)) \ | ||
| 51 | $(dynlistdep) \ | ||
| 52 | $(additional-link-deps) | ||
| 53 | -- | ||
| 54 | 2.25.1 | ||
| 55 | |||
