[OE-core] [PATCH V2 1/2] buildcpio.py: Apply patch to fix build with -fno-common

2020-08-16 Thread Khem Raj
This sed expression implements the needed patch to fix compilation with
-fno-common, hopefully this patch will get included in 2.14 release and
we can remove this operation

Signed-off-by: Khem Raj 
---
v2: Fix the sdk sed expression, which seems to not work on v1

 meta/lib/oeqa/runtime/cases/buildcpio.py | 3 ++-
 meta/lib/oeqa/sdk/cases/buildcpio.py | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/runtime/cases/buildcpio.py 
b/meta/lib/oeqa/runtime/cases/buildcpio.py
index d0f91668b2..e29bf16ccb 100644
--- a/meta/lib/oeqa/runtime/cases/buildcpio.py
+++ b/meta/lib/oeqa/runtime/cases/buildcpio.py
@@ -27,6 +27,7 @@ class BuildCpioTest(OERuntimeTestCase):
 @OEHasPackage(['autoconf'])
 def test_cpio(self):
 self.project.download_archive()
-self.project.run_configure('--disable-maintainer-mode','')
+self.project.run_configure('--disable-maintainer-mode',
+   'sed -i -e "/char \*program_name/d" 
src/global.c;')
 self.project.run_make()
 self.project.run_install()
diff --git a/meta/lib/oeqa/sdk/cases/buildcpio.py 
b/meta/lib/oeqa/sdk/cases/buildcpio.py
index 902e93f623..e565826541 100644
--- a/meta/lib/oeqa/sdk/cases/buildcpio.py
+++ b/meta/lib/oeqa/sdk/cases/buildcpio.py
@@ -28,6 +28,7 @@ class BuildCpioTest(OESDKTestCase):
 self.assertTrue(os.path.isdir(dirs["source"]))
 os.makedirs(dirs["build"])
 
+self._run("sed -i -e '/char.*program_name/d' 
{source}/src/global.c".format(**dirs))
 self._run("cd {build} && {source}/configure 
--disable-maintainer-mode $CONFIGURE_FLAGS".format(**dirs))
 self._run("cd {build} && make -j".format(**dirs))
 self._run("cd {build} && make install 
DESTDIR={install}".format(**dirs))
-- 
2.28.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141555): 
https://lists.openembedded.org/g/openembedded-core/message/141555
Mute This Topic: https://lists.openembedded.org/mt/76237654/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH 2/2] buildgalculator: Patch to fix build with -fno-common

2020-08-16 Thread Khem Raj
We need to apply a patch to galculator for it to build with gcc-10+
Remove double definition of 'prefs' variable

Signed-off-by: Khem Raj 
---
 meta/lib/oeqa/sdk/cases/buildgalculator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/sdk/cases/buildgalculator.py 
b/meta/lib/oeqa/sdk/cases/buildgalculator.py
index bbaa5c55c9..1121ed20ef 100644
--- a/meta/lib/oeqa/sdk/cases/buildgalculator.py
+++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py
@@ -35,7 +35,7 @@ class GalculatorTest(OESDKTestCase):
 self.assertTrue(os.path.isdir(dirs["source"]))
 os.makedirs(dirs["build"])
 
-self._run("cd {source} && autoreconf -i -f -I 
$OECORE_TARGET_SYSROOT/usr/share/aclocal -I m4".format(**dirs))
+self._run("cd {source} && sed -i -e '/s_preferences.*prefs;/d' 
src/main.c && autoreconf -i -f -I $OECORE_TARGET_SYSROOT/usr/share/aclocal -I 
m4".format(**dirs))
 self._run("cd {build} && {source}/configure 
$CONFIGURE_FLAGS".format(**dirs))
 self._run("cd {build} && make -j".format(**dirs))
 self._run("cd {build} && make install 
DESTDIR={install}".format(**dirs))
-- 
2.28.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141556): 
https://lists.openembedded.org/g/openembedded-core/message/141556
Mute This Topic: https://lists.openembedded.org/mt/76237655/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH V3] gpgme: fix multilib header conflict

2020-08-16 Thread Changqing Li
From: Changqing Li 

fix error:
file /usr/include/gpgme.h conflicts between attempted installs of 
gpgme-dev-1.13.1-r0.core2_64 and lib32-gpgme-dev-1.13.1-r0.core2_32

diff of gpgme-32.h and gpgme-64.h
21c21
<  * Generated from gpgme.h.in for i686-pokymllib32-linux-gnu.
---
>  * Generated from gpgme.h.in for x86_64-poky-linux-gnu.
109c109
< #if 64
---
> #if 0
111c111
< #error GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section 
"Largefile support (LFS)" in the GPGME manual.
---
> #error GPGME was compiled with _FILE_OFFSET_BITS = 0, please see the section 
> "Largefile support (LFS)" in the GPGME manual.
113,114c113,114
< #if (_FILE_OFFSET_BITS) != (64)
< #error GPGME was compiled with a different value for _FILE_OFFSET_BITS, 
namely 64, please see the section "Largefile support (LFS)" in the GPGME manual.
---
> #if (_FILE_OFFSET_BITS) != (0)
> #error GPGME was compiled with a different value for _FILE_OFFSET_BITS, 
> namely 0, please see the section "Largefile support (LFS)" in the GPGME 
> manual.

Signed-off-by: Changqing Li 
---
 meta/recipes-support/gpgme/gpgme_1.13.1.bb | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/gpgme/gpgme_1.13.1.bb 
b/meta/recipes-support/gpgme/gpgme_1.13.1.bb
index 9fc1ae24a4..b51534351d 100644
--- a/meta/recipes-support/gpgme/gpgme_1.13.1.bb
+++ b/meta/recipes-support/gpgme/gpgme_1.13.1.bb
@@ -59,7 +59,7 @@ EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \
  --disable-lang-python-test \
 '
 
-inherit autotools texinfo binconfig-disabled pkgconfig distutils-common-base 
${PYTHON_INHERIT}
+inherit autotools texinfo binconfig-disabled pkgconfig distutils-common-base 
${PYTHON_INHERIT} multilib_header
 
 export PKG_CONFIG='pkg-config'
 
@@ -83,3 +83,7 @@ do_configure_prepend () {
rm -f ${S}/m4/libassuan.m4
rm -f ${S}/m4/python.m4
 }
+
+do_install_append() {
+   oe_multilib_header gpgme.h
+}
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141554): 
https://lists.openembedded.org/g/openembedded-core/message/141554
Mute This Topic: https://lists.openembedded.org/mt/76237360/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH V2] libffi: fix multilib header conflict

2020-08-16 Thread Changqing Li
From: Changqing Li 

fix error:
file /usr/include/ffitarget.h conflicts between attempted installs of 
lib32-libffi-dev-3.3-r0.armv7vet2hf_vfp and libffi-dev-3.3-r0.cortexa57

part of diff of ffitarget-32.h and ffitarget-64.h

< #ifdef __ILP32__
< #define FFI_SIZEOF_ARG 8
< #define FFI_SIZEOF_JAVA_RAW  4
< typedef unsigned long long ffi_arg;
< typedef signed long long ffi_sarg;
< #elif defined(_M_ARM64)
< #define FFI_SIZEOF_ARG 8
< typedef unsigned long long ffi_arg;
< typedef signed long long ffi_sarg;
---
> typedef unsigned long  ffi_arg;
> typedef signed longffi_sarg;
>
> typedef enum ffi_abi {
>   FFI_FIRST_ABI = 0,
>   FFI_SYSV,
>   FFI_VFP,
>   FFI_LAST_ABI,
> #if defined(__ARM_PCS_VFP) || defined(_M_ARM)
>   FFI_DEFAULT_ABI = FFI_VFP,
40,41c49,51
< typedef unsigned long ffi_arg;
< typedef signed long ffi_sarg;
---
>   FFI_DEFAULT_ABI = FFI_SYSV,
> #endif
> } ffi_abi;
44,50c54,61
< typedef enum ffi_abi
<   {
< FFI_FIRST_ABI = 0,
< FFI_SYSV,
< FFI_LAST_ABI,
< FFI_DEFAULT_ABI = FFI_SYSV
<   } ffi_abi;
---
> #define FFI_EXTRA_CIF_FIELDS  \
>   int vfp_used;   \
>   unsigned short vfp_reg_free, vfp_nargs; \
>   signed char vfp_args[16]\
>
> #define FFI_TARGET_SPECIFIC_VARIADIC
> #ifndef _M_ARM
> #define FFI_TARGET_HAS_COMPLEX_TYPE
55a67
> #define FFI_GO_CLOSURES 1
61,62c73,74
< #define FFI_TRAMPOLINE_SIZE 16
< #define FFI_TRAMPOLINE_CLOSURE_OFFSET 16
---
> #define FFI_TRAMPOLINE_SIZE 12
> #define FFI_TRAMPOLINE_CLOSURE_OFFSET 8

Signed-off-by: Changqing Li 
---
 meta/recipes-support/libffi/libffi_3.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/libffi/libffi_3.3.bb 
b/meta/recipes-support/libffi/libffi_3.3.bb
index e5beb985c6..9dfdb9e39b 100644
--- a/meta/recipes-support/libffi/libffi_3.3.bb
+++ b/meta/recipes-support/libffi/libffi_3.3.bb
@@ -28,7 +28,7 @@ EXTRA_OEMAKE_class-target = "LIBTOOLFLAGS='--tag=CC'"
 inherit autotools texinfo multilib_header
 
 do_install_append() {
-   oe_multilib_header ffi.h
+   oe_multilib_header ffi.h ffitarget.h
 }
 
 FILES_${PN}-dev += "${libdir}/libffi-${PV}"
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141553): 
https://lists.openembedded.org/g/openembedded-core/message/141553
Mute This Topic: https://lists.openembedded.org/mt/76237350/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [OE-core] [PATCH] gcc10: Don't default back to -fcommon

2020-08-16 Thread Khem Raj
On Sun, Aug 16, 2020 at 6:47 AM Richard Purdie
 wrote:
>
> On Sat, 2020-08-15 at 19:41 -0700, Khem Raj wrote:
> > Bruce,
> >
> > We need
> > https://github.com/torvalds/linux/commit/168200b6d6ea0cb5765943ec5da5b8149701f36a
> > backported to 5.4 kernels for perf to build with -fno-common can you
> > queue this in your kernel updates as soon as you can ?
>
> I think we have other active kernels which will also need it as even
> with Khem's patch we still see failures:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1267
>

I see

meta_ide.MetaIDE.test_meta_ide_can_build_cpio_project: FAILED (64.00s)

It seems the sdk fix for cpio is not working properly

> Cheers,
>
> Richard
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141552): 
https://lists.openembedded.org/g/openembedded-core/message/141552
Mute This Topic: https://lists.openembedded.org/mt/75983138/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [OE-core] [PATCH 3/3] linux-yocto: Backport a patch to fix perf with -fno-common

2020-08-16 Thread Bruce Ashfield
On Sun, Aug 16, 2020 at 7:15 PM Khem Raj  wrote:

> On Sun, Aug 16, 2020 at 3:30 PM Bruce Ashfield 
> wrote:
> >
> >
> >
> > On Sun, Aug 16, 2020 at 3:08 AM Khem Raj  wrote:
> >>
> >> Temp fix until linux-yocto picks it up
> >>
> >
> > These really need to be submitted to the linux-yocto mailing list as
> proper patches.
> >
> > When they are submitted like this, it requires me to extract the patch,
> or hunt up the original commit, see if it has already been submitted to
> linux-stable (and if not, it should be), apply it to the kernel, revert
> this commit if it happens to have merged and then finally do my update.
> >
>
> I know, it was a ad-hoc fix for autobuilders if RP wanted to try
>

No worries. I should have realized as well. Itchy trigger finger as I work
through the final v5.8 issues :D

Bruce



>
> > or, it could be submitted to linux-yocto like any patch, and it will be
> applied and show up with the next update.
> >
> > I'll take care of getting this into linux-yocto with my update that is
> coming later today.
> >
> > Cheers,
> >
> > Bruce
> >
> >
> >>
> >> Signed-off-by: Khem Raj 
> >> ---
> >>  ...-definition-of-traceid_list-global-v.patch | 66 +++
> >>  meta/recipes-kernel/linux/linux-yocto_5.4.bb  |  2 +
> >>  2 files changed, 68 insertions(+)
> >>  create mode 100644
> meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
> >>
> >> diff --git
> a/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
> b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
> >> new file mode 100644
> >> index 00..0fc9876501
> >> --- /dev/null
> >> +++
> b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
> >> @@ -0,0 +1,66 @@
> >> +From 168200b6d6ea0cb5765943ec5da5b8149701f36a Mon Sep 17 00:00:00 2001
> >> +From: Leo Yan 
> >> +Date: Tue, 5 May 2020 21:36:42 +0800
> >> +Subject: [PATCH] perf cs-etm: Move definition of 'traceid_list' global
> >> + variable from header file
> >> +
> >> +The variable 'traceid_list' is defined in the header file cs-etm.h,
> >> +if multiple C files include cs-etm.h the compiler might complaint for
> >> +multiple definition of 'traceid_list'.
> >> +
> >> +To fix multiple definition error, move the definition of 'traceid_list'
> >> +into cs-etm.c.
> >> +
> >> +Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight
> metadata")
> >> +Reported-by: Thomas Backlund 
> >> +Signed-off-by: Leo Yan 
> >> +Reviewed-by: Mathieu Poirier 
> >> +Reviewed-by: Mike Leach 
> >> +Tested-by: Mike Leach 
> >> +Tested-by: Thomas Backlund 
> >> +Cc: Alexander Shishkin 
> >> +Cc: Jiri Olsa 
> >> +Cc: Mark Rutland 
> >> +Cc: Namhyung Kim 
> >> +Cc: Peter Zijlstra 
> >> +Cc: Suzuki Poulouse 
> >> +Cc: Tor Jeremiassen 
> >> +Cc: linux-arm-ker...@lists.infradead.org
> >> +Link:
> http://lore.kernel.org/lkml/20200505133642.4756-1-leo@linaro.org
> >> +Signed-off-by: Arnaldo Carvalho de Melo 
> >> +---
> >> + tools/perf/util/cs-etm.c | 3 +++
> >> + tools/perf/util/cs-etm.h | 3 ---
> >> + 2 files changed, 3 insertions(+), 3 deletions(-)
> >> +
> >> +diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
> >> +index 3c802fde4954..c283223fb31f 100644
> >> +--- a/tools/perf/util/cs-etm.c
> >>  b/tools/perf/util/cs-etm.c
> >> +@@ -94,6 +94,9 @@ struct cs_etm_queue {
> >> +   struct cs_etm_traceid_queue **traceid_queues;
> >> + };
> >> +
> >> ++/* RB tree for quick conversion between traceID and metadata pointers
> */
> >> ++static struct intlist *traceid_list;
> >> ++
> >> + static int cs_etm__update_queues(struct cs_etm_auxtrace *etm);
> >> + static int cs_etm__process_queues(struct cs_etm_auxtrace *etm);
> >> + static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace
> *etm,
> >> +diff --git a/tools/perf/util/cs-etm.h b/tools/perf/util/cs-etm.h
> >> +index 650ecc2a6349..4ad925d6d799 100644
> >> +--- a/tools/perf/util/cs-etm.h
> >>  b/tools/perf/util/cs-etm.h
> >> +@@ -114,9 +114,6 @@ enum cs_etm_isa {
> >> +   CS_ETM_ISA_T32,
> >> + };
> >> +
> >> +-/* RB tree for quick conversion between traceID and metadata pointers
> */
> >> +-struct intlist *traceid_list;
> >> +-
> >> + struct cs_etm_queue;
> >> +
> >> + struct cs_etm_packet {
> >> +--
> >> +2.28.0
> >> +
> >> diff --git a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
> b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
> >> index f85c54e7f7..5a3180f36d 100644
> >> --- a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
> >> +++ b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
> >> @@ -32,6 +32,8 @@ SRC_URI = "git://
> git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA
> 
> >>  SRC_URI_append_qemuppc64 = " file://defconfig"
> >>  CFLAGS += "-Wno-error"
> >>
> >> +SRC_URI_append = "
> file://0001-perf-cs-etm-Move-definition-of-traceid_list-glo

Re: [OE-core] [PATCH 3/3] linux-yocto: Backport a patch to fix perf with -fno-common

2020-08-16 Thread Khem Raj
On Sun, Aug 16, 2020 at 3:30 PM Bruce Ashfield  wrote:
>
>
>
> On Sun, Aug 16, 2020 at 3:08 AM Khem Raj  wrote:
>>
>> Temp fix until linux-yocto picks it up
>>
>
> These really need to be submitted to the linux-yocto mailing list as proper 
> patches.
>
> When they are submitted like this, it requires me to extract the patch, or 
> hunt up the original commit, see if it has already been submitted to 
> linux-stable (and if not, it should be), apply it to the kernel, revert this 
> commit if it happens to have merged and then finally do my update.
>

I know, it was a ad-hoc fix for autobuilders if RP wanted to try

> or, it could be submitted to linux-yocto like any patch, and it will be 
> applied and show up with the next update.
>
> I'll take care of getting this into linux-yocto with my update that is coming 
> later today.
>
> Cheers,
>
> Bruce
>
>
>>
>> Signed-off-by: Khem Raj 
>> ---
>>  ...-definition-of-traceid_list-global-v.patch | 66 +++
>>  meta/recipes-kernel/linux/linux-yocto_5.4.bb  |  2 +
>>  2 files changed, 68 insertions(+)
>>  create mode 100644 
>> meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>>
>> diff --git 
>> a/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>>  
>> b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>> new file mode 100644
>> index 00..0fc9876501
>> --- /dev/null
>> +++ 
>> b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>> @@ -0,0 +1,66 @@
>> +From 168200b6d6ea0cb5765943ec5da5b8149701f36a Mon Sep 17 00:00:00 2001
>> +From: Leo Yan 
>> +Date: Tue, 5 May 2020 21:36:42 +0800
>> +Subject: [PATCH] perf cs-etm: Move definition of 'traceid_list' global
>> + variable from header file
>> +
>> +The variable 'traceid_list' is defined in the header file cs-etm.h,
>> +if multiple C files include cs-etm.h the compiler might complaint for
>> +multiple definition of 'traceid_list'.
>> +
>> +To fix multiple definition error, move the definition of 'traceid_list'
>> +into cs-etm.c.
>> +
>> +Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata")
>> +Reported-by: Thomas Backlund 
>> +Signed-off-by: Leo Yan 
>> +Reviewed-by: Mathieu Poirier 
>> +Reviewed-by: Mike Leach 
>> +Tested-by: Mike Leach 
>> +Tested-by: Thomas Backlund 
>> +Cc: Alexander Shishkin 
>> +Cc: Jiri Olsa 
>> +Cc: Mark Rutland 
>> +Cc: Namhyung Kim 
>> +Cc: Peter Zijlstra 
>> +Cc: Suzuki Poulouse 
>> +Cc: Tor Jeremiassen 
>> +Cc: linux-arm-ker...@lists.infradead.org
>> +Link: http://lore.kernel.org/lkml/20200505133642.4756-1-leo@linaro.org
>> +Signed-off-by: Arnaldo Carvalho de Melo 
>> +---
>> + tools/perf/util/cs-etm.c | 3 +++
>> + tools/perf/util/cs-etm.h | 3 ---
>> + 2 files changed, 3 insertions(+), 3 deletions(-)
>> +
>> +diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
>> +index 3c802fde4954..c283223fb31f 100644
>> +--- a/tools/perf/util/cs-etm.c
>>  b/tools/perf/util/cs-etm.c
>> +@@ -94,6 +94,9 @@ struct cs_etm_queue {
>> +   struct cs_etm_traceid_queue **traceid_queues;
>> + };
>> +
>> ++/* RB tree for quick conversion between traceID and metadata pointers */
>> ++static struct intlist *traceid_list;
>> ++
>> + static int cs_etm__update_queues(struct cs_etm_auxtrace *etm);
>> + static int cs_etm__process_queues(struct cs_etm_auxtrace *etm);
>> + static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm,
>> +diff --git a/tools/perf/util/cs-etm.h b/tools/perf/util/cs-etm.h
>> +index 650ecc2a6349..4ad925d6d799 100644
>> +--- a/tools/perf/util/cs-etm.h
>>  b/tools/perf/util/cs-etm.h
>> +@@ -114,9 +114,6 @@ enum cs_etm_isa {
>> +   CS_ETM_ISA_T32,
>> + };
>> +
>> +-/* RB tree for quick conversion between traceID and metadata pointers */
>> +-struct intlist *traceid_list;
>> +-
>> + struct cs_etm_queue;
>> +
>> + struct cs_etm_packet {
>> +--
>> +2.28.0
>> +
>> diff --git a/meta/recipes-kernel/linux/linux-yocto_5.4.bb 
>> b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
>> index f85c54e7f7..5a3180f36d 100644
>> --- a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
>> +++ b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
>> @@ -32,6 +32,8 @@ SRC_URI = 
>> "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA
>>  SRC_URI_append_qemuppc64 = " file://defconfig"
>>  CFLAGS += "-Wno-error"
>>
>> +SRC_URI_append = " 
>> file://0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch"
>> +
>>  LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
>>  LINUX_VERSION ?= "5.4.57"
>>
>> --
>> 2.28.0
>>
>> 
>
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await thee at 
> its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141550): 
https://lists.openembedded.org/g/openembedded-core/

Re: [OE-core] [PATCH] gcc10: Don't default back to -fcommon

2020-08-16 Thread Khem Raj
Awesome, thanks!

On Sun, Aug 16, 2020 at 3:55 PM Bruce Ashfield  wrote:
>
>
>
> On Sun, Aug 16, 2020 at 9:47 AM Richard Purdie 
>  wrote:
>>
>> On Sat, 2020-08-15 at 19:41 -0700, Khem Raj wrote:
>> > Bruce,
>> >
>> > We need
>> > https://github.com/torvalds/linux/commit/168200b6d6ea0cb5765943ec5da5b8149701f36a
>> > backported to 5.4 kernels for perf to build with -fno-common can you
>> > queue this in your kernel updates as soon as you can ?
>>
>> I think we have other active kernels which will also need it as even
>> with Khem's patch we still see failures:
>>
>
> I've taken care of linux-yocto now, I don't think there are any active use 
> cases for those kernels that won't be covered.
>
> Cheers,
>
> Bruce
>
>
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1267
>>
>> Cheers,
>>
>> Richard
>>
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await thee at 
> its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141549): 
https://lists.openembedded.org/g/openembedded-core/message/141549
Mute This Topic: https://lists.openembedded.org/mt/75983138/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH] localedef: Update to include floatn.h fix

2020-08-16 Thread Khem Raj
Currently localedef-native build fails on older hosts which have glibc
headers without floatn.h this patch created a local file to avoid this
dependency

Signed-off-by: Khem Raj 
Cc: Denys Dmytriyenko 
Cc: Philip Balister 
---
 meta/recipes-core/glibc/glibc-version.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/glibc/glibc-version.inc 
b/meta/recipes-core/glibc/glibc-version.inc
index 2e0a71c303..1566056297 100644
--- a/meta/recipes-core/glibc/glibc-version.inc
+++ b/meta/recipes-core/glibc/glibc-version.inc
@@ -1,7 +1,7 @@
 SRCBRANCH ?= "release/2.32/master"
 PV = "2.32"
 SRCREV_glibc ?= "3de512be7ea6053255afed6154db9ee31d4e557a"
-SRCREV_localedef ?= "b6ca7c146c6d2c93cddfa61e395cb8a196e3d46f"
+SRCREV_localedef ?= "bd644c9e6f3e20c5504da1488448173c69c56c28"
 
 GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
 
-- 
2.28.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141548): 
https://lists.openembedded.org/g/openembedded-core/message/141548
Mute This Topic: https://lists.openembedded.org/mt/76233882/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] ✗ patchtest: failure for "linux-yocto/5.4: update to v5...." and 1 more (rev2)

2020-08-16 Thread Patchwork
== Series Details ==

Series: "linux-yocto/5.4: update to v5" and 1 more (rev2)
Revision: 2
URL   : https://patchwork.openembedded.org/series/25018/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch[2/2] linux-yocto/5.4: perf cs-etm: Move definition of 
'traceid_list' global variable from header file
 Issue Commit shortlog is too long [test_shortlog_length] 
  Suggested fixEdit shortlog so that it is 90 characters or less (currently 
96 characters)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141547): 
https://lists.openembedded.org/g/openembedded-core/message/141547
Mute This Topic: https://lists.openembedded.org/mt/76233740/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [OE-core] [PATCH] gcc10: Don't default back to -fcommon

2020-08-16 Thread Bruce Ashfield
On Sun, Aug 16, 2020 at 9:47 AM Richard Purdie <
richard.pur...@linuxfoundation.org> wrote:

> On Sat, 2020-08-15 at 19:41 -0700, Khem Raj wrote:
> > Bruce,
> >
> > We need
> >
> https://github.com/torvalds/linux/commit/168200b6d6ea0cb5765943ec5da5b8149701f36a
> > backported to 5.4 kernels for perf to build with -fno-common can you
> > queue this in your kernel updates as soon as you can ?
>
> I think we have other active kernels which will also need it as even
> with Khem's patch we still see failures:
>
>
I've taken care of linux-yocto now, I don't think there are any active use
cases for those kernels that won't be covered.

Cheers,

Bruce



> https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1267
>
> Cheers,
>
> Richard
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141546): 
https://lists.openembedded.org/g/openembedded-core/message/141546
Mute This Topic: https://lists.openembedded.org/mt/75983138/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH 2/2] linux-yocto/5.4: perf cs-etm: Move definition of 'traceid_list' global variable from header file

