Skip to contentSkip to conversation

hardknott/master fixes

PATCH In review Denys Dmytriyenko 2 participants 13 messages Apr 3, 2021 – Apr 5, 2021 Broadcom iproc Arm architecture

lore
Share & tools
lore
#0 lore raw

cover hardknott/master fixes

From: Denys Dmytriyenko <[email protected]>

Set of fixes for meta-ti hardknott/master

gcc10 "multiple definition" errors are currently suppressed. Proper fixing in code is needed. Although, some components, like LLDs, are out of maintenance and are considered for deprecation.

https://gcc.gnu.org/gcc-10/porting_to.html

Denys Dmytriyenko (11):
Revert "optee-os: upgrade to upstream 3.11.0"
ti-ipc-examples: fix deprecation of sys_errlist[] in glibc
ti-img-rogue-driver: support OE toolchain alongside Poky one
ti-ipc: suppress gcc10 multiple definitions of
_GateHWSpinlock_cfgParams
gdbc6x: suppress gcc10 multiple definitions of *_varobj_ops
mpm-transport: suppress gcc10 multiple definiton of fw_qmss* {qmss,cppi,srio,pa,sa}-lld-test: suppress gcc10 multiple definition of
fw_qmss*
vis: suppress "ldflags" QA error
edma3-lld: suppress ldflags QA error
multiprocmgr-test: suppress ldflags and staticdev QA errors
cuia: suppress installed-vs-shipped QA error

 recipes-bsp/cppi-lld/cppi-lld-test_git.bb          |  2 +
 recipes-bsp/cuia/cuia_1.0.0.13.bb                  |  2 +-
 recipes-bsp/edma3-lld/edma3-lld_git.bb             |  3 ++
 recipes-bsp/pa-lld/pa-lld-test_git.bb              |  2 +
 ...k-support-OE-toolchain-alongside-Poky-one.patch | 26 +++++++++
 .../ti-img-rogue-driver_1.13.5776728.bb            |  4 +-
 recipes-bsp/qmss-lld/qmss-lld-test_git.bb          |  2 +
 recipes-bsp/sa-lld/sa-lld-test_git.bb              |  2 +
 recipes-bsp/srio-lld/srio-lld-test_git.bb          |  2 +
 recipes-bsp/vis-fw/vis_01.50.07.15.bb              |  1 +
 recipes-devtools/gdbc6x/gdbc6x_git.bb              |  2 +
 ...-provide-empty-__getauxval-implementation.patch | 62 ----------------------
 ...lement-support-for-libnames-after-libgcc-.patch | 55 -------------------
 ...mk-make-sure-that-libutils-is-linked-seco.patch | 44 ---------------
 ...6-allow-setting-sysroot-for-libgcc-lookup.patch | 34 ------------
 .../0007-allow-setting-sysroot-for-clang.patch     | 29 ----------
 recipes-security/optee/optee-os_%.bbappend         | 15 ------
 ...usterMgr-sys_errlist-has-been-deprecated-.patch | 40 ++++++++++++++
 recipes-ti/ipc/ti-ipc-examples-linux_git.bb        |  2 +
 recipes-ti/ipc/ti-ipc.inc                          |  2 +
 recipes-ti/mpm-transport/mpm-transport_git.bb      |  1 +
 recipes-ti/multiprocmgr/multiprocmgr-test_git.bb   |  2 +
 22 files changed, 93 insertions(+), 241 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk-support-OE-toolchain-alongside-Poky-one.patch
 delete mode 100644 recipes-security/optee/optee-os/0001-libutils-provide-empty-__getauxval-implementation.patch
 delete mode 100644 recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch
 delete mode 100644 recipes-security/optee/optee-os/0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch
 delete mode 100644 recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch
 delete mode 100644 recipes-security/optee/optee-os/0007-allow-setting-sysroot-for-clang.patch
 create mode 100644 recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/11 Revert "optee-os: upgrade to upstream 3.11.0"

From: Denys Dmytriyenko <[email protected]>

This reverts commit cb9297c9394783d94d69b044689bb226b074e7d2.

This commit was meant for dunfell and was merged to master by mistake, as meta-arm/master already has optee 3.11

