All of lore.kernel.org
 help / color / mirror / Atom feed
* [master][PATCH 00/11] hardknott/master fixes
@ 2021-04-03  0:09 Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 01/11] Revert "optee-os: upgrade to upstream 3.11.0" Denys Dmytriyenko
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:09 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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

-- 
2.7.4


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [master][PATCH 01/11] Revert "optee-os: upgrade to upstream 3.11.0"
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
@ 2021-04-03  0:09 ` Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 02/11] ti-ipc-examples: fix deprecation of sys_errlist[] in glibc Denys Dmytriyenko
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:09 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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

diff --git a/recipes-security/optee/optee-os/0001-libutils-provide-empty-__getauxval-implementation.patch b/recipes-security/optee/optee-os/0001-libutils-provide-empty-__getauxval-implementation.patch
deleted file mode 100644
index 0120f5c..0000000
--- a/recipes-security/optee/optee-os/0001-libutils-provide-empty-__getauxval-implementation.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <ross.burton@arm.com>
-
-From 36e784f621bf5d5be9183beba35f39426277c110 Mon Sep 17 00:00:00 2001
-From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
-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 <volodymyr_babchuk@epam.com>
-Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-Reviewed-by: Jerome Forissier <jerome@forissier.org>
----
- 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
-
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
deleted file mode 100644
index 11296c8..0000000
--- a/recipes-security/optee/optee-os/0002-link.mk-implement-support-for-libnames-after-libgcc-.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <ross.burton@arm.com>
-
-From 73196b58ea6978ffa5e581738030f51c5789ef73 Mon Sep 17 00:00:00 2001
-From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
-Date: Tue, 13 Oct 2020 22:54:13 +0300
-Subject: [PATCH 2/3] link.mk: implement support for libnames-after-libgcc
- variable
-
-Newer versions of libgcc depend on external __getauxval() symbol, which is
-now provided by libutils. But libgcc is linked after libutils, so linker
-can't resolve that symbol. We can't include libgcc into linking group with
-libtutils, because libgcc provides symbols that conflict with libutil's
-ones, like __aeabi_idiv with friends for instance.
-
-So, to resolve libgcc dependency on libutils we need to link with libutils
-second time. To make things more generic, we will introduce
-$(libnames-after-libgcc) variable for libraries that should be linked after
-libgcc.
-
-Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
-Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-Reviewed-by: Jerome Forissier <jerome@forissier.org>
----
- ta/arch/arm/link.mk | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/ta/arch/arm/link.mk b/ta/arch/arm/link.mk
-index 445c285d..3025acb1 100644
---- a/ta/arch/arm/link.mk
-+++ b/ta/arch/arm/link.mk
-@@ -55,8 +55,11 @@ link-ldflags += --eh-frame-hdr
- link-ldadd += $(libstdc++$(sm)) $(libgcc_eh$(sm))
- endif
- link-ldadd += --end-group
--ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) $(libgcc$(sm))
- 
-+link-ldadd-after-libgcc += $(addprefix -l,$(libnames-after-libgcc))
-+
-+ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \
-+				$(libgcc$(sm)) $(link-ldadd-after-libgcc)
- 
- link-script-cppflags-$(sm) := \
- 	$(filter-out $(CPPFLAGS_REMOVE) $(cppflags-remove), \
-@@ -76,6 +79,7 @@ $(link-script-pp$(sm)): $(link-script$(sm)) $(conf-file) $(link-script-pp-makefi
- 		$(link-script-cppflags-$(sm)) $$< -o $$@
- 
- $(link-out-dir$(sm))/$(user-ta-uuid).elf: $(objs) $(libdeps) \
-+					  $(libdeps-after-libgcc) \
- 					  $(link-script-pp$(sm)) \
- 					  $(dynlistdep) \
- 					  $(additional-link-deps)
--- 
-2.25.1
-
diff --git a/recipes-security/optee/optee-os/0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch b/recipes-security/optee/optee-os/0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch
deleted file mode 100644
index 88ba5f8..0000000
--- a/recipes-security/optee/optee-os/0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <ross.burton@arm.com>
-
-From f50962e3f56f0932662b2ffa10afe53339a335dd Mon Sep 17 00:00:00 2001
-From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
-Date: Fri, 16 Oct 2020 16:36:08 +0300
-Subject: [PATCH 3/3] ta_dev_kit.mk: make sure that libutils is linked second
- time
-
-libgcc depends on __getauxval symbol from libuils. As, generally libutils
-is linked before libgcc, we will get "unresolved symbol" error. To resolve
-this dependency we need to link libutils second time - after libgcc.
-
-Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
-Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-Reviewed-by: Jerome Forissier <jerome@forissier.org>
----
- ta/mk/ta_dev_kit.mk | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
-diff --git a/ta/mk/ta_dev_kit.mk b/ta/mk/ta_dev_kit.mk
-index e28be677..d0e66317 100644
---- a/ta/mk/ta_dev_kit.mk
-+++ b/ta/mk/ta_dev_kit.mk
-@@ -78,6 +78,16 @@ endif
- libnames += dl
- libdeps += $(ta-dev-kit-dir$(sm))/lib/libdl.a
- 
-+# libutils provides __getauxval symbol which is needed by libgcc 10.x. We can't
-+# link libutils after libgcc, because libgcc will replace some symbols provided
-+# by libutils, which will cause further linking issues.
-+#
-+# But if we place libutils before libgcc, linker will not be able to resolve
-+# __getauxval. So we need to link with libutils twice: before and after libgcc.
-+# Hence it included both in $(libnames) and in $(libnames-after-libgcc)
-+libnames-after-libgcc += utils
-+libdeps-after-libgcc += $(ta-dev-kit-dir$(sm))/lib/libutils.a
-+
- # Pass config variable (CFG_) from conf.mk on the command line
- cppflags$(sm) += $(strip \
- 	$(foreach var, $(filter CFG_%,$(.VARIABLES)), \
--- 
-2.25.1
-
diff --git a/recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch b/recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch
deleted file mode 100644
index 1700539..0000000
--- a/recipes-security/optee/optee-os/0006-allow-setting-sysroot-for-libgcc-lookup.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 0bab935695ebcf0c533b49896ab18ff33d4a47d1 Mon Sep 17 00:00:00 2001
-From: Ross Burton <ross.burton@arm.com>
-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 <ross.burton@arm.com>
----
- 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
diff --git a/recipes-security/optee/optee-os/0007-allow-setting-sysroot-for-clang.patch b/recipes-security/optee/optee-os/0007-allow-setting-sysroot-for-clang.patch
deleted file mode 100644
index 5c0d0a5..0000000
--- a/recipes-security/optee/optee-os/0007-allow-setting-sysroot-for-clang.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 3167f2c0dba4db59d61b60a8fe66f969d20aafa9 Mon Sep 17 00:00:00 2001
-From: Brett Warren <brett.warren@arm.com>
-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 <brett.warren@arm.com>
----
- 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
diff --git a/recipes-security/optee/optee-os_%.bbappend b/recipes-security/optee/optee-os_%.bbappend
index 4043b8d..d7e81c5 100644
--- a/recipes-security/optee/optee-os_%.bbappend
+++ b/recipes-security/optee/optee-os_%.bbappend
@@ -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}
 }
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 02/11] ti-ipc-examples: fix deprecation of sys_errlist[] in glibc
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 01/11] Revert "optee-os: upgrade to upstream 3.11.0" Denys Dmytriyenko
@ 2021-04-03  0:09 ` Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 03/11] ti-img-rogue-driver: support OE toolchain alongside Poky one Denys Dmytriyenko
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:09 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko, Suman Anna