2020-08-16 Thread Bruce Ashfield
From: Bruce Ashfield 

Integrating the following commit(s) to linux-yocto/5.4:

706efec4c1e2 perf cs-etm: Move definition of 'traceid_list' global variable 
from header file

Signed-off-by: Bruce Ashfield 
---
 .../recipes-kernel/linux/linux-yocto-rt_5.4.bb |  2 +-
 .../linux/linux-yocto-tiny_5.4.bb  |  4 ++--
 meta/recipes-kernel/linux/linux-yocto_5.4.bb   | 18 +-
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb 
b/meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb
index 2857dea130..cfe3277e83 100644
--- a/meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb
@@ -11,7 +11,7 @@ python () {
 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to 
linux-yocto-rt to enable it")
 }
 
-SRCREV_machine ?= "550d18f9ff5749c779261b01d61a86c7e79b06b6"
+SRCREV_machine ?= "22664d170488313b5c2713b6d9c8df6563387728"
 SRCREV_meta ?= "83311f062f4aede9928eca82a34ddf73f264fe2a"
 
 SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb 
b/meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb
index 78d57e1841..b90b1259a2 100644
--- a/meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb
@@ -15,8 +15,8 @@ DEPENDS += "openssl-native util-linux-native"
 KMETA = "kernel-meta"
 KCONF_BSP_AUDIT_LEVEL = "2"
 