---
 ...-provide-empty-__getauxval-implementation.patch | 62 ----------------------
 ...lement-support-for-libnames-after-libgcc-.patch | 55 -------------------
 ...mk-make-sure-that-libutils-is-linked-seco.patch | 44 ---------------
 ...6-allow-setting-sysroot-for-libgcc-lookup.patch | 34 ------------
 .../0007-allow-setting-sysroot-for-clang.patch     | 29 ----------
 recipes-security/optee/optee-os_%.bbappend         | 15 ------
 6 files changed, 239 deletions(-)
 delete mode 100644 recipes-security/optee/optee-os/0001-libutils-provide-empty-__getauxval-implementation.patch
 delete mode 100644 recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch
 delete mode 100644 recipes-security/optee/optee-os/0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch
 delete mode 100644 recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch
 delete mode 100644 recipes-security/optee/optee-os/0007-allow-setting-sysroot-for-clang.patch
recipes-security/optee/optee-os/0001-libutils-provide-empty-__getauxval-implementation.patch deleted +0 -62
deleted file mode 100644
index 0120f5c..0000000
@@ -1,62 +0,0 @@
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <[email protected]>
-
-From 36e784f621bf5d5be9183beba35f39426277c110 Mon Sep 17 00:00:00 2001
-From: Volodymyr Babchuk <[email protected]>
-Date: Tue, 13 Oct 2020 22:45:39 +0300
-Subject: [PATCH 1/3] libutils: provide empty __getauxval() implementation
-
-Never version of libgcc are built with LSE implementation in mind. To
-determine if LSE is available on platform it calls __getauxval(), so in
-some cases we can get undefined reference to __getauxval() error.
-
-Prominent case is libgcc_eh.a library, which is used by C++ TAs. Exception
-handler depends on atomic operations, so it tries to call
-init_have_lse_atomics() first. This function in turn calls __getauxval(),
-which causes linking error.
-
-In the future we can make __getauxval() to return actual platform
-capabilities.
-
-Signed-off-by: Volodymyr Babchuk <[email protected]>
-Reviewed-by: Jens Wiklander <[email protected]>
-Reviewed-by: Jerome Forissier <[email protected]>
----
- lib/libutils/ext/arch/arm/auxval.c | 12 ++++++++++++
- lib/libutils/ext/arch/arm/sub.mk   |  1 +
- 2 files changed, 13 insertions(+)
- create mode 100644 lib/libutils/ext/arch/arm/auxval.c
-
-diff --git a/lib/libutils/ext/arch/arm/auxval.c b/lib/libutils/ext/arch/arm/auxval.c
-new file mode 100644
-index 00000000..98bca850
---- /dev/null
-+++ b/lib/libutils/ext/arch/arm/auxval.c
-@@ -0,0 +1,12 @@
-+// SPDX-License-Identifier: BSD-2-Clause
-+/*
-+ * Copyright (c) 2020, EPAM Systems
-+ */
-+
-+#include <compiler.h>
-+
-+unsigned long int __getauxval (unsigned long int type);
-+unsigned long int __getauxval (unsigned long int type __unused)
-+{
-+	return 0;
-+}
-diff --git a/lib/libutils/ext/arch/arm/sub.mk b/lib/libutils/ext/arch/arm/sub.mk
-index dc5eed67..2e779066 100644
---- a/lib/libutils/ext/arch/arm/sub.mk
-+++ b/lib/libutils/ext/arch/arm/sub.mk
-@@ -3,6 +3,7 @@ srcs-$(CFG_ARM32_$(sm)) += aeabi_unwind.c
- endif
- srcs-$(CFG_ARM32_$(sm)) += atomic_a32.S
- srcs-$(CFG_ARM64_$(sm)) += atomic_a64.S
-+srcs-y += auxval.c
- ifneq ($(sm),ldelf) # TA, core
- srcs-$(CFG_ARM32_$(sm)) += mcount_a32.S
- srcs-$(CFG_ARM64_$(sm)) += mcount_a64.S
--- 
-2.25.1
-
recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch deleted +0 -55

55 lines not on this page · raw message

recipes-security/optee/optee-os/0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch deleted +0 -44

44 lines not on this page · raw message

recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch deleted +0 -34
deleted file mode 100644
index 1700539..0000000
@@ -1,34 +0,0 @@
-From 0bab935695ebcf0c533b49896ab18ff33d4a47d1 Mon Sep 17 00:00:00 2001
-From: Ross Burton <[email protected]>
-Date: Tue, 26 May 2020 14:38:02 -0500
-Subject: [PATCH] allow setting sysroot for libgcc lookup
-
-Explicitly pass the new variable LIBGCC_LOCATE_CFLAGS variable when searching
-for the compiler libraries as there's no easy way to reliably pass --sysroot
-otherwise.
-
-Upstream-Status: Pending [https://github.com/OP-TEE/optee_os/issues/4188]
-Signed-off-by: Ross Burton <[email protected]>
----
- mk/gcc.mk | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/mk/gcc.mk b/mk/gcc.mk
-index adc77a24..81bfa78a 100644
---- a/mk/gcc.mk
-+++ b/mk/gcc.mk
-@@ -13,11 +13,11 @@ nostdinc$(sm)	:= -nostdinc -isystem $(shell $(CC$(sm)) \
- 			-print-file-name=include 2> /dev/null)
- 
- # Get location of libgcc from gcc
--libgcc$(sm)  	:= $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \
-+libgcc$(sm)  	:= $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CFLAGS$(arch-bits-$(sm))) \
- 			-print-libgcc-file-name 2> /dev/null)
--libstdc++$(sm)	:= $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
-+libstdc++$(sm)	:= $(shell $(CXX$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
- 			-print-file-name=libstdc++.a 2> /dev/null)
--libgcc_eh$(sm)	:= $(shell $(CXX$(sm)) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
-+libgcc_eh$(sm)	:= $(shell $(CXX$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CXXFLAGS$(arch-bits-$(sm))) $(comp-cxxflags$(sm)) \
- 			-print-file-name=libgcc_eh.a 2> /dev/null)
- 
- # Define these to something to discover accidental use
recipes-security/optee/optee-os/0007-allow-setting-sysroot-for-clang.patch deleted +0 -29
deleted file mode 100644
index 5c0d0a5..0000000
@@ -1,29 +0,0 @@
-From 3167f2c0dba4db59d61b60a8fe66f969d20aafa9 Mon Sep 17 00:00:00 2001
-From: Brett Warren <[email protected]>
-Date: Wed, 23 Sep 2020 09:27:34 +0100
-Subject: [PATCH] optee: enable clang support
-
-When compiling with clang, the LIBGCC_LOCATE_CFLAG variable used
-to provide a sysroot wasn't included, which results in not locating
-compiler-rt. This is mitigated by including the variable as ammended.
-
-Upstream-Status: Pending
-ChangeId: 8ba69a4b2eb8ebaa047cb266c9aa6c2c3da45701
-Signed-off-by: Brett Warren <[email protected]>
----
- mk/clang.mk | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/mk/clang.mk b/mk/clang.mk
-index 0f48c836..47465523 100644
---- a/mk/clang.mk
-+++ b/mk/clang.mk
-@@ -27,7 +27,7 @@ comp-cflags-warns-clang := -Wno-language-extension-token \
- 
- # Note, use the compiler runtime library (libclang_rt.builtins.*.a) instead of
- # libgcc for clang
--libgcc$(sm)	:= $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) \
-+libgcc$(sm)	:= $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CFLAGS$(arch-bits-$(sm))) \
- 			-rtlib=compiler-rt -print-libgcc-file-name 2> /dev/null)
- 
- # Core ASLR relies on the executable being ready to run from its preferred load
recipes-security/optee/optee-os_%.bbappend +0 -15
index 4043b8d..d7e81c5 100644
@@ -1,18 +1,3 @@
-FILESEXTRAPATHS_prepend_ti-soc := "${THISDIR}/${PN}:"
-
-PV_ti-soc = "3.11.0+git${SRCPV}"
-
-SRCREV_ti-soc = "c4def2a8262a03244d9a88461699b9b8e43c6b55"
-
-SRC_URI_ti-soc = " \
-    git://github.com/OP-TEE/optee_os.git \
-    file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \
-    file://0007-allow-setting-sysroot-for-clang.patch \
-    file://0001-libutils-provide-empty-__getauxval-implementation.patch \
-    file://0002-link.mk-implement-support-for-libnames-after-libgcc-.patch \
-    file://0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch \
-"
-
 do_compile_prepend_ti-soc() {
     export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
 }
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/11 ti-ipc-examples: fix deprecation of sys_errlist[] in glibc

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