From: Denys Dmytriyenko <denys@konsulko.com>

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

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Cc: Suman Anna <s-anna@ti.com>
---
 ...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

diff --git a/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch b/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
new file mode 100644
index 0000000..ea51469
--- /dev/null
+++ b/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
@@ -0,0 +1,40 @@
+From cca4fd812959a0cd241dd3bbebfd461ece94c9b8 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <denis@denix.org>
+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 <denis@denix.org>
+---
+ 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
+
diff --git a/recipes-ti/ipc/ti-ipc-examples-linux_git.bb b/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
index 471d7ff..ab47955 100644
--- a/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
+++ b/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
@@ -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() {
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 03/11] ti-img-rogue-driver: support OE toolchain alongside Poky one
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 01/11] Revert "optee-os: upgrade to upstream 3.11.0" Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 02/11] ti-ipc-examples: fix deprecation of sys_errlist[] in glibc Denys Dmytriyenko
@ 2021-04-03  0:09 ` Denys Dmytriyenko
  2021-04-05 20:30   ` [EXTERNAL] " Gowtham Tammana
  2021-04-03  0:09 ` [master][PATCH 04/11] ti-ipc: suppress gcc10 multiple definitions of _GateHWSpinlock_cfgParams Denys Dmytriyenko
                   ` (7 subsequent siblings)
  10 siblings, 1 reply; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:09 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko, Gowtham Tammana