-SRCREV_machine_qemuarm ?= "919fb1aeb12bceab82f32139bec283c1bb5ebc1c"
-SRCREV_machine ?= "7e20784a1d13af858f83a2d5f582fe30329553ce"
+SRCREV_machine_qemuarm ?= "d192ae0b9995a7be2a33b12005a95348ec6aae94"
+SRCREV_machine ?= "706efec4c1e270ec5dda92275898cd465dfdc7dd"
 SRCREV_meta ?= "83311f062f4aede9928eca82a34ddf73f264fe2a"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
diff --git a/meta/recipes-kernel/linux/linux-yocto_5.4.bb 
b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
index ba9c803947..f85e37d2c2 100644
--- a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
@@ -12,15 +12,15 @@ KBRANCH_qemux86  ?= "v5.4/standard/base"
 KBRANCH_qemux86-64 ?= "v5.4/standard/base"
 KBRANCH_qemumips64 ?= "v5.4/standard/mti-malta64"
 
-SRCREV_machine_qemuarm ?= "1f11670a455ce50f55597415afedfc5eaa3981bf"
-SRCREV_machine_qemuarm64 ?= "7e20784a1d13af858f83a2d5f582fe30329553ce"
-SRCREV_machine_qemumips ?= "50557f1a2b606139ef5d6ba4a2f46ad7b7b2e96d"
-SRCREV_machine_qemuppc ?= "7e20784a1d13af858f83a2d5f582fe30329553ce"
-SRCREV_machine_qemuriscv64 ?= "7e20784a1d13af858f83a2d5f582fe30329553ce"
-SRCREV_machine_qemux86 ?= "7e20784a1d13af858f83a2d5f582fe30329553ce"
-SRCREV_machine_qemux86-64 ?= "7e20784a1d13af858f83a2d5f582fe30329553ce"
-SRCREV_machine_qemumips64 ?= "52e277a90804bb7ccef6e51bcf739d88788b4a69"
-SRCREV_machine ?= "7e20784a1d13af858f83a2d5f582fe30329553ce"
+SRCREV_machine_qemuarm ?= "7bbd138602fda3d69d74674460e73bffdec73cd2"
+SRCREV_machine_qemuarm64 ?= "706efec4c1e270ec5dda92275898cd465dfdc7dd"
+SRCREV_machine_qemumips ?= "e43ed1586cd85a007b0fae3c63d6980d4f5cb336"
+SRCREV_machine_qemuppc ?= "706efec4c1e270ec5dda92275898cd465dfdc7dd"
+SRCREV_machine_qemuriscv64 ?= "706efec4c1e270ec5dda92275898cd465dfdc7dd"
+SRCREV_machine_qemux86 ?= "706efec4c1e270ec5dda92275898cd465dfdc7dd"
+SRCREV_machine_qemux86-64 ?= "706efec4c1e270ec5dda92275898cd465dfdc7dd"
+SRCREV_machine_qemumips64 ?= "d1ff96887c64f70de00add62eb91d4c36f1b181a"
+SRCREV_machine ?= "706efec4c1e270ec5dda92275898cd465dfdc7dd"
 SRCREV_meta ?= "83311f062f4aede9928eca82a34ddf73f264fe2a"
 
 # remap qemuarm to qemuarma15 for the 5.4 kernel