It was giving this warning for years, finally gone:
| warning: sys_errlist' is deprecated; use strerror' or `strerror_r' instead

---
 ...usterMgr-sys_errlist-has-been-deprecated-.patch | 40 ++++++++++++++++++++++
 recipes-ti/ipc/ti-ipc-examples-linux_git.bb        |  2 ++
 2 files changed, 42 insertions(+)
 create mode 100644 recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch new file +40 -0
new file mode 100644
index 0000000..ea51469
@@ -0,0 +1,40 @@
+From cca4fd812959a0cd241dd3bbebfd461ece94c9b8 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Mon, 29 Mar 2021 19:42:00 -0400
+Subject: [PATCH] examples/ClusterMgr: sys_errlist[] has been deprecated in
+ glibc
+
+Use strerror() instead.
+
+Upstream-Status: Pending
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ src/examples/templates/ex46_graph/manager/ClusterMgr.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/examples/templates/ex46_graph/manager/ClusterMgr.c b/src/examples/templates/ex46_graph/manager/ClusterMgr.c
+index 19216c9..a1fa679 100644
+--- a/src/examples/templates/ex46_graph/manager/ClusterMgr.c
++++ b/src/examples/templates/ex46_graph/manager/ClusterMgr.c
+@@ -714,7 +714,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait)
+     pid = fork();
+ 
+     if (pid == -1) {
+-        LOG "CM_system: fork error: %s\n", sys_errlist[errno] LOGF
++        LOG "CM_system: fork error: %s\n", strerror(errno) LOGF
+         status = -1;
+         goto leave;
+     }
+@@ -739,7 +739,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait)
+     else {
+         /* overlay a new executable */
+         execvp(argv[0], argv);
+-        LOG "CM_system: execvp error: %s\n", sys_errlist[errno] LOGF
++        LOG "CM_system: execvp error: %s\n", strerror(errno) LOGF
+         status = -1;
+     }
+ 
+-- 
+2.7.4
+
recipes-ti/ipc/ti-ipc-examples-linux_git.bb +2 -0
index 471d7ff..ab47955 100644
@@ -1,6 +1,8 @@
 DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios"
 require ti-ipc-examples.inc
 
+SRC_URI += "file://0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch;patchdir=../git/ipc-examples"
+
 DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native"
 
 do_compile_append() {
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/11 ti-img-rogue-driver: support OE toolchain alongside Poky one

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
 ...k-support-OE-toolchain-alongside-Poky-one.patch | 26 ++++++++++++++++++++++
 .../ti-img-rogue-driver_1.13.5776728.bb            |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk-support-OE-toolchain-alongside-Poky-one.patch
recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk-support-OE-toolchain-alongside-Poky-one.patch new file +26 -0
new file mode 100644
index 0000000..abe48df
@@ -0,0 +1,26 @@
+From 0d291f91d86e59d87ce023b4e7b89f6b00aa4aab Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Sat, 27 Mar 2021 00:20:57 -0400
+Subject: [PATCH] compiler.mk: support OE toolchain alongside Poky one
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ build/linux/config/compiler.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build/linux/config/compiler.mk b/build/linux/config/compiler.mk
+index 53a0bef..d45d438 100644
+--- a/build/linux/config/compiler.mk
++++ b/build/linux/config/compiler.mk
+@@ -65,7 +65,7 @@ define calculate-compiler-preferred-target
+    ifneq ($$(filter i386-% i486-% i586-% i686-%,$$($(1)_compiler_preferred_target)),)
+     $(1)_compiler_preferred_target := i386-linux-gnu
+    endif
+-   ifneq ($$(filter aarch64-poky-linux,$$($(1)_compiler_preferred_target)),)
++   ifneq ($$(filter aarch64-poky-linux aarch64-oe-linux,$$($(1)_compiler_preferred_target)),)
+     $(1)_compiler_preferred_target := aarch64-linux-gnu
+    endif
+    ifneq ($$(filter armv7a-cros-linux-gnueabi armv7l-tizen-linux-gnueabi,$$($(1)_compiler_preferred_target)),)
+-- 
+2.7.4
+
recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb +3 -1
index db3901d..6b0e653 100644
@@ -19,7 +19,9 @@ PROVIDES = "virtual/gpudriver"
 
 BRANCH = "1.13-5776728/linux-k5.4"
 
-SRC_URI = "git://git.ti.com/graphics/ti-img-rogue-driver.git;branch=${BRANCH}"
+SRC_URI = "git://git.ti.com/graphics/ti-img-rogue-driver.git;branch=${BRANCH} \
+    file://0001-compiler.mk-support-OE-toolchain-alongside-Poky-one.patch \
+"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.7.4
Reviewed-by on v1 3/11
#4 lore raw

Re: [EXTERNAL] [master][PATCH 03/11] ti-img-rogue-driver: support OE toolchain alongside Poky one

Quoted 11 lines

-----Original Message-----
From: Denys Dmytriyenko <[email protected]>
Sent: Friday, April 02, 2021 7:10 PM
To: [email protected]
Cc: Denys Dmytriyenko <[email protected]>; Tammana, Gowtham <g- [email protected]>
Subject: [EXTERNAL] [master][PATCH 03/11] ti-img-rogue-driver: support OE toolchain alongside Poky one

Quoted 4 lines

From: Denys Dmytriyenko <[email protected]>

Quoted 71 lines

---
...k-support-OE-toolchain-alongside-Poky-one.patch | 26
++++++++++++++++++++++
.../ti-img-rogue-driver_1.13.5776728.bb | 4 +++-

2 files changed, 29 insertions(+), 1 deletion(-)

create mode 100644 recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001- compiler.mk-support-OE-toolchain-alongside-Poky-one.patch

(quoted diff) +0 -0

compiler.mk-support-OE-toolchain-alongside-Poky-one.patch b/recipes- bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk-support-OE- toolchain-alongside-Poky-one.patch
new file mode 100644
index 0000000..abe48df

recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk- new file +0 -0

support-OE-toolchain-alongside-Poky-one.patch

recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk- new file +11 -0
@@ -0,0 +1,26 @@
+From 0d291f91d86e59d87ce023b4e7b89f6b00aa4aab Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Sat, 27 Mar 2021 00:20:57 -0400
+Subject: [PATCH] compiler.mk: support OE toolchain alongside Poky one
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ build/linux/config/compiler.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build/linux/config/compiler.mk

b/build/linux/config/compiler.mk

recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk- new file +5 -0
+index 53a0bef..d45d438 100644
+--- a/build/linux/config/compiler.mk
++++ b/build/linux/config/compiler.mk
+@@ -65,7 +65,7 @@ define calculate-compiler-preferred-target
+    ifneq ($$(filter i386-% i486-% i586-% i686-

%,$$($(1)_compiler_preferred_target)),)

recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk- new file +3 -0
+     $(1)_compiler_preferred_target := i386-linux-gnu
+    endif
+-   ifneq ($$(filter aarch64-poky-

linux,$$($(1)_compiler_preferred_target)),)
++ ifneq ($$(filter aarch64-poky-linux aarch64-oe-
linux,$$($(1)_compiler_preferred_target)),)

recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk- new file +3 -0
+     $(1)_compiler_preferred_target := aarch64-linux-gnu
+    endif
+    ifneq ($$(filter armv7a-cros-linux-gnueabi armv7l-tizen-linux-

gnueabi,$$($(1)_compiler_preferred_target)),)
+--
+2.7.4

recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk- new file +1 -0
+
(quoted diff) +0 -0

driver_1.13.5776728.bb b/recipes-bsp/powervr-drivers/ti-img-rogue- driver_1.13.5776728.bb
index db3901d..6b0e653 100644

recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb +0 -0
@@ -19,7 +19,9 @@ PROVIDES = "virtual/gpudriver"
 

BRANCH = "1.13-5776728/linux-k5.4"

-SRC_URI = "git://git.ti.com/graphics/ti-img-rogue- driver.git;branch=${BRANCH}"
+SRC_URI = "git://git.ti.com/graphics/ti-img-rogue- driver.git;branch=${BRANCH} \
+ file://0001-compiler.mk-support-OE-toolchain-alongside-Poky-one.patch
\
+"

S = "${WORKDIR}/git"

--
2.7.4

#5 lore raw

PATCH 4/11 ti-ipc: suppress gcc10 multiple definitions of _GateHWSpinlock_cfgParams

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Workaround for this gcc10 error:
.../linux/src/api/gates/GateHWSpinlock.c:96: multiple definition of `_GateHWSpinlock_cfgParams'; .libs/Ipc.o:.../linux/src/api/Ipc.c:97: first defined here