From: Denys Dmytriyenko <denys@konsulko.com>

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Cc: Gowtham Tammana <g-tammana@ti.com>
---
 ...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

diff --git a/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-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
--- /dev/null
+++ b/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk-support-OE-toolchain-alongside-Poky-one.patch
@@ -0,0 +1,26 @@
+From 0d291f91d86e59d87ce023b4e7b89f6b00aa4aab Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <denis@denix.org>
+Date: Sat, 27 Mar 2021 00:20:57 -0400
+Subject: [PATCH] compiler.mk: support OE toolchain alongside Poky one
+
+Signed-off-by: Denys Dmytriyenko <denis@denix.org>
+---
+ 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
+
diff --git a/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb b/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb
index db3901d..6b0e653 100644
--- a/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb
+++ b/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb
@@ -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


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 04/11] ti-ipc: suppress gcc10 multiple definitions of _GateHWSpinlock_cfgParams
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
                   ` (2 preceding siblings ...)
  2021-04-03  0:09 ` [master][PATCH 03/11] ti-img-rogue-driver: support OE toolchain alongside Poky one Denys Dmytriyenko
@ 2021-04-03  0:09 ` Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 05/11] gdbc6x: suppress gcc10 multiple definitions of *_varobj_ops Denys Dmytriyenko
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:09 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko, Suman Anna

From: Denys Dmytriyenko <denys@konsulko.com>

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

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Cc: Suman Anna <s-anna@ti.com>
---
 recipes-ti/ipc/ti-ipc.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-ti/ipc/ti-ipc.inc b/recipes-ti/ipc/ti-ipc.inc
index 3b0115e..34278d4 100644
--- a/recipes-ti/ipc/ti-ipc.inc
+++ b/recipes-ti/ipc/ti-ipc.inc
@@ -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"
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 05/11] gdbc6x: suppress gcc10 multiple definitions of *_varobj_ops
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
                   ` (3 preceding siblings ...)
  2021-04-03  0:09 ` [master][PATCH 04/11] ti-ipc: suppress gcc10 multiple definitions of _GateHWSpinlock_cfgParams Denys Dmytriyenko
@ 2021-04-03  0:09 ` Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 06/11] mpm-transport: suppress gcc10 multiple definiton of fw_qmss* Denys Dmytriyenko
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:09 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 recipes-devtools/gdbc6x/gdbc6x_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-devtools/gdbc6x/gdbc6x_git.bb b/recipes-devtools/gdbc6x/gdbc6x_git.bb
index 2d2f6c1..aa519a9 100644
--- a/recipes-devtools/gdbc6x/gdbc6x_git.bb
+++ b/recipes-devtools/gdbc6x/gdbc6x_git.bb
@@ -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
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 06/11] mpm-transport: suppress gcc10 multiple definiton of fw_qmss*
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
                   ` (4 preceding siblings ...)
  2021-04-03  0:09 ` [master][PATCH 05/11] gdbc6x: suppress gcc10 multiple definitions of *_varobj_ops Denys Dmytriyenko