-- 
2.19.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141545): 
https://lists.openembedded.org/g/openembedded-core/message/141545
Mute This Topic: https://lists.openembedded.org/mt/76233549/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH 1/2] linux-yocto/5.4: update to v5.4.58

2020-08-16 Thread Bruce Ashfield
From: Bruce Ashfield 

Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:

cad17feaf0d0 Linux 5.4.58
512570b17807 nfsd: Fix NFSv4 READ on RDMA when using readv
df6aeb5235e9 ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to 
runtime
fb264505b395 tcp: apply a floor of 1 for RTT samples from TCP timestamps
848e15a8c8f6 selftests/net: relax cpu affinity requirement in msg_zerocopy 
test
b8f2d34f6bb5 Revert "vxlan: fix tos value before xmit"
daff7f09f341 openvswitch: Prevent kernel-infoleak in ovs_ct_put_key()
ba729a97ae54 net: thunderx: use spin_lock_bh in nicvf_set_rx_mode_task()
786a9368be8c net: gre: recompute gre csum for sctp over gre tunnels
5d791d36a49b hv_netvsc: do not use VF device if link is down
3a82f4bfd20a dpaa2-eth: Fix passing zero to 'PTR_ERR' warning
5a963aa72107 appletalk: Fix atalk_proc_init() return path
3787b5a3ac67 net: lan78xx: replace bogus endpoint lookup
31489ed8c20c vxlan: Ensure FDB dump is performed under RCU
106b415d5139 rxrpc: Fix race between recvmsg and sendmsg on immediate call 
failure
6f9354702ca5 net: ethernet: mtk_eth_soc: fix MTU warnings
bd68177f26e4 ipv6: Fix nexthop refcnt leak when creating ipv6 route info
89c12bc36262 ipv6: fix memory leaks on IPV6_ADDRFORM path
9b37a7bcdd8a ipv4: Silence suspicious RCU usage warning
4913f71e64ab PCI: tegra: Revert tegra124 raw_violation_fixup
ceff42e6c1fc Revert "powerpc/kasan: Fix shadow pages allocation failure"
11e64146dc69 xattr: break delegations in {set,remove}xattr
6059000e145f Drivers: hv: vmbus: Ignore CHANNELMSG_TL_CONNECT_RESULT(23)
3429579045f1 tools lib traceevent: Fix memory leak in 
process_dynamic_array_len
414f10532c14 atm: fix atm_dev refcnt leaks in atmtcp_remove_persistent
5414f27048e5 igb: reinit_locked() should be called with rtnl_lock
7c8a863ba3cb cfg80211: check vendor command doit pointer before use
83ea63708a29 firmware: Fix a reference count leak.
01fdcb848611 ALSA: hda: fix NULL pointer dereference during suspend
eb96e4f71f59 net: ethernet: mtk_eth_soc: Always call 
mtk_gmac0_rgmii_adjust() for mt7623
fd601f38f59d usb: hso: check for return value in hso_serial_common_create()
871b5a5a3be9 i2c: slave: add sanity check when unregistering
fa0195d83a49 i2c: slave: improve sanity check when registering
4bba72b72c36 drm/drm_fb_helper: fix fbdev with sparc64
8e6af828a332 nvme-pci: prevent SK hynix PC400 from using Write Zeroes 
command
802df1e3f40c drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure
5955ccb5a46d drm/nouveau/fbcon: fix module unload when fbcon init has 
failed for some reason
e0c47a51fc62 net/9p: validate fds in p9_fd_open
fe6402e0e66c leds: 88pm860x: fix use-after-free on unbind
3564cddefb5b leds: lm3533: fix use-after-free on unbind
385c1ae9ddb9 leds: da903x: fix use-after-free on unbind
bde8f23c030c leds: lm36274: fix use-after-free on unbind
635f8fcc2ee3 leds: wm831x-status: fix use-after-free on unbind
9a53e8bd59d9 mtd: properly check all write ioctls for permissions
8c3215a0426c vgacon: Fix for missing check in scrollback handling
1ae21e97d5d3 scripts: add dummy report mode to add_namespace.cocci
5f5fb7cea828 Smack: fix use-after-free in smk_write_relabel_self()
c5665cafbedd binder: Prevent context manager from incrementing ref 0
da47eae4e165 omapfb: dss: Fix max fclk divider for omap36xx
b78763e0a247 Bluetooth: Prevent out-of-bounds read in 
hci_inquiry_result_with_rssi_evt()
70d1e884edc4 Bluetooth: Prevent out-of-bounds read in 
hci_inquiry_result_evt()
c26eaaf547b7 Bluetooth: Fix slab-out-of-bounds read in 
hci_extended_inquiry_result_evt()
a8b8b535c588 Staging: rtl8188eu: rtw_mlme: Fix uninitialized variable 
authmode
af707d9d7f44 staging: rtl8712: handle firmware load failure
6a7626c4798d staging: android: ashmem: Fix lockdep warning for write 
operation
4d81a7bdd3b2 ALSA: seq: oss: Serialize ioctls
3ebdc7b61906 ALSA: hda/ca0132 - Fix AE-5 microphone selection commands.
b8ce0756b312 ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.
87775770635a ALSA: hda/ca0132 - Add new quirk ID for Recon3D.
1d05ad79e1dd ALSA: hda/realtek: Add alc269/alc662 pin-tables for Loongson-3 
laptops
864468a7a63b Revert "ALSA: hda: call runtime_allow() for all hda 
controllers"
e8053c68337e io_uring: Fix use-after-free in io_sq_wq_submit_work()
a4d61e66ee4a io_uring: prevent re-read of sqe->opcode
67afa25456d0 usb: xhci: Fix ASMedia ASM1142 DMA addressing
e7ad225ba4ef usb: xhci: define IDs for various ASMedia host controllers
7173ac5c07bb USB: iowarrior: fix up report size handling for some devices
68a2350376b1 perf/core: Fix endless multiplex timer
aabba1b10075 USB: serial: qcserial: add EM7305 QDL product ID

Signed-off-by: Bruce Ashfield 
---
 .../linux/linux-yocto-rt

Re: [OE-core] [PATCH 3/3] linux-yocto: Backport a patch to fix perf with -fno-common

2020-08-16 Thread Bruce Ashfield
On Sun, Aug 16, 2020 at 6:31 PM Bruce Ashfield via lists.openembedded.org
 wrote:

>
>
> On Sun, Aug 16, 2020 at 3:08 AM Khem Raj  wrote:
>
>> Temp fix until linux-yocto picks it up
>>
>>
> These really need to be submitted to the linux-yocto mailing list as
> proper patches.
>
> When they are submitted like this, it requires me to extract the patch, or
> hunt up the original commit, see if it has already been submitted to
> linux-stable (and if not, it should be), apply it to the kernel, revert
> this commit if it happens to have merged and then finally do my update.
>

.. and of course I see that you did send me the commit ID in another email.
I need to read ALL my unread mail first.

I'll do that merge and take care of it shortly.

Bruce