Needs to be resolved properly in the code:
https://gcc.gnu.org/gcc-10/porting_to.html

---
 recipes-ti/ipc/ti-ipc.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-ti/ipc/ti-ipc.inc +2 -0
index 3b0115e..34278d4 100644
@@ -15,4 +15,6 @@ BRANCH = "${TI_IPC_GIT_BRANCH}"
 SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev"
 SRCREV = "${TI_IPC_SRCREV}"
 
+CFLAGS += "-fcommon"
+
 S = "${WORKDIR}/git"
Signature · 1 line
2.7.4
#6 lore raw

PATCH 5/11 gdbc6x: suppress gcc10 multiple definitions of *_varobj_ops

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Workaround for the following gcc10 errors:
.../gdbc6x/gdb/varobj.h:221: multiple definition of ada_varobj_ops'; mi-cmd-var.o:.../gdbc6x/gdb/./varobj.h:221: first defined here .../gdbc6x/gdb/varobj.h:220: multiple definition of java_varobj_ops'; mi-cmd-var.o:.../gdbc6x/gdb/./varobj.h:220: first defined here .../gdbc6x/gdb/varobj.h:219: multiple definition of cplus_varobj_ops'; mi-cmd-var.o:.../gdbc6x/gdb/./varobj.h:219: first defined here .../gdbc6x/gdb/varobj.h:218: multiple definition of c_varobj_ops'; mi-cmd-var.o:.../gdbc6x/gdb/./varobj.h:218: first defined here