@ 2021-04-03  0:09 ` Denys Dmytriyenko
  2021-04-03  0:09 ` [master][PATCH 07/11] {qmss,cppi,srio,pa,sa}-lld-test: suppress gcc10 multiple definition " Denys Dmytriyenko
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:09 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 recipes-ti/mpm-transport/mpm-transport_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-ti/mpm-transport/mpm-transport_git.bb b/recipes-ti/mpm-transport/mpm-transport_git.bb
index 3c28f28..9bbbb73 100644
--- a/recipes-ti/mpm-transport/mpm-transport_git.bb
+++ b/recipes-ti/mpm-transport/mpm-transport_git.bb
@@ -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"
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 07/11] {qmss,cppi,srio,pa,sa}-lld-test: suppress gcc10 multiple definition of fw_qmss*
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
                   ` (5 preceding siblings ...)
  2021-04-03  0:09 ` [master][PATCH 06/11] mpm-transport: suppress gcc10 multiple definiton of fw_qmss* Denys Dmytriyenko
@ 2021-04-03  0:09 ` Denys Dmytriyenko
  2021-04-03  0:10 ` [master][PATCH 08/11] vis: suppress "ldflags" QA error Denys Dmytriyenko
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:09 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 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(+)

diff --git a/recipes-bsp/cppi-lld/cppi-lld-test_git.bb b/recipes-bsp/cppi-lld/cppi-lld-test_git.bb
index b4f5c23..0c630b4 100644
--- a/recipes-bsp/cppi-lld/cppi-lld-test_git.bb
+++ b/recipes-bsp/cppi-lld/cppi-lld-test_git.bb
@@ -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}
diff --git a/recipes-bsp/pa-lld/pa-lld-test_git.bb b/recipes-bsp/pa-lld/pa-lld-test_git.bb
index 62ec122..760f188 100644
--- a/recipes-bsp/pa-lld/pa-lld-test_git.bb
+++ b/recipes-bsp/pa-lld/pa-lld-test_git.bb
@@ -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}
diff --git a/recipes-bsp/qmss-lld/qmss-lld-test_git.bb b/recipes-bsp/qmss-lld/qmss-lld-test_git.bb
index 77e698a..53f6dcf 100644
--- a/recipes-bsp/qmss-lld/qmss-lld-test_git.bb
+++ b/recipes-bsp/qmss-lld/qmss-lld-test_git.bb
@@ -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}
diff --git a/recipes-bsp/sa-lld/sa-lld-test_git.bb b/recipes-bsp/sa-lld/sa-lld-test_git.bb
index f3fa4f3..b9050b6 100644
--- a/recipes-bsp/sa-lld/sa-lld-test_git.bb
+++ b/recipes-bsp/sa-lld/sa-lld-test_git.bb
@@ -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}"
 
diff --git a/recipes-bsp/srio-lld/srio-lld-test_git.bb b/recipes-bsp/srio-lld/srio-lld-test_git.bb
index d2a0068..ca22b7d 100644
--- a/recipes-bsp/srio-lld/srio-lld-test_git.bb
+++ b/recipes-bsp/srio-lld/srio-lld-test_git.bb
@@ -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}
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 08/11] vis: suppress "ldflags" QA error
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
                   ` (6 preceding siblings ...)
  2021-04-03  0:09 ` [master][PATCH 07/11] {qmss,cppi,srio,pa,sa}-lld-test: suppress gcc10 multiple definition " Denys Dmytriyenko