>
> or, it could be submitted to linux-yocto like any patch, and it will be
> applied and show up with the next update.
>
> I'll take care of getting this into linux-yocto with my update that is
> coming later today.
>
> Cheers,
>
> Bruce
>
>
>
>> Signed-off-by: Khem Raj 
>> ---
>>  ...-definition-of-traceid_list-global-v.patch | 66 +++
>>  meta/recipes-kernel/linux/linux-yocto_5.4.bb  |  2 +
>>  2 files changed, 68 insertions(+)
>>  create mode 100644
>> meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>>
>> diff --git
>> a/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>> b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>> new file mode 100644
>> index 00..0fc9876501
>> --- /dev/null
>> +++
>> b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>> @@ -0,0 +1,66 @@
>> +From 168200b6d6ea0cb5765943ec5da5b8149701f36a Mon Sep 17 00:00:00 2001
>> +From: Leo Yan 
>> +Date: Tue, 5 May 2020 21:36:42 +0800
>> +Subject: [PATCH] perf cs-etm: Move definition of 'traceid_list' global
>> + variable from header file
>> +
>> +The variable 'traceid_list' is defined in the header file cs-etm.h,
>> +if multiple C files include cs-etm.h the compiler might complaint for
>> +multiple definition of 'traceid_list'.
>> +
>> +To fix multiple definition error, move the definition of 'traceid_list'
>> +into cs-etm.c.
>> +
>> +Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata")
>> +Reported-by: Thomas Backlund 
>> +Signed-off-by: Leo Yan 
>> +Reviewed-by: Mathieu Poirier 
>> +Reviewed-by: Mike Leach 
>> +Tested-by: Mike Leach 
>> +Tested-by: Thomas Backlund 
>> +Cc: Alexander Shishkin 
>> +Cc: Jiri Olsa 
>> +Cc: Mark Rutland 
>> +Cc: Namhyung Kim 
>> +Cc: Peter Zijlstra 
>> +Cc: Suzuki Poulouse 
>> +Cc: Tor Jeremiassen 
>> +Cc: linux-arm-ker...@lists.infradead.org
>> +Link:
>> http://lore.kernel.org/lkml/20200505133642.4756-1-leo@linaro.org
>> +Signed-off-by: Arnaldo Carvalho de Melo 
>> +---
>> + tools/perf/util/cs-etm.c | 3 +++
>> + tools/perf/util/cs-etm.h | 3 ---
>> + 2 files changed, 3 insertions(+), 3 deletions(-)
>> +
>> +diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
>> +index 3c802fde4954..c283223fb31f 100644
>> +--- a/tools/perf/util/cs-etm.c
>>  b/tools/perf/util/cs-etm.c
>> +@@ -94,6 +94,9 @@ struct cs_etm_queue {
>> +   struct cs_etm_traceid_queue **traceid_queues;
>> + };
>> +
>> ++/* RB tree for quick conversion between traceID and metadata pointers */
>> ++static struct intlist *traceid_list;
>> ++
>> + static int cs_etm__update_queues(struct cs_etm_auxtrace *etm);
>> + static int cs_etm__process_queues(struct cs_etm_auxtrace *etm);
>> + static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm,
>> +diff --git a/tools/perf/util/cs-etm.h b/tools/perf/util/cs-etm.h
>> +index 650ecc2a6349..4ad925d6d799 100644
>> +--- a/tools/perf/util/cs-etm.h
>>  b/tools/perf/util/cs-etm.h
>> +@@ -114,9 +114,6 @@ enum cs_etm_isa {
>> +   CS_ETM_ISA_T32,
>> + };
>> +
>> +-/* RB tree for quick conversion between traceID and metadata pointers */
>> +-struct intlist *traceid_list;
>> +-
>> + struct cs_etm_queue;
>> +
>> + struct cs_etm_packet {
>> +--
>> +2.28.0
>> +
>> diff --git a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
>> b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
>> index f85c54e7f7..5a3180f36d 100644
>> --- a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
>> +++ b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
>> @@ -32,6 +32,8 @@ SRC_URI = "git://
>> git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA
>> 
>>  SRC_URI_append_qemuppc64 = " file://defconfig"
>>  CFLAGS += "-Wno-error"
>>
>> +SRC_URI_append = "
>> file://0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch"
>> +
>>  LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
>>  LINUX_VERSION ?= "5.4.57"
>>
>> --
>> 2.28.0
>>
>>
>>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await thee
> at its end
> - "Use th

Re: [OE-core] [PATCH 3/3] linux-yocto: Backport a patch to fix perf with -fno-common

2020-08-16 Thread Bruce Ashfield
On Sun, Aug 16, 2020 at 3:08 AM Khem Raj  wrote:

> Temp fix until linux-yocto picks it up
>
>
These really need to be submitted to the linux-yocto mailing list as proper
patches.

When they are submitted like this, it requires me to extract the patch, or
hunt up the original commit, see if it has already been submitted to
linux-stable (and if not, it should be), apply it to the kernel, revert
this commit if it happens to have merged and then finally do my update.

or, it could be submitted to linux-yocto like any patch, and it will be
applied and show up with the next update.

I'll take care of getting this into linux-yocto with my update that is
coming later today.

Cheers,

Bruce



> Signed-off-by: Khem Raj 
> ---
>  ...-definition-of-traceid_list-global-v.patch | 66 +++
>  meta/recipes-kernel/linux/linux-yocto_5.4.bb  |  2 +
>  2 files changed, 68 insertions(+)
>  create mode 100644
> meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
>
> diff --git
> a/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
> b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
> new file mode 100644
> index 00..0fc9876501
> --- /dev/null
> +++
> b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
> @@ -0,0 +1,66 @@
> +From 168200b6d6ea0cb5765943ec5da5b8149701f36a Mon Sep 17 00:00:00 2001
> +From: Leo Yan 
> +Date: Tue, 5 May 2020 21:36:42 +0800
> +Subject: [PATCH] perf cs-etm: Move definition of 'traceid_list' global
> + variable from header file
> +
> +The variable 'traceid_list' is defined in the header file cs-etm.h,
> +if multiple C files include cs-etm.h the compiler might complaint for
> +multiple definition of 'traceid_list'.
> +
> +To fix multiple definition error, move the definition of 'traceid_list'
> +into cs-etm.c.
> +
> +Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata")
> +Reported-by: Thomas Backlund 
> +Signed-off-by: Leo Yan 
> +Reviewed-by: Mathieu Poirier 
> +Reviewed-by: Mike Leach 
> +Tested-by: Mike Leach 
> +Tested-by: Thomas Backlund 
> +Cc: Alexander Shishkin 
> +Cc: Jiri Olsa 
> +Cc: Mark Rutland 
> +Cc: Namhyung Kim 
> +Cc: Peter Zijlstra 
> +Cc: Suzuki Poulouse 
> +Cc: Tor Jeremiassen 
> +Cc: linux-arm-ker...@lists.infradead.org
> +Link:
> http://lore.kernel.org/lkml/20200505133642.4756-1-leo@linaro.org
> +Signed-off-by: Arnaldo Carvalho de Melo 
> +---
> + tools/perf/util/cs-etm.c | 3 +++
> + tools/perf/util/cs-etm.h | 3 ---
> + 2 files changed, 3 insertions(+), 3 deletions(-)
> +
> +diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
> +index 3c802fde4954..c283223fb31f 100644
> +--- a/tools/perf/util/cs-etm.c
>  b/tools/perf/util/cs-etm.c
> +@@ -94,6 +94,9 @@ struct cs_etm_queue {
> +   struct cs_etm_traceid_queue **traceid_queues;
> + };
> +
> ++/* RB tree for quick conversion between traceID and metadata pointers */
> ++static struct intlist *traceid_list;
> ++
> + static int cs_etm__update_queues(struct cs_etm_auxtrace *etm);
> + static int cs_etm__process_queues(struct cs_etm_auxtrace *etm);
> + static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm,
> +diff --git a/tools/perf/util/cs-etm.h b/tools/perf/util/cs-etm.h
> +index 650ecc2a6349..4ad925d6d799 100644
> +--- a/tools/perf/util/cs-etm.h
>  b/tools/perf/util/cs-etm.h
> +@@ -114,9 +114,6 @@ enum cs_etm_isa {
> +   CS_ETM_ISA_T32,
> + };
> +
> +-/* RB tree for quick conversion between traceID and metadata pointers */
> +-struct intlist *traceid_list;
> +-
> + struct cs_etm_queue;
> +
> + struct cs_etm_packet {
> +--
> +2.28.0
> +
> diff --git a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
> b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
> index f85c54e7f7..5a3180f36d 100644
> --- a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
> +++ b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
> @@ -32,6 +32,8 @@ SRC_URI = "git://
> git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA
> 
>  SRC_URI_append_qemuppc64 = " file://defconfig"
>  CFLAGS += "-Wno-error"
>
> +SRC_URI_append = "
> file://0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch"
> +
>  LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
>  LINUX_VERSION ?= "5.4.57"
>
> --
> 2.28.0
>
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141542): 
https://lists.openembedded.org/g/openembedded-core/message/141542
Mute This Topic: https://lists.openembedded.org/mt/76219980/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch.

[OE-core] [PATCH] lttng-tools: upgrade 2.12.1 -> 2.12.2

2020-08-16 Thread Richard Purdie
Drop patch merged upstream.

Signed-off-by: Richard Purdie 
---
 ...ents-ns-tp.h-Fix-build-with-musl-lib.patch | 43 ---
 ...-tools_2.12.1.bb => lttng-tools_2.12.2.bb} |  3 +-
 2 files changed, 1 insertion(+), 45 deletions(-)
 delete mode 100644 
meta/recipes-kernel/lttng/lttng-tools/0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch
 rename meta/recipes-kernel/lttng/{lttng-tools_2.12.1.bb => 
lttng-tools_2.12.2.bb} (97%)

diff --git 
a/meta/recipes-kernel/lttng/lttng-tools/0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch
 
b/meta/recipes-kernel/lttng/lttng-tools/0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch
deleted file mode 100644
index a150d648ab5..000
--- 
a/meta/recipes-kernel/lttng/lttng-tools/0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From e5d94cf4882cc6516af52b794c6acb8e4d6469a3 Mon Sep 17 00:00:00 2001
-From: Ovidiu Panait 
-Date: Mon, 18 May 2020 16:39:26 +0300
-Subject: [PATCH] tests: gen-ust-events-ns/tp.h: Fix build with musl libc
-
-Fix the following build error with musl libc:
-In file included from 
../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:14,
- from 
../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.c:10:
-../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:17:10:
 error: unknown type name 'ino_t'; did you mean 'int8_t'?
-   17 |  TP_ARGS(ino_t, ns_ino),
-  |  ^
-../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:17:10:
 error: unknown type name 'ino_t'; did you mean 'int8_t'?
-   17 |  TP_ARGS(ino_t, ns_ino),
-  |  ^
-../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/./tp.h:17:2:
 error: unknown type name 'ino_t'; did you mean 'int8_t'?
-   17 |  TP_ARGS(ino_t, ns_ino),
-  |  ^~~
-../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/./tp.h:17:2:
 error: unknown type name 'ino_t'; did you mean 'int8_t'?