Needs to be resolved properly in the code later:
https://gcc.gnu.org/gcc-10/porting_to.html

---
 recipes-devtools/gdbc6x/gdbc6x_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-devtools/gdbc6x/gdbc6x_git.bb +2 -0
index 2d2f6c1..aa519a9 100644
@@ -19,6 +19,8 @@ S = "${WORKDIR}/git/gdbc6x"
 inherit update-rc.d
 inherit gettext
 
+CFLAGS += "-fcommon"
+
 do_configure () {
     cd ${S}
     ./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb
Signature · 1 line
2.7.4
#7 lore raw

PATCH 6/11 mpm-transport: suppress gcc10 multiple definiton of fw_qmss*

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Workaround for these:
qmss/mpm_transport_qmss_interface.so:(.bss+0x0): multiple definition of fw_qmssCfgVaddr'; mpm_transport.so:(.bss+0x0): first defined here qmss/mpm_transport_qmss_interface.so:(.bss+0x4): multiple definition of fw_qmssDataVaddr'; mpm_transport.so:(.bss+0x4): first defined here qmss/mpm_transport_qmss_interface.so:(.bss+0x8): multiple definition of fw_srioCfgVaddr'; mpm_transport.so:(.bss+0x8): first defined here qmss/mpm_transport_qmss_interface.so:(.bss+0xc): multiple definition of fw_srioSerdesCfgVaddr'; mpm_transport.so:(.bss+0xc): first defined here qmss/mpm_transport_qmss.so:(.bss+0x0): multiple definition of fw_qmssCfgVaddr'; mpm_transport.so:(.bss+0x0): first defined here qmss/mpm_transport_qmss.so:(.bss+0x4): multiple definition of fw_qmssDataVaddr'; mpm_transport.so:(.bss+0x4): first defined here qmss/mpm_transport_qmss.so:(.bss+0x8): multiple definition of fw_srioCfgVaddr'; mpm_transport.so:(.bss+0x8): first defined here qmss/mpm_transport_qmss.so:(.bss+0xc): multiple definition of fw_srioSerdesCfgVaddr'; mpm_transport.so:(.bss+0xc): first defined here qmss/mpm_transport_qmss_osal.so:(.bss+0x0): multiple definition of fw_qmssCfgVaddr'; mpm_transport.so:(.bss+0x0): first defined here qmss/mpm_transport_qmss_osal.so:(.bss+0x4): multiple definition of fw_qmssDataVaddr'; mpm_transport.so:(.bss+0x4): first defined here qmss/mpm_transport_qmss_osal.so:(.bss+0x8): multiple definition of fw_srioCfgVaddr'; mpm_transport.so:(.bss+0x8): first defined here qmss/mpm_transport_qmss_osal.so:(.bss+0xc): multiple definition of fw_srioSerdesCfgVaddr'; mpm_transport.so:(.bss+0xc): first defined here

Needs to be fixed properly later:
https://gcc.gnu.org/gcc-10/porting_to.html

---
 recipes-ti/mpm-transport/mpm-transport_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-ti/mpm-transport/mpm-transport_git.bb +1 -0
index 3c28f28..9bbbb73 100644
@@ -19,6 +19,7 @@ SRCREV = "e0e44fe55bef7ddf89f7ff3574f07fa906e72a37"
 PV = "2.0.4.0"
 PR = "r0"
 
+CC += "-fcommon"
 EXTRA_OEMAKE = "PDK_INSTALL_PATH=${STAGING_INCDIR}"
 EXTRA_OEMAKE_append_k2hk += "HYPLNK_TRANSPORT=true SRIO_TRANSPORT=true"
 EXTRA_OEMAKE_append_k2e += "HYPLNK_TRANSPORT=true"
Signature · 1 line
2.7.4
#8 lore raw

PATCH 7/11 {qmss,cppi,srio,pa,sa}-lld-test: suppress gcc10 multiple definition of fw_qmss*

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Workaround for these:
.../ti/drv/cppi/test/k2h/armv7/linux/fw_main.c:50: multiple definition of coreNum'; ./obj/k2h/cppi/test/cppi_test.o:.../ti/drv/cppi/test/src/cppi_test.c:102: first defined here .../ti/drv/cppi/test/k2h/armv7/linux/fw_main.c:50: multiple definition of errorCount'; ./obj/k2h/cppi/test/cppi_test.o:.../ti/drv/cppi/test/src/cppi_test.c:102: first defined here .../ti/drv/cppi/test/k2h/armv7/linux/fw_test.h:85: multiple definition of fw_passCfgVaddr'; ./obj/k2h/cppi/test/cppi_test.o:.../ti/drv/cppi/test/k2h/armv7/linux/fw_test.h:85: first defined here .../ti/drv/cppi/test/k2h/armv7/linux/fw_test.h:84: multiple definition of fw_srioCfgVaddr'; ./obj/k2h/cppi/test/cppi_test.o:.../ti/drv/cppi/test/k2h/armv7/linux/fw_test.h:84: first defined here .../ti/drv/cppi/test/k2h/armv7/linux/fw_test.h:83: multiple definition of fw_qmssDataVaddr'; ./obj/k2h/cppi/test/cppi_test.o:.../ti/drv/cppi/test/k2h/armv7/linux/fw_test.h:83: first defined here .../ti/drv/cppi/test/k2h/armv7/linux/fw_test.h:82: multiple definition of fw_qmssCfgVaddr'; ./obj/k2h/cppi/test/cppi_test.o:.../ti/drv/cppi/test/k2h/armv7/linux/fw_test.h:82: first defined here

Needs to be fixed properly later:
https://gcc.gnu.org/gcc-10/porting_to.html

---
 recipes-bsp/cppi-lld/cppi-lld-test_git.bb | 2 ++
 recipes-bsp/pa-lld/pa-lld-test_git.bb     | 2 ++
 recipes-bsp/qmss-lld/qmss-lld-test_git.bb | 2 ++
 recipes-bsp/sa-lld/sa-lld-test_git.bb     | 2 ++
 recipes-bsp/srio-lld/srio-lld-test_git.bb | 2 ++
 5 files changed, 10 insertions(+)
recipes-bsp/cppi-lld/cppi-lld-test_git.bb +2 -0
index b4f5c23..0c630b4 100644
@@ -7,6 +7,8 @@ PR = "${INC_PR}.0"
 
 CHOICELIST = "yes no"
 
+CFLAGS += "-fcommon"
+
 do_compile () {
 #   Now build the lld in the updated directory
 	for device in ${DEVICELIST}
recipes-bsp/pa-lld/pa-lld-test_git.bb +2 -0
index 62ec122..760f188 100644
@@ -8,6 +8,8 @@ PR = "${INC_PR}.1"
 
 CHOICELIST = "yes no"
 
+CC += "-fcommon"
+
 do_compile () {
 # Now build the lld unit test examples
 	for device in ${DEVICELIST}
recipes-bsp/qmss-lld/qmss-lld-test_git.bb +2 -0
index 77e698a..53f6dcf 100644
@@ -8,6 +8,8 @@ PR = "${INC_PR}.2"
 
 CHOICELIST = "yes no"
 
+CFLAGS += "-fcommon"
+
 do_compile () {
 #   Now build the lld in the updated directory
 	for device in ${DEVICELIST}
recipes-bsp/sa-lld/sa-lld-test_git.bb +2 -0
index f3fa4f3..b9050b6 100644
@@ -14,6 +14,8 @@ DEVICELIST_k2e  = "k2e"
 
 CHOICELIST = "no yes"
 
+CFLAGS += "-fcommon"
+
 PARALLEL_MAKE = ""
 EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} SA_SRC_DIR=${S}"
 
recipes-bsp/srio-lld/srio-lld-test_git.bb +2 -0
index d2a0068..ca22b7d 100644
@@ -7,6 +7,8 @@ PR = "${INC_PR}.0"
 
 CHOICELIST = "yes no"
 
+CFLAGS += "-fcommon"
+
 do_compile () {
 #   Now build the lld in the updated directory
 	for device in ${DEVICELIST}
Signature · 1 line
2.7.4
#9 lore raw

PATCH 8/11 vis: suppress "ldflags" QA error

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

It is a pre-built binary, hence no control over passing correct LDFLAGS.
This used to be a warning and recently became an error. Fixes:
ERROR: vis-01.50.07.15-r1 do_package_qa: QA Issue: File /usr/bin/RadioApp in package vis doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]

---
 recipes-bsp/vis-fw/vis_01.50.07.15.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-bsp/vis-fw/vis_01.50.07.15.bb +1 -0
index 6eaf8de..3cd5648 100644
@@ -29,6 +29,7 @@ RDEPENDS_${PN} += "${PN}-fw"
 
 FILES_${PN}-fw += "${base_libdir}/firmware/${DSPAPP}"
 
+INSANE_SKIP_${PN} = "ldflags"
 INSANE_SKIP_${PN}-fw = "arch"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 INHIBIT_PACKAGE_STRIP = "1"
Signature · 1 line
2.7.4
#10 lore raw

PATCH 9/11 edma3-lld: suppress ldflags QA error

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Resolves:
QA Issue: File /usr/lib/libedma3rm.so.1.0.0 in package edma3-lld doesn't have GNU_HASH (didn't pass LDFLAGS?)
QA Issue: File /usr/lib/libedma3.so.1.0.0 in package edma3-lld doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]
QA Issue: File /usr/bin/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg in package edma3-lld-test doesn't have GNU_HASH (didn't pass LDFLAGS?) QA Issue: File /usr/bin/edma3_drv_6638k2k_a15_sample_a15host_release.xa15fg in package edma3-lld-test doesn't have GNU_HASH (didn't pass LDFLAGS?) QA Issue: File /usr/bin/edma3_drv_6636k2h_a15_sample_a15host_release.xa15fg in package edma3-lld-test doesn't have GNU_HASH (didn't pass LDFLAGS?) QA Issue: File /usr/bin/edma3_drv_6630k2l_a15_sample_a15host_release.xa15fg in package edma3-lld-test doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]