@ 2021-04-03  0:10 ` Denys Dmytriyenko
  2021-04-03  0:10 ` [master][PATCH 09/11] edma3-lld: suppress ldflags " Denys Dmytriyenko
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:10 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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]

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 recipes-bsp/vis-fw/vis_01.50.07.15.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-bsp/vis-fw/vis_01.50.07.15.bb b/recipes-bsp/vis-fw/vis_01.50.07.15.bb
index 6eaf8de..3cd5648 100644
--- a/recipes-bsp/vis-fw/vis_01.50.07.15.bb
+++ b/recipes-bsp/vis-fw/vis_01.50.07.15.bb
@@ -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"
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 09/11] edma3-lld: suppress ldflags QA error
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
                   ` (7 preceding siblings ...)
  2021-04-03  0:10 ` [master][PATCH 08/11] vis: suppress "ldflags" QA error Denys Dmytriyenko
@ 2021-04-03  0:10 ` Denys Dmytriyenko
  2021-04-03  0:10 ` [master][PATCH 10/11] multiprocmgr-test: suppress ldflags and staticdev QA errors Denys Dmytriyenko
  2021-04-03  0:10 ` [master][PATCH 11/11] cuia: suppress installed-vs-shipped QA error Denys Dmytriyenko
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:10 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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]

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 recipes-bsp/edma3-lld/edma3-lld_git.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-bsp/edma3-lld/edma3-lld_git.bb b/recipes-bsp/edma3-lld/edma3-lld_git.bb
index 38db2e2..886f060 100644
--- a/recipes-bsp/edma3-lld/edma3-lld_git.bb
+++ b/recipes-bsp/edma3-lld/edma3-lld_git.bb
@@ -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"
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 10/11] multiprocmgr-test: suppress ldflags and staticdev QA errors
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
                   ` (8 preceding siblings ...)
  2021-04-03  0:10 ` [master][PATCH 09/11] edma3-lld: suppress ldflags " Denys Dmytriyenko
@ 2021-04-03  0:10 ` Denys Dmytriyenko
  2021-04-03  0:10 ` [master][PATCH 11/11] cuia: suppress installed-vs-shipped QA error Denys Dmytriyenko
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:10 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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]

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 recipes-ti/multiprocmgr/multiprocmgr-test_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-ti/multiprocmgr/multiprocmgr-test_git.bb b/recipes-ti/multiprocmgr/multiprocmgr-test_git.bb
index 7c3f9e1..8bcb110 100644
--- a/recipes-ti/multiprocmgr/multiprocmgr-test_git.bb
+++ b/recipes-ti/multiprocmgr/multiprocmgr-test_git.bb
@@ -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"
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [master][PATCH 11/11] cuia: suppress installed-vs-shipped QA error
  2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
                   ` (9 preceding siblings ...)
  2021-04-03  0:10 ` [master][PATCH 10/11] multiprocmgr-test: suppress ldflags and staticdev QA errors Denys Dmytriyenko
@ 2021-04-03  0:10 ` Denys Dmytriyenko
  10 siblings, 0 replies; 13+ messages in thread