-   17 |  TP_ARGS(ino_t, ns_ino),
-  |  ^~~
-
-Upstream-Status: Submitted [https://github.com/lttng/lttng-tools/pull/161]
-
-Signed-off-by: Ovidiu Panait 

- tests/utils/testapp/gen-ust-events-ns/tp.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/tests/utils/testapp/gen-ust-events-ns/tp.h 
b/tests/utils/testapp/gen-ust-events-ns/tp.h
-index 4dbfed5..e0ddb29 100644
 a/tests/utils/testapp/gen-ust-events-ns/tp.h
-+++ b/tests/utils/testapp/gen-ust-events-ns/tp.h
-@@ -11,6 +11,7 @@
- #if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
- #define _TRACEPOINT_TP_H
- 
-+#include 
- #include 
- 
- TRACEPOINT_EVENT(tp, tptest,
--- 
-2.17.1
-
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.12.1.bb 
b/meta/recipes-kernel/lttng/lttng-tools_2.12.2.bb
similarity index 97%
rename from meta/recipes-kernel/lttng/lttng-tools_2.12.1.bb
rename to meta/recipes-kernel/lttng/lttng-tools_2.12.2.bb
index 094e33db71f..e9c8e18e222 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.12.1.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.12.2.bb
@@ -33,10 +33,9 @@ SRC_URI = 
"https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
file://run-ptest \
file://lttng-sessiond.service \
file://0001-tests-regression-disable-the-tools-live-tests.patch \
-   
file://0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch \
"
 
-SRC_URI[sha256sum] = 
"0de7afc1f40a5acbede933cdfd6cf47b32ff84d02e170a1321f7fc86141585b8"
+SRC_URI[sha256sum] = 
"9ed9161795ff023b076f9f95afaa4f1f822ec42495c0fa04c586ab8fa74e84f1"
 
 inherit autotools ptest pkgconfig useradd python3-dir manpages systemd
 
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141541): 
https://lists.openembedded.org/g/openembedded-core/message/141541
Mute This Topic: https://lists.openembedded.org/mt/76232847/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [OE-core] [PATCH] wic/bootimg-efi: Add support for IMAGE_BOOT_FILES

2020-08-16 Thread Khasim Mohammed
Hi,

On Thu, 2020-07-23 at 15:21 +0530, Khasim Syed Mohammed wrote:
> List of files defined using IMAGE_BOOT_FILES are installed into
> the boot partition when preparing an image using the wic tool with
> the bootimg-efi source plugin.
> 
> The code snippet introduced is taken as is from bootimg-partition.py
> 
> Change-Id: I8dbb6b4e7c24870f587a6f31e6ae4a87d7033782
> Issue-Id: PLATFORMS-3134
> Signed-off-by: Khasim Syed Mohammed 
> ---
>  scripts/lib/wic/plugins/source/bootimg-efi.py | 60
> +++
>  1 file changed, 60 insertions(+)
> 
> diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py
> b/scripts/lib/wic/plugins/source/bootimg-efi.py
> index 2cfdc10ecd..14c1723577 100644
> --- a/scripts/lib/wic/plugins/source/bootimg-efi.py
> +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
> @@ -13,6 +13,9 @@
>  import logging
>  import os
>  import shutil
> +import re
> +
> +from glob import glob
>  
>  from wic import WicError
>  from wic.engine import get_custom_config
> @@ -209,6 +212,57 @@ class BootimgEFIPlugin(SourcePlugin):
>  except KeyError:
>  raise WicError("bootimg-efi requires a loader, none
> specified")
>  
> +if get_bitbake_var("IMAGE_BOOT_FILES") is None:
> +logger.debug('No boot files defined in
> IMAGE_BOOT_FILES')
> +else:
> +boot_files = None
> +for (fmt, id) in (("_uuid-%s", part.uuid), ("_label-%s", 
> part.label), (None, None)):
> +if fmt:
> +var = fmt % id
> +else:
> +var = ""
> +
> +boot_files = get_bitbake_var("IMAGE_BOOT_FILES" +
> var)
> +if boot_files:
> +break
> +
> +logger.debug('Boot files: %s', boot_files)
> +
> +# list of tuples (src_name, dst_name)
> +deploy_files = []
> +for src_entry in re.findall(r'[\w;\-\./\*]+',
> boot_files):
> +if ';' in src_entry:
> +dst_entry = tuple(src_entry.split(';'))
> +if not dst_entry[0] or not dst_entry[1]:
> +raise WicError('Malformed boot file entry:
> %s' % src_entry)
> +else:
> +dst_entry = (src_entry, src_entry)
> +
> +logger.debug('Destination entry: %r', dst_entry)
> +deploy_files.append(dst_entry)
> +
> +cls.install_task = [];
> +for deploy_entry in deploy_files:
> +src, dst = deploy_entry
> +if '*' in src:
> +# by default install files under their basename
> +entry_name_fn = os.path.basename
> +if dst != src:
> +# unless a target name was given, then treat
> name
> +# as a directory and append a basename
> +entry_name_fn = lambda name: \
> +os.path.join(dst,
> + os.path.basenam
> e(name))
> +
> +srcs = glob(os.path.join(kernel_dir, src))
> +
> +logger.debug('Globbed sources: %s', ',
> '.join(srcs))
> +for entry in srcs:
> +src = os.path.relpath(entry, kernel_dir)
> +entry_dst_name = entry_name_fn(entry)
> +cls.install_task.append((src,
> entry_dst_name))
> +else:
> +cls.install_task.append((src, dst))
>  
>  @classmethod
>  def do_prepare_partition(cls, part, source_params, creator,
> cr_workdir,
> @@ -238,6 +292,12 @@ class BootimgEFIPlugin(SourcePlugin):
>  (staging_kernel_dir, kernel, hdddir, kernel)
>  exec_cmd(install_cmd)
>  
> +if get_bitbake_var("IMAGE_BOOT_FILES"):
> +for src_path, dst_path in cls.install_task:
> +install_cmd = "install -m 0644 -D %s %s" \
> +  % (os.path.join(kernel_dir, src_path),
> + os.path.join(hdddir, dst_path))
> +exec_cmd(install_cmd)
>  
>  try:
>  if source_params['loader'] == 'grub-efi':

This patch was recently merged to master 
https://git.openembedded.org/openembedded-core/commit/scripts/lib/wic/plugins/source/bootimg-efi.py?id=a44ab3a4ee5b3c57812909c6194456f299d6ba7f

The IMAGE_BOOT_FILES feature is important for N1SDP ARM Platform and
it's used to copy few DTBs to boot partition. Without this feature the
wic image for N1SDP will support only ACPI boot and it will be broken
for DTB based booting, as this feature is working on master its only
missing on dunfell branch.

I hereby request to consider this patch for dunfell branch as well. It
will help ARM partners to use WIC image for both ACPI and DTBs based
booting and avoid customizing the build for N1SDP.

Let me know if you find any issues in m

Re: [OE-core] OE-core CVE metrics for master on Sun 16 Aug 2020 12:00:01 AM HST

2020-08-16 Thread Khem Raj
On Sun, Aug 16, 2020 at 3:04 AM Steve Sakoman  wrote:
>
> Branch: master
>
> New this week:
> CVE-2020-16092: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16092 *
>
> Removed this week:
> CVE-2012-3515: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-3515 *
> CVE-2012-6075: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6075 *
> CVE-2013-4344: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4344 *
> CVE-2014-3615: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3615 *
> CVE-2014-3689: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3689 *
> CVE-2014-5388: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-5388 *
> CVE-2014-7815: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7815 *
> CVE-2014-7840: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7840 *
>
> Full list:  Found 155 unpatched CVEs
> CVE-2011-3970: libxslt-native 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3970 *
> CVE-2012-4564: tiff 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4564 *
> CVE-2012-6094: cups 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6094 *
> CVE-2013-0800: cairo 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0800 *
> CVE-2013-2617: curl-native 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-2617 *
> CVE-2013-4235: shadow-native 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4235 *
> CVE-2013-4342: xinetd 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4342 *
> CVE-2013-6425: cairo 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6425 *
> CVE-2013-6629: ghostscript 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6629 *
> CVE-2013-7381: libnotify 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-7381 *
> CVE-2014-3539: python3-native 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3539 *
> CVE-2014-8166: cups 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-8166 *
> CVE-2014-9278: openssh 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-9278 *
> CVE-2015-1779: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-1779 *
> CVE-2015-3209: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-3209 *
> CVE-2015-4106: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-4106 *
> CVE-2015-5158: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-5158 *
> CVE-2015-5224: util-linux-native 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-5224 *
> CVE-2015-6855: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-6855 *
> CVE-2015-7295: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-7295 *
> CVE-2015-7313: tiff 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-7313 *
> CVE-2015-7512: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-7512 *
> CVE-2015-8345: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8345 *
> CVE-2015-8504: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8504 *
> CVE-2015-8558: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8558 *
> CVE-2015-8567: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8567 *
> CVE-2015-8568: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8568 *
> CVE-2015-8613: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8613 *
> CVE-2015-8619: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8619 *
> CVE-2015-8666: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8666 *
> CVE-2015-8806: libxml2 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8806 *
> CVE-2016-10642: cmake-native 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10642 *
> CVE-2016-1568: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-1568 *
> CVE-2016-2381: perl-native 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2381 *
> CVE-2016-2391: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2391 *
> CVE-2016-2857: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2857 *
> CVE-2016-2858: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2858 *
> CVE-2016-4001: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4001 *
> CVE-2016-4002: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4002 *
> CVE-2016-4020: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4020 *
> CVE-2016-4483: libxml2 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4483 *
> CVE-2016-4614: libxml2 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4614 *
> CVE-2016-4952: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4952 *
> CVE-2016-4964: qemu 
> https://web.nvd.nist.gov/view/vuln/detail?

[OE-core] [PATCH] selftest/tinfoil: Increase wait event timeout

2020-08-16 Thread Richard Purdie
We're seeing this on the autobuilder when IO load is high. Increase
the timeout to give this a better chance of working out ok since
there is no particular reason we only need to wait 5s and searching
for files is IO sensitive.

[YOCTO #14001]

Signed-off-by: Richard Purdie 
---
 meta/lib/oeqa/selftest/cases/tinfoil.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/tinfoil.py 
b/meta/lib/oeqa/selftest/cases/tinfoil.py
index d1aa7b9afdc..206168ed009 100644
--- a/meta/lib/oeqa/selftest/cases/tinfoil.py
+++ b/meta/lib/oeqa/selftest/cases/tinfoil.py
@@ -100,8 +100,9 @@ class TinfoilTests(OESelftestTestCase):
 eventreceived = False
 commandcomplete = False
 start = time.time()
-# Wait for 5s in total so we'd detect spurious heartbeat events 
for example
-while time.time() - start < 5:
+# Wait for 10s in total so we'd detect spurious heartbeat events 
for example
+# The test is IO load sensitive too
+while time.time() - start < 10:
 event = tinfoil.wait_event(1)
 if event:
 if isinstance(event, bb.command.CommandCompleted):
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141538): 
https://lists.openembedded.org/g/openembedded-core/message/141538
Mute This Topic: https://lists.openembedded.org/mt/76223836/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [OE-core] [PATCH] gcc10: Don't default back to -fcommon

2020-08-16 Thread Richard Purdie
On Sat, 2020-08-15 at 19:41 -0700, Khem Raj wrote:
> Bruce,
> 
> We need 
> https://github.com/torvalds/linux/commit/168200b6d6ea0cb5765943ec5da5b8149701f36a
> backported to 5.4 kernels for perf to build with -fno-common can you
> queue this in your kernel updates as soon as you can ?

I think we have other active kernels which will also need it as even
with Khem's patch we still see failures:

https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1267

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141537): 
https://lists.openembedded.org/g/openembedded-core/message/141537
Mute This Topic: https://lists.openembedded.org/mt/75983138/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] OE-core CVE metrics for dunfell on Sun 16 Aug 2020 12:15:01 AM HST

2020-08-16 Thread Steve Sakoman
Branch: dunfell

New this week:
CVE-2016-6328: libexif 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-6328 *
CVE-2020-16092: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16092 *
CVE-2020-16287: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16287 *
CVE-2020-16288: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16288 *
CVE-2020-16289: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16289 *
CVE-2020-16290: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16290 *
CVE-2020-16291: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16291 *
CVE-2020-16292: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16292 *
CVE-2020-16293: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16293 *
CVE-2020-16294: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16294 *
CVE-2020-16295: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16295 *
CVE-2020-16296: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16296 *
CVE-2020-16297: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16297 *
CVE-2020-16298: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16298 *
CVE-2020-16299: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16299 *
CVE-2020-16300: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16300 *
CVE-2020-16301: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16301 *
CVE-2020-16302: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16302 *
CVE-2020-16303: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16303 *
CVE-2020-16304: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16304 *
CVE-2020-16305: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16305 *
CVE-2020-16308: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16308 *
CVE-2020-16309: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16309 *
CVE-2020-16845: go-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16845 *
CVE-2020-17538: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-17538 *

Removed this week:
CVE-2012-3515: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-3515 *
CVE-2012-6075: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6075 *
CVE-2013-4344: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4344 *
CVE-2013-4577: grub 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4577 *
CVE-2014-3615: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3615 *
CVE-2014-3689: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3689 *
CVE-2014-5388: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-5388 *
CVE-2014-7815: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7815 *
CVE-2014-7840: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7840 *
CVE-2020-10933: ruby 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-10933 *
CVE-2020-12767: libexif 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-12767 *
CVE-2020-13112: libexif 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13112 *
CVE-2020-13113: libexif 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13113 *
CVE-2020-13753: webkitgtk 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13753 *
CVE-2020-13790: libjpeg-turbo 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13790 *
CVE-2020-15863: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-15863 *
CVE-2020-15900: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-15900 *
CVE-2020-5247: ruby 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-5247 *
CVE-2020-6750: glib-2.0-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-6750 *

Full list:  Found 202 unpatched CVEs
CVE-2011-3970: libxslt-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3970 *
CVE-2012-4564: tiff 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4564 *
CVE-2012-6094: cups 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6094 *
CVE-2013-0800: cairo 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0800 *
CVE-2013-2617: curl-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-2617 *
CVE-2013-4235: shadow-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4235 *
CVE-2013-6425: cairo 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6425 *
CVE-2013-6629: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6629 *
CVE-2013-7381: libnotify 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-7381 *
CVE-2014-3539: python3-native 
https://web.n

[OE-core] OE-core CVE metrics for master on Sun 16 Aug 2020 12:00:01 AM HST

2020-08-16 Thread Steve Sakoman
Branch: master

New this week:
CVE-2020-16092: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-16092 *

Removed this week:
CVE-2012-3515: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-3515 *
CVE-2012-6075: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6075 *
CVE-2013-4344: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4344 *
CVE-2014-3615: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3615 *
CVE-2014-3689: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3689 *
CVE-2014-5388: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-5388 *
CVE-2014-7815: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7815 *
CVE-2014-7840: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7840 *

Full list:  Found 155 unpatched CVEs
CVE-2011-3970: libxslt-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3970 *
CVE-2012-4564: tiff 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4564 *
CVE-2012-6094: cups 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6094 *
CVE-2013-0800: cairo 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-0800 *
CVE-2013-2617: curl-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-2617 *
CVE-2013-4235: shadow-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4235 *
CVE-2013-4342: xinetd 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4342 *
CVE-2013-6425: cairo 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6425 *
CVE-2013-6629: ghostscript 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6629 *
CVE-2013-7381: libnotify 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-7381 *
CVE-2014-3539: python3-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3539 *
CVE-2014-8166: cups 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-8166 *
CVE-2014-9278: openssh 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-9278 *
CVE-2015-1779: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-1779 *
CVE-2015-3209: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-3209 *
CVE-2015-4106: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-4106 *
CVE-2015-5158: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-5158 *
CVE-2015-5224: util-linux-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-5224 *
CVE-2015-6855: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-6855 *
CVE-2015-7295: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-7295 *
CVE-2015-7313: tiff 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-7313 *
CVE-2015-7512: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-7512 *
CVE-2015-8345: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8345 *
CVE-2015-8504: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8504 *
CVE-2015-8558: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8558 *
CVE-2015-8567: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8567 *
CVE-2015-8568: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8568 *
CVE-2015-8613: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8613 *
CVE-2015-8619: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8619 *
CVE-2015-8666: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8666 *
CVE-2015-8806: libxml2 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8806 *
CVE-2016-10642: cmake-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10642 *
CVE-2016-1568: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-1568 *
CVE-2016-2381: perl-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2381 *
CVE-2016-2391: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2391 *
CVE-2016-2857: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2857 *
CVE-2016-2858: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-2858 *
CVE-2016-4001: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4001 *
CVE-2016-4002: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4002 *
CVE-2016-4020: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4020 *
CVE-2016-4483: libxml2 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4483 *
CVE-2016-4614: libxml2 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4614 *
CVE-2016-4952: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4952 *
CVE-2016-4964: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4964 *
CVE-2016-5011: util-linux-native 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-5011 *
CVE-2016-5105: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-5105 *
CVE-2016-5106: qemu 
https://web.nvd.nist.gov/view/vuln/detail?vulnId=C

[OE-core] ✗ patchtest: failure for "Revert "gcc10: Default back to..." and 2 more

2020-08-16 Thread Patchwork
== Series Details ==

Series: "Revert "gcc10: Default back to..." and 2 more
Revision: 1
URL   : https://patchwork.openembedded.org/series/25626/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue Series does not apply on top of target branch 
[test_series_merge_on_head] 
  Suggested fixRebase your series on top of targeted branch
  Targeted branch  master (currently at fa5d0f2c61)

* Issue Added patch file is missing Upstream-Status in the header 
[test_upstream_status_presence_format] 
  Suggested fixAdd Upstream-Status:  to the header of 
meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
  Standard format  Upstream-Status: 
  Valid status Pending, Accepted, Backport, Denied, Inappropriate [reason], 
Submitted [where]



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141534): 
https://lists.openembedded.org/g/openembedded-core/message/141534
Mute This Topic: https://lists.openembedded.org/mt/76220160/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH 2/3] gcc: Upgrade to 10.2.0

2020-08-16 Thread Khem Raj
Drop 0036-Enable-CET-in-cross-compiler-if-possible.patch and
pr96130.patch they are already in 10.2

Signed-off-by: Khem Raj 
---
 meta/conf/distro/include/maintainers.inc  |   2 +-
 ...le-CET-in-cross-compiler-if-possible.patch | 150 --
 .../gcc/gcc-10.1/pr96130.patch| 106 -
 .../gcc/{gcc-10.1.inc => gcc-10.2.inc}|  14 +-
 ...ian_10.1.bb => gcc-cross-canadian_10.2.bb} |   0
 .../{gcc-cross_10.1.bb => gcc-cross_10.2.bb}  |   0
 ...-crosssdk_10.1.bb => gcc-crosssdk_10.2.bb} |   0
 ...cc-runtime_10.1.bb => gcc-runtime_10.2.bb} |   0
 ...itizers_10.1.bb => gcc-sanitizers_10.2.bb} |   0
 ...{gcc-source_10.1.bb => gcc-source_10.2.bb} |   0
 ...-up-__aarch64_cas16_acq_rel-fallback.patch |   0
 ...ight-Line-Speculation-SLS-mitigation.patch |   0
 ...0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch |   0
 ...e-SLS-mitigation-for-RET-and-BR-inst.patch |   0
 .../0002-gcc-poison-system-directories.patch  |   0
 ...h64-Mitigate-SLS-for-BLR-instruction.patch |   0
 ...-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch |   0
 .../0004-64-bit-multilib-hack.patch   |   0
 .../0005-optional-libstdc.patch   |   0
 .../0006-COLLECT_GCC_OPTIONS.patch|   0
 ...ts.h-in-B-instead-of-S-and-t-oe-in-B.patch |   0
 .../0008-fortran-cross-compile-hack.patch |   0
 .../0009-cpp-honor-sysroot.patch  |   0
 .../0010-MIPS64-Default-to-N64-ABI.patch  |   0
 ...AMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch |   0
 ...gcc-Fix-argument-list-too-long-error.patch |   0
 .../{gcc-10.1 => gcc}/0013-Disable-sdt.patch  |   0
 .../gcc/{gcc-10.1 => gcc}/0014-libtool.patch  |   0
 ...s-fix-v4bx-to-linker-to-support-EABI.patch |   0
 ...-config-files-from-B-instead-of-usin.patch |   0
 ...ir-from-.la-which-usually-points-to-.patch |   0
 .../{gcc-10.1 => gcc}/0018-export-CPP.patch   |   0
 ...e-target-gcc-headers-can-be-included.patch |   0
 ...t-directory-during-relink-if-inst_pr.patch |   0
 ...IR-replacement-instead-of-hardcoding.patch |   0
 ...22-aarch64-Add-support-for-musl-ldso.patch |   0
 ...-fix-libcc1-s-install-path-and-rpath.patch |   0
 ...le-sysroot-support-for-nativesdk-gcc.patch |   0
 ...sroot-gcc-version-specific-dirs-with.patch |   0
 ...ous-_FOR_BUILD-and-related-variables.patch |   0
 ...027-nios2-Define-MUSL_DYNAMIC_LINKER.patch |   0
 ...d-to-link-commandline-for-musl-targe.patch |   0
 ...using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch |   0
 .../0030-sync-gcc-stddef.h-with-musl.patch|   0
 ...-fault-in-precompiled-header-generat.patch |   0
 .../0032-Fix-for-testsuite-failure.patch  |   0
 ...Re-introduce-spe-commandline-options.patch |   0
 ...as-for-__cpu_indicator_init-instead-.patch |   0
 ...s-Do-not-use-__LINE__-for-maintainin.patch |   0
 ...gw32-Enable-operation_not_supported.patch} |   0
 ...mic-Do-not-enforce-march-on-aarch64.patch} |   0
 .../gcc/{gcc_10.1.bb => gcc_10.2.bb}  |   0
 ...initial_10.1.bb => libgcc-initial_10.2.bb} |   0
 .../gcc/{libgcc_10.1.bb => libgcc_10.2.bb}|   0
 ...ibgfortran_10.1.bb => libgfortran_10.2.bb} |   0
 55 files changed, 7 insertions(+), 265 deletions(-)
 delete mode 100644 