---
 recipes-bsp/edma3-lld/edma3-lld_git.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-bsp/edma3-lld/edma3-lld_git.bb +3 -0
index 38db2e2..886f060 100644
@@ -73,3 +73,6 @@ do_install () {
 	install -c -m 755 ${S}/examples/edma3_user_space_driver/evmC66AK2E/bin/c66ak2e-evm/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg \
 		${D}/${bindir}/edma3_drv_c66ak2e_a15_sample_a15host_release.xa15fg
 }
+
+INSANE_SKIP_${PN} += "ldflags"
+INSANE_SKIP_${PN}-test += "ldflags"
Signature · 1 line
2.7.4
#11 lore raw

PATCH 10/11 multiprocmgr-test: suppress ldflags and staticdev QA errors

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Resolves:
QA Issue: File /usr/share/ti/examples/mpm/test/filetestdemo/host/bin/demo_filetest in package multiprocmgr-test doesn't have GNU_HASH (didn't pass LDFLAGS?) QA Issue: non -staticdev package contains static .a library: multiprocmgr-test path '/usr/share/ti/examples/mpm/test/filetestdemo/bufmgr/lib/bufmgr.a' [staticdev]

---
 recipes-ti/multiprocmgr/multiprocmgr-test_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-ti/multiprocmgr/multiprocmgr-test_git.bb +2 -0