From: Denys Dmytriyenko @ 2021-04-03  0:10 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@konsulko.com>

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]

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 recipes-bsp/cuia/cuia_1.0.0.13.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-bsp/cuia/cuia_1.0.0.13.bb b/recipes-bsp/cuia/cuia_1.0.0.13.bb
index 0422b0e..3efacb1 100644
--- a/recipes-bsp/cuia/cuia_1.0.0.13.bb
+++ b/recipes-bsp/cuia/cuia_1.0.0.13.bb
@@ -27,4 +27,4 @@ do_install() {
 COMPATIBLE_HOST ?= "null"
 COMPATIBLE_HOST_ti-soc = "(.*)"
 
-INSANE_SKIP_${PN} += "textrel"
+INSANE_SKIP_${PN} += "textrel installed-vs-shipped"
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [EXTERNAL] [master][PATCH 03/11] ti-img-rogue-driver: support OE toolchain alongside Poky one
  2021-04-03  0:09 ` [master][PATCH 03/11] ti-img-rogue-driver: support OE toolchain alongside Poky one Denys Dmytriyenko
@ 2021-04-05 20:30   ` Gowtham Tammana
  0 siblings, 0 replies; 13+ messages in thread
From: Gowtham Tammana @ 2021-04-05 20:30 UTC (permalink / raw)
  To: Denys Dmytriyenko, meta-ti; +Cc: Denys Dmytriyenko



>-----Original Message-----
>From: Denys Dmytriyenko <denis@denix.org>
>Sent: Friday, April 02, 2021 7:10 PM
>To: meta-ti@lists.yoctoproject.org
>Cc: Denys Dmytriyenko <denys@konsulko.com>; Tammana, Gowtham <g-
>tammana@ti.com>
>Subject: [EXTERNAL] [master][PATCH 03/11] ti-img-rogue-driver: support OE
>toolchain alongside Poky one
>
>From: Denys Dmytriyenko <denys@konsulko.com>
>
>Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
>Cc: Gowtham Tammana <g-tammana@ti.com>

Reviewed-by: Gowtham Tammana <g-tammana@ti.com>

>---
> ...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
>
>diff --git a/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-
>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
>--- /dev/null
>+++ b/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler.mk-
>support-OE-toolchain-alongside-Poky-one.patch
>@@ -0,0 +1,26 @@
>+From 0d291f91d86e59d87ce023b4e7b89f6b00aa4aab Mon Sep 17 00:00:00 2001
>+From: Denys Dmytriyenko <denis@denix.org>
>+Date: Sat, 27 Mar 2021 00:20:57 -0400
>+Subject: [PATCH] compiler.mk: support OE toolchain alongside Poky one
>+
>+Signed-off-by: Denys Dmytriyenko <denis@denix.org>
>+---
>+ 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
>+
>diff --git a/recipes-bsp/powervr-drivers/ti-img-rogue-
>driver_1.13.5776728.bb b/recipes-bsp/powervr-drivers/ti-img-rogue-
>driver_1.13.5776728.bb
>index db3901d..6b0e653 100644
>--- a/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb
>+++ b/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb
>@@ -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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-04-05 20:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-03  0:09 [master][PATCH 00/11] hardknott/master fixes Denys Dmytriyenko
2021-04-03  0:09 ` [master][PATCH 01/11] Revert "optee-os: upgrade to upstream 3.11.0" Denys Dmytriyenko
2021-04-03  0:09 ` [master][PATCH 02/11] ti-ipc-examples: fix deprecation of sys_errlist[] in glibc Denys Dmytriyenko
2021-04-03  0:09 ` [master][PATCH 03/11] ti-img-rogue-driver: support OE toolchain alongside Poky one Denys Dmytriyenko
2021-04-05 20:30   ` [EXTERNAL] " Gowtham Tammana
2021-04-03  0:09 ` [master][PATCH 04/11] ti-ipc: suppress gcc10 multiple definitions of _GateHWSpinlock_cfgParams Denys Dmytriyenko
2021-04-03  0:09 ` [master][PATCH 05/11] gdbc6x: suppress gcc10 multiple definitions of *_varobj_ops Denys Dmytriyenko
2021-04-03  0:09 ` [master][PATCH 06/11] mpm-transport: suppress gcc10 multiple definiton of fw_qmss* Denys Dmytriyenko
2021-04-03  0:09 ` [master][PATCH 07/11] {qmss,cppi,srio,pa,sa}-lld-test: suppress gcc10 multiple definition " Denys Dmytriyenko
2021-04-03  0:10 ` [master][PATCH 08/11] vis: suppress "ldflags" QA error Denys Dmytriyenko
2021-04-03  0:10 ` [master][PATCH 09/11] edma3-lld: suppress ldflags " Denys Dmytriyenko
2021-04-03  0:10 ` [master][PATCH 10/11] multiprocmgr-test: suppress ldflags and staticdev QA errors Denys Dmytriyenko
2021-04-03  0:10 ` [master][PATCH 11/11] cuia: suppress installed-vs-shipped QA error Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.