meta/recipes-devtools/gcc/gcc-10.1/0036-Enable-CET-in-cross-compiler-if-possible.patch
 delete mode 100644 meta/recipes-devtools/gcc/gcc-10.1/pr96130.patch
 rename meta/recipes-devtools/gcc/{gcc-10.1.inc => gcc-10.2.inc} (91%)
 rename meta/recipes-devtools/gcc/{gcc-cross-canadian_10.1.bb => 
gcc-cross-canadian_10.2.bb} (100%)
 rename meta/recipes-devtools/gcc/{gcc-cross_10.1.bb => gcc-cross_10.2.bb} 
(100%)
 rename meta/recipes-devtools/gcc/{gcc-crosssdk_10.1.bb => 
gcc-crosssdk_10.2.bb} (100%)
 rename meta/recipes-devtools/gcc/{gcc-runtime_10.1.bb => gcc-runtime_10.2.bb} 
(100%)
 rename meta/recipes-devtools/gcc/{gcc-sanitizers_10.1.bb => 
gcc-sanitizers_10.2.bb} (100%)
 rename meta/recipes-devtools/gcc/{gcc-source_10.1.bb => gcc-source_10.2.bb} 
(100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0001-aarch64-Fix-up-__aarch64_cas16_acq_rel-fallback.patch (100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0001-aarch64-New-Straight-Line-Speculation-SLS-mitigation.patch (100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch (100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0002-aarch64-Introduce-SLS-mitigation-for-RET-and-BR-inst.patch (100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0002-gcc-poison-system-directories.patch (100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0003-aarch64-Mitigate-SLS-for-BLR-instruction.patch (100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0003-gcc-4.3.3-SYSROOT_CFLAGS_FOR_TARGET.patch (100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0004-64-bit-multilib-hack.patch (100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => gcc}/0005-optional-libstdc.patch 
(100%)
 rename meta/recipes-devtools/gcc/{gcc-10.1 => 
gcc}/0006-COLLECT_GCC_OPTIONS.patch (100%)
 rename meta/re

[OE-core] [PATCH 3/3] linux-yocto: Backport a patch to fix perf with -fno-common

2020-08-16 Thread Khem Raj
Temp fix until linux-yocto picks it up

Signed-off-by: Khem Raj 
---
 ...-definition-of-traceid_list-global-v.patch | 66 +++
 meta/recipes-kernel/linux/linux-yocto_5.4.bb  |  2 +
 2 files changed, 68 insertions(+)
 create mode 100644 
meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch

diff --git 
a/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
 
b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
new file mode 100644
index 00..0fc9876501
--- /dev/null
+++ 
b/meta/recipes-kernel/linux/files/0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch
@@ -0,0 +1,66 @@
+From 168200b6d6ea0cb5765943ec5da5b8149701f36a Mon Sep 17 00:00:00 2001
+From: Leo Yan 
+Date: Tue, 5 May 2020 21:36:42 +0800
+Subject: [PATCH] perf cs-etm: Move definition of 'traceid_list' global
+ variable from header file
+
+The variable 'traceid_list' is defined in the header file cs-etm.h,
+if multiple C files include cs-etm.h the compiler might complaint for
+multiple definition of 'traceid_list'.
+
+To fix multiple definition error, move the definition of 'traceid_list'
+into cs-etm.c.
+
+Fixes: cd8bfd8c973e ("perf tools: Add processing of coresight metadata")
+Reported-by: Thomas Backlund 
+Signed-off-by: Leo Yan 
+Reviewed-by: Mathieu Poirier 
+Reviewed-by: Mike Leach 
+Tested-by: Mike Leach 
+Tested-by: Thomas Backlund 
+Cc: Alexander Shishkin 
+Cc: Jiri Olsa 
+Cc: Mark Rutland 
+Cc: Namhyung Kim 
+Cc: Peter Zijlstra 
+Cc: Suzuki Poulouse 
+Cc: Tor Jeremiassen 
+Cc: linux-arm-ker...@lists.infradead.org
+Link: http://lore.kernel.org/lkml/20200505133642.4756-1-leo@linaro.org
+Signed-off-by: Arnaldo Carvalho de Melo 
+---
+ tools/perf/util/cs-etm.c | 3 +++
+ tools/perf/util/cs-etm.h | 3 ---
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
+index 3c802fde4954..c283223fb31f 100644
+--- a/tools/perf/util/cs-etm.c
 b/tools/perf/util/cs-etm.c
+@@ -94,6 +94,9 @@ struct cs_etm_queue {
+   struct cs_etm_traceid_queue **traceid_queues;
+ };
+ 
++/* RB tree for quick conversion between traceID and metadata pointers */
++static struct intlist *traceid_list;
++
+ static int cs_etm__update_queues(struct cs_etm_auxtrace *etm);
+ static int cs_etm__process_queues(struct cs_etm_auxtrace *etm);
+ static int cs_etm__process_timeless_queues(struct cs_etm_auxtrace *etm,
+diff --git a/tools/perf/util/cs-etm.h b/tools/perf/util/cs-etm.h
+index 650ecc2a6349..4ad925d6d799 100644
+--- a/tools/perf/util/cs-etm.h
 b/tools/perf/util/cs-etm.h
+@@ -114,9 +114,6 @@ enum cs_etm_isa {
+   CS_ETM_ISA_T32,
+ };
+ 
+-/* RB tree for quick conversion between traceID and metadata pointers */
+-struct intlist *traceid_list;
+-
+ struct cs_etm_queue;
+ 
+ struct cs_etm_packet {
+-- 
+2.28.0
+
diff --git a/meta/recipes-kernel/linux/linux-yocto_5.4.bb 
b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
index f85c54e7f7..5a3180f36d 100644
--- a/meta/recipes-kernel/linux/linux-yocto_5.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_5.4.bb
@@ -32,6 +32,8 @@ SRC_URI = 
"git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA
 SRC_URI_append_qemuppc64 = " file://defconfig"
 CFLAGS += "-Wno-error"
 
+SRC_URI_append = " 
file://0001-perf-cs-etm-Move-definition-of-traceid_list-global-v.patch"
+
 LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
 LINUX_VERSION ?= "5.4.57"
 
-- 
2.28.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141533): 
https://lists.openembedded.org/g/openembedded-core/message/141533
Mute This Topic: https://lists.openembedded.org/mt/76219980/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[OE-core] [PATCH 1/3] Revert "gcc10: Default back to -fcommon"

2020-08-16 Thread Khem Raj
This reverts commit 951e859b1e8297970278c539e989b8a6d06a9cb3.

Signed-off-by: Khem Raj 
---
 meta/recipes-devtools/gcc/gcc-configure-common.inc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc 
b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 6cb40fcb74..a64c4caf00 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -34,7 +34,6 @@ EXTRA_OECONF = "\
 --program-prefix=${TARGET_PREFIX} \
 --without-local-prefix \
 --disable-install-libiberty \
---with-specs=%{!fno-common:%{!fcommon:-fcommon}} \
 ${EXTRA_OECONF_BASE} \
 ${EXTRA_OECONF_GCC_FLOAT} \
 ${EXTRA_OECONF_PATHS} \
-- 
2.28.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141531): 
https://lists.openembedded.org/g/openembedded-core/message/141531
Mute This Topic: https://lists.openembedded.org/mt/76219978/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-