index 7c3f9e1..8bcb110 100644
@@ -27,3 +27,5 @@ do_install() {
 	cp -r ${S}/src/sync ${D}${datadir}/ti/examples/mpm/src
 	cp -r ${S}/test ${D}${datadir}/ti/examples/mpm
 }
+
+INSANE_SKIP_${PN} = "ldflags staticdev"
Signature · 1 line
2.7.4
#12 lore raw

PATCH 11/11 cuia: suppress installed-vs-shipped QA error

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Fixes:
ERROR: cuia-1.0.0.13-r0 do_package: QA Issue: cuia: Files/directories were installed but not shipped in any package:
/usr/lib/gnu.targets.arm.rtsv5T.av5T
/usr/lib/syscalls.am3g
/usr/lib/gnu.targets.codesourcery.rtsv5T.a470MV
/usr/lib/syscalls.am4g
/usr/lib/gnu.targets.codesourcery.rtsv6.av6
/usr/lib/gnu.targets.arm.rtsv7A.av7A
/usr/lib/syscalls.am4fg
/usr/lib/gnu.targets.arm.rtsv7M.am4fg
/usr/lib/gnu.targets.arm.rtsv7M.am4g
/usr/lib/boot.am3g
/usr/lib/gnu.targets.arm.rtsv7M.am3g
/usr/lib/gnu.targets.arm.rtsv6.av6
/usr/lib/boot.am4fg
/usr/lib/boot.am4g
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
cuia: 14 installed and not shipped files. [installed-vs-shipped]

---
 recipes-bsp/cuia/cuia_1.0.0.13.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-bsp/cuia/cuia_1.0.0.13.bb +1 -1
index 0422b0e..3efacb1 100644
@@ -27,4 +27,4 @@ do_install() {
 COMPATIBLE_HOST ?= "null"
 COMPATIBLE_HOST_ti-soc = "(.*)"
 
-INSANE_SKIP_${PN} += "textrel"
+INSANE_SKIP_${PN} += "textrel installed-vs-shipped"
Signature · 1 line
2.7.4