Re: [OE-core][PATCH v2] devicetree.bbclass: Allow selection of dts files to build

2023-04-21 Thread Nathan Rossi
From: Petr Kubizňák - 2N > Sent: Friday, April 21, 2023 2:30 PM > To: Nathan Rossi > Cc: openembedded-core@lists.openembedded.org > Subject: Re: [OE-core][PATCH v2] devicetree.bbclass: Allow selection of dts > files to build > > Hi Nathan, > > Thank you for great sugge

Re: [OE-core][PATCH v2] devicetree.bbclass: Allow selection of dts files to build

2023-04-21 Thread Nathan Rossi
On Fri, 21 Apr 2023 at 18:41, Petr Kubizňák wrote: > > Add DT_FILES variable to allow the user of the class to select specific > dts files to build. This is useful for packages featuring dts files > for multiple machines. > > Since many machine configs contain a list of dtb files > (e.g. KERNEL_DE

[OE-core] [kirkstone][PATCH 4/4] package: Fix handling of minidebuginfo with newer binutils

2022-11-14 Thread Nathan Rossi
From: Nathan Rossi Newer versions of binutils (2.38+) have changed how the "--only-keep-debug" of objcopy behaves when stripping non-debug sections from an ELF. https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=68f543154e92ab0f5d6c569e0fa143f5e8bd2d80 This change causes

[OE-core] [kirkstone][PATCH 3/4] glibc-locale: Do not INHIBIT_DEFAULT_DEPS

2022-11-14 Thread Nathan Rossi
From: Nathan Rossi The glibc-locale recipe already partially depends on the base depends in order to satisfy the do_package dependency on binutils. However since commit d6ffd683bf6 NM has defaulted to gcc-nm, meaning do_package depends on gcc (for minidebuginfo). Whilst the do_package task

[OE-core] [kirkstone][PATCH 2/4] oeqa/selftest/minidebuginfo: Create selftest for minidebuginfo

2022-11-14 Thread Nathan Rossi
From: Nathan Rossi Add a new selftest to validate minidebuginfo support. This selftest builds a complete target image with PACKAGE_MINIDEBUGINFO enabled. ELFs included in the image are expected to have minidebuginfo included in the resulting executables and shared libraries, the self test

[OE-core] [kirkstone][PATCH 1/4] oeqa/selftest/lic_checksum: Cleanup changes to emptytest include

2022-11-14 Thread Nathan Rossi
From: Nathan Rossi Config written to the emptytest include file is invalid after the test has cleaned up its temporary directories resulting in the emptytest recipe potentially having invalid content when parsed by successive bitbake runs. This presents the following error in tests after

Re: [OE-core] [PATCH 3/3] package: Fix handling of minidebuginfo with newer binutils

2022-11-07 Thread Nathan Rossi
_subdir: ERROR > 2022-11-06 00:37:54,100 - oe-selftest - INFO - RESULTS - > recipetool.RecipetoolAppendTests.test_recipetool_appendfile_todir: ERROR > 2022-11-06 00:37:54,100 - oe-selftest - INFO - RESULTS - > recipetool.RecipetoolAppendTests.test_recipetool_appendfile_wildcard: ERROR > &

[OE-core] [PATCH] oeqa/selftest/lic_checksum: Cleanup changes to emptytest include

2022-11-07 Thread Nathan Rossi
From: Nathan Rossi Config written to the emptytest include file is invalid after the test has cleaned up its temporary directories resulting in the emptytest recipe potentially having invalid content when parsed by successive bitbake runs. This presents the following error in tests after

[OE-core] [PATCH 3/3] package: Fix handling of minidebuginfo with newer binutils

2022-11-03 Thread Nathan Rossi
From: Nathan Rossi Newer versions of binutils (2.38+) have changed how the "--only-keep-debug" of objcopy behaves when stripping non-debug sections from an ELF. https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=68f543154e92ab0f5d6c569e0fa143f5e8bd2d80 This change causes

[OE-core] [PATCH 2/3] glibc-locale: Do not INHIBIT_DEFAULT_DEPS

2022-11-03 Thread Nathan Rossi
From: Nathan Rossi The glibc-locale recipe already partially depends on the base depends in order to satisfy the do_package dependency on binutils. However since commit d6ffd683bf6 NM has defaulted to gcc-nm, meaning do_package depends on gcc (for minidebuginfo). Whilst the do_package task

[OE-core] [PATCH 1/3] oeqa/selftest/minidebuginfo: Create selftest for minidebuginfo

2022-11-03 Thread Nathan Rossi
From: Nathan Rossi Add a new selftest to validate minidebuginfo support. This selftest builds a complete target image with PACKAGE_MINIDEBUGINFO enabled. ELFs included in the image are expected to have minidebuginfo included in the resulting executables and shared libraries, the self test

Re: [OE-core] [PATCH 2/2] glibc: ptest: Add support for running glibc test suite with ptest

2021-08-27 Thread Nathan Rossi
> > > > things. > > > > > > > > > > Technically, I just reuse the glibc-testsuite_2.34.bb to the > > > > > point where tests are _only_ built. Then I pack those binaries > > > > > and install on the target's rootfs t

Re: [OE-core] [PATCH 2/2] glibc: ptest: Add support for running glibc test suite with ptest

2021-08-27 Thread Nathan Rossi
cially when implementing a new platform. A big one is due to the ability to run tests in parallel with user mode, it easily reduces test run times by an order of magnitude (compared to qemu system, which for some platforms is faster than real hardware). The reason why qemu user mode is the default behavio

[OE-core] [PATCH] gcc: Backport patch to resolve i*86 tune configuration overrides

2021-01-19 Thread Nathan Rossi
Upstream has merged a change to handle detection of target overrides so that they are only applied as required. Backport this patch from upstream and remove the OE specific patch. Signed-off-by: Nathan Rossi --- meta/recipes-devtools/gcc/gcc-10.2.inc | 2 +- .../gcc/0001-lib

Re: [OE-core] [PATCH] gcc: Add patch to resolve i*86 tune configuration overrides

2021-01-18 Thread Nathan Rossi
t the above change backported to replace the oe specific patch? Since that oe specific patch has already been backported to a number of releases. Thanks, Nathan > > On Tue, Dec 15, 2020 at 12:35 AM Nathan Rossi wrote: > > > > When compiling gcc-runtime for i686 libatomic, libg

[OE-core] [PATCH] coreutils: enable xattrs by default for nativesdk

2020-12-15 Thread Nathan Rossi
When using coreutils nativesdk (e.g. with buildtools-tarball) for running oe-core builds, a number of recipes/classes/etc. expect xattr support. This requirement is also expressed by the existing PACKAGECONFIG_class-native default including xattrs. Signed-off-by: Nathan Rossi --- meta/recipes

[OE-core] [PATCH] grep: add nativesdk to BBCLASSEXTEND

2020-12-15 Thread Nathan Rossi
Signed-off-by: Nathan Rossi --- meta/recipes-extended/grep/grep_3.6.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-extended/grep/grep_3.6.bb b/meta/recipes-extended/grep/grep_3.6.bb index edf9b29c8f..cb009b9132 100644 --- a/meta/recipes-extended/grep/grep_3.6.bb +++ b

[OE-core] [PATCH] sed: add nativesdk to BBCLASSEXTEND

2020-12-15 Thread Nathan Rossi
Signed-off-by: Nathan Rossi --- meta/recipes-extended/sed/sed_4.8.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-extended/sed/sed_4.8.bb b/meta/recipes-extended/sed/sed_4.8.bb index 39e3a61df5..048db47e14 100644 --- a/meta/recipes-extended/sed/sed_4.8.bb +++ b/meta

[OE-core] [PATCH] which: add nativesdk to BBCLASSEXTEND

2020-12-15 Thread Nathan Rossi
Signed-off-by: Nathan Rossi --- meta/recipes-extended/which/which_2.21.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-extended/which/which_2.21.bb b/meta/recipes-extended/which/which_2.21.bb index fc9185061b..1da69c548e 100644 --- a/meta/recipes-extended/which/which_2.21

[OE-core] [PATCH] gcc: Add patch to resolve i*86 tune configuration overrides

2020-12-15 Thread Nathan Rossi
ntime differently to other build systems, and provides target specific arch/tune options directly. As such, this change adds a patch for gcc to remove the specific cases where the args are added. Signed-off-by: Nathan Rossi --- meta/recipes-devtools/gcc/gcc-10.2.inc | 1 + .../gcc/000

[OE-core] [PATCH] ncurses: Prevent LDFLAGS being emitted in .pc files

2020-12-15 Thread Nathan Rossi
installed files (and the associated sstate) have this path. This prevents the sstate from being portable across build directories/hosts. Signed-off-by: Nathan Rossi --- ...ig.in-Do-not-include-LDFLAGS-in-generated.patch | 29 ++ meta/recipes-core/ncurses/ncurses_6.2.bb

[OE-core] [PATCH] qemu.inc: Add seccomp PACKAGECONFIG option

2020-12-15 Thread Nathan Rossi
) on the build host when building qemu-system-native and auto enabling the feature. Signed-off-by: Nathan Rossi --- meta/recipes-devtools/qemu/qemu.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 274c855d35

Re: [OE-core] commit breaks menuconfig on upstream kernel "cml1.bbclass: Handle ncurses-native being available via pkg-config"

2020-12-03 Thread Nathan Rossi
On Fri, 4 Dec 2020 at 14:58, Richard Purdie wrote: > > On Fri, 2020-12-04 at 10:53 +1000, Nathan Rossi wrote: > > On Fri, 4 Dec 2020 at 08:31, Andrey Zhizhikin > > wrote: > > > Hello Scott and Nathan, > > > > > > On Thu, Dec 3, 2020 at 7:18 PM S

Re: [OE-core] commit breaks menuconfig on upstream kernel "cml1.bbclass: Handle ncurses-native being available via pkg-config"

2020-12-03 Thread Nathan Rossi
On Fri, 4 Dec 2020 at 08:31, Andrey Zhizhikin wrote: > > Hello Scott and Nathan, > > On Thu, Dec 3, 2020 at 7:18 PM Scott Branden via > lists.openembedded.org > wrote: > > > > > > > > On 2020-12-02 4:19 p.m., Nathan Rossi wrote: > > > On Th

Re: [OE-core] commit breaks menuconfig on upstream kernel "cml1.bbclass: Handle ncurses-native being available via pkg-config"

2020-12-02 Thread Nathan Rossi
On Thu, 3 Dec 2020 at 05:17, Scott Branden wrote: > > Hi Nathan, > > Your commit: > "cml1.bbclass: Handle ncurses-native being available via pkg-config" > https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=master-next&id=ce447d70df386ca55ce1672478b245851556374e > > breaks bitbake menuconfig

Re: [OE-core] [PATCH] cml1: Set proper LD while during kernel menuconfig

2020-11-16 Thread Nathan Rossi
On Mon, 16 Nov 2020 at 19:46, Wonmin Jung wrote: > > With 'ld-is-gold' and linux kernel 5.4 or later, menuconfig > task for kernel recipes will fail with: > > $ bitbake -c menuconfig virtual/kernel > ... > scripts/kconfig/mconf Kconfig > scripts/Kconfig.include:43: gold linker 'x86_64-poky-linux

[OE-core] [PATCH v2 2/2] python3-manifest.json: Updates

2020-08-10 Thread Nathan Rossi
pes, pydoc) - Update compression package dependencies due to some modules moving into core package - Update dependencies due to improvements to get_module_deps handling modules of a python package (e.g. ctypes.utils) Signed-off-by: Nathan Rossi --- .../python/python3/python3-manifest

[OE-core] [PATCH v2 1/2] python3: Improve handling of python3 manifest generation

2020-08-10 Thread Nathan Rossi
. Handle the conversion of its path to a wildcard based on the platform dependent name being replaced. Signed-off-by: Nathan Rossi --- Changes in v2: - Remove duplicate importlib.import_module() - Only treat imports which are "__init__.py" files as python packages for which to im

[OE-core] [PATCH] cmake.bbclass: Rework compiler program variables for allarch

2020-08-08 Thread Nathan Rossi
associated C/CXX compiler variables. In order to achieve this with overrides, simplify the existing construction of the values using a python function and variable setting and remove the anonymous variable setup. Signed-off-by: Nathan Rossi --- meta/classes/cmake.bbclass | 36

[OE-core] [PATCH] python3: Improve handling of python3 manifest generation

2020-08-08 Thread Nathan Rossi
. Handle the conversion of its path to a wildcard based on the platform dependent name being replaced. Signed-off-by: Nathan Rossi --- .../python/python3/get_module_deps3.py | 18 -- .../python/python3/python3-manifest.json | 2 +- 2 files changed

[OE-core] [PATCH] libexif: Enable native and nativesdk

2020-08-08 Thread Nathan Rossi
Signed-off-by: Nathan Rossi --- meta/recipes-support/libexif/libexif_0.6.22.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-support/libexif/libexif_0.6.22.bb b/meta/recipes-support/libexif/libexif_0.6.22.bb index a520d5c9f9..2478ba07d8 100644 --- a/meta/recipes-support

[OE-core] [PATCH 2/2] glibc-testsuite: Exclude this recipe from world builds

2020-02-13 Thread Nathan Rossi
This recipe is intended to be run manually or via oeqa. [YOCTO #13737] Signed-off-by: Nathan Rossi --- meta/recipes-core/glibc/glibc-testsuite_2.31.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/glibc/glibc-testsuite_2.31.bb b/meta/recipes-core/glibc/glibc

[OE-core] [PATCH 1/2] glibc-testsuite: Remove the do_install task

2020-02-13 Thread Nathan Rossi
This task is not intended to be run as this recipe does not produce any packages or install any sysroot content. Additionally running this task behaves differently from a normal glibc build, and can result in issues. [YOCTO #13737] Signed-off-by: Nathan Rossi --- meta/recipes-core/glibc/glibc

Re: [OE-core] [PATCH v4 0/5] Microblaze tune updates

2020-02-05 Thread Nathan Rossi
On Wed, 5 Feb 2020 at 07:06, Mark Hatle wrote: > > Version 4 of the patch set. > > I've collected all of the patches resently sent, and reworked them per > the comments on the mailing list. > > The patches are directly available at: > > git://git.openembedded.org/openembedded-core-contrib mgh/xili

Re: [OE-core] [PATCH 1/2] microblaze tune: Correct two minor issues with the microblaze tune

2020-02-04 Thread Nathan Rossi
On Tue, 4 Feb 2020 at 04:55, Mark Hatle wrote: > > > > On 1/31/20 10:49 PM, Nathan Rossi wrote: > > On Sat, 1 Feb 2020 at 08:13, Mark Hatle > > wrote: > >> > >> From: Mark Hatle > >> > >> TUNE_ARCH - microblazeeb is not a v

Re: [OE-core] [PATCH v2 1/2] microblaze tune: Enable 64-bit

2020-02-03 Thread Nathan Rossi
On Tue, 4 Feb 2020 at 04:36, Mark Hatle wrote: > > > > On 1/31/20 10:50 PM, Nathan Rossi wrote: > > On Sat, 1 Feb 2020 at 09:33, Mark Hatle > > wrote: > >> > >> From: Mark Hatle > >> > >> 64-bit is not yet available in Linux, but so

Re: [OE-core] [PATCH v2 1/2] microblaze tune: Enable 64-bit

2020-01-31 Thread Nathan Rossi
On Sat, 1 Feb 2020 at 09:33, Mark Hatle wrote: > > From: Mark Hatle > > 64-bit is not yet available in Linux, but some non-Linux uses exist. > > Signed-off-by: Mark Hatle > Signed-off-by: Mark Hatle > --- > meta/conf/machine/include/microblaze/arch-microblaze.inc | 9 - > 1 file change

Re: [OE-core] [PATCH 1/2] microblaze tune: Correct two minor issues with the microblaze tune

2020-01-31 Thread Nathan Rossi
On Sat, 1 Feb 2020 at 08:13, Mark Hatle wrote: > > From: Mark Hatle > > TUNE_ARCH - microblazeeb is not a valid architecture, microblaze is big > endian, microblazeel is the little endian version. > > Version arguments: > If a version feature is not defined, then we don't want to se

[OE-core] [PATCH] glibc-testing.inc: Remove testglibc script generation

2019-12-01 Thread Nathan Rossi
em targets). Signed-off-by: Nathan Rossi --- meta/recipes-core/glibc/glibc-testing.inc | 95 --- meta/recipes-core/glibc/glibc.inc | 1 - 2 files changed, 96 deletions(-) delete mode 100644 meta/recipes-core/glibc/glibc-testing.inc diff --git a/meta/recipes-core/g

[OE-core] [PATCH 2/2] gcc: Improve build reproduciblity

2019-11-30 Thread Nathan Rossi
Prevent the gcc embedded checksum from containing a checksum that was computed with build specific paths. The checksum-options file included the value of LINKER/LDFLAGS which contains DEBUG_PREFIX_MAP and STAGING_DIR_TARGET. Signed-off-by: Nathan Rossi --- This change along with the previous gcc

[OE-core] [PATCH] gcc-cross.inc: Remove test runner script generation

2019-11-30 Thread Nathan Rossi
qemu-user/qemu-system targets). Signed-off-by: Nathan Rossi --- meta/recipes-devtools/gcc/gcc-cross.inc | 90 - 1 file changed, 90 deletions(-) diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index 6784d9673f..c68cdd5

[OE-core] [PATCH 1/2] gcc-target.inc: Prevent sysroot from leaking into configargs.h

2019-11-30 Thread Nathan Rossi
sroots and staging, the sysroot path would be replaced with the sysroot local to the recipe thus changing the content of configargs.h. This change also improves gcc binary reproducibility. The sysroot path is replaced with the base target root "/". Signed-off-by: Nathan Rossi --- meta/

[OE-core] [PATCH] gcc-cross.inc: Prevent native sysroot from leaking into configargs.h

2019-11-24 Thread Nathan Rossi
per recipe sysroots and staging, the sysroot path would be replaced with the sysroot local to the recipe thus changing the content of configargs.h. The sysroot path is replaced with a generic "/host" prefix which represents the host sysroot (e.g. native or nativesdk). Signed-off-by: Nat

[OE-core] [PATCH] oeqa/selftest/cases/gcc.py: Split 'gcc' and 'g++' testsuites

2019-11-24 Thread Nathan Rossi
Split the GccCrossSelfTest testcase into separate testcases for 'gcc' and 'g++' respectively. In order to split them use the "check-gcc-*" language make check targets. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/gcc.py | 20

[OE-core] [PATCH] oeqa/utils/qemurunner.py: Handle QEMU machines with a single serial

2019-11-24 Thread Nathan Rossi
the output is mixed but enables the machine to boot and have QemuRunner detect the login prompt. QemuTarget uses SERIAL_CONSOLES to determine the number of available serial ports. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/targetcontrol.py| 3 ++- meta/lib/oeqa/utils/qemurunner.py | 32

Re: [OE-core] [PATCH 1/2] tune-riscv: Add support for hard and soft float

2019-11-06 Thread Nathan Rossi
On Thu, 7 Nov 2019 at 09:34, Adrian Bunk wrote: > > On Wed, Nov 06, 2019 at 10:18:18AM -0800, Alistair Francis wrote: > >... > > +TUNE_CCARGS_riscv64 .= "${@bb.utils.contains('TUNE_FEATURES', 'riscv64-f', > > ' -mabi=lp64d', ' -mabi=lp64', d)}" > > +TUNE_CCARGS_riscv32 .= "${@bb.utils.contains('T

[OE-core] [PATCH 1/2] oeqa/core/utils/concurrencytest.py: Handle exceptions and details

2019-09-26 Thread Nathan Rossi
e details object and remove the 'err' arg from the add* result call. This encodes the traceback similar to how 'err' is handled without any details object. Decoding is already done by testtools when the traceback is encoded in the details object. Signed-off-by: Nat

[OE-core] [PATCH 2/2] oeqa/core/case.py: Encode binary data of log

2019-09-26 Thread Nathan Rossi
decode the data. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/core/case.py| 4 ++-- scripts/lib/resulttool/resultutils.py | 6 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/core/case.py b/meta/lib/oeqa/core/case.py index 180635ac6c..aae451fef2

[OE-core] [PATCH] meson.bbclass: Handle microblaze* mapping to cpu family

2019-09-19 Thread Nathan Rossi
Signed-off-by: Nathan Rossi --- meta/classes/meson.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass index 48ca112d80..efa6234078 100644 --- a/meta/classes/meson.bbclass +++ b/meta/classes/meson.bbclass @@ -55,6 +55,8 @@ def

[OE-core] [PATCH] cmake: 3.15.2 -> 3.15.3

2019-09-16 Thread Nathan Rossi
Update to fix issues with Boost 1.71.0, see pull request: https://gitlab.kitware.com/cmake/cmake/merge_requests/3763 Signed-off-by: Nathan Rossi --- .../cmake/{cmake-native_3.15.2.bb => cmake-native_3.15.3.bb} | 0 meta/recipes-devtools/cmake/cmake.

Re: [OE-core] [PATCH] glibc-testsuite: Depend on virtual/libc-locale instead of glibc-locale

2019-09-13 Thread Nathan Rossi
On Thu, 12 Sep 2019 at 02:00, Peter Kjellerstedt wrote: > > This avoids the following error when using some other toolchain than > the one provided by OE-Core: > > ERROR: Nothing PROVIDES 'glibc-locale' (but > .../meta/recipes-core/glibc/glibc-testsuite_2.30.bb DEPENDS on or > otherwise requ

[OE-core] [PATCH] glibc-testsuite: SkipRecipe if libc is not glibc

2019-09-13 Thread Nathan Rossi
To prevent issues with parsing or dependencies, limit this recipe to use only when the libc is glibc (and libc-locale is glibc-locale). Signed-off-by: Nathan Rossi --- meta/recipes-core/glibc/glibc-testsuite_2.30.bb | 7 +++ 1 file changed, 7 insertions(+) diff --git a/meta/recipes-core

[OE-core] [PATCH v2 4/4] oeqa/selftest: Rework toolchain tests to use OEPTestResultTestCase

2019-09-11 Thread Nathan Rossi
Use OEPTestResultTestCase to collect results and add logfile collection and compression. Signed-off-by: Nathan Rossi --- Changes in v2: - Fixed up missing logpath setting for gcc.py. --- meta/lib/oeqa/selftest/cases/binutils.py | 11 ++- meta/lib/oeqa/selftest/cases/gcc.py | 9

[OE-core] [PATCH v2 3/4] oeqa/core/case.py: Add OEPTestResultTestCase for ptestresult helpers

2019-09-11 Thread Nathan Rossi
/decompressing log files embedded in the test results. Signed-off-by: Nathan Rossi --- Changes in v2: - Fix up resultutils so that it can decode compressed logs - Move common log decoding from log to resultutils module, and simplify uses of log access --- meta/lib/oeqa/core/case.py| 49

[OE-core] [PATCH v2 2/4] gcc-cross.inc: Process binaries in build dir to be relocatable

2019-09-11 Thread Nathan Rossi
Process binaries within the build directory before stashing to be relocatable with ORIGIN relative rpaths. This corrects issues with rpaths being invalid when trying to use the binaries from an unstashed build directory (e.g. gcc-runtime). Signed-off-by: Nathan Rossi --- Changes in v2: - Nest

[OE-core] [PATCH v2 1/4] resulttool: Handle multiple series containing ptestresults

2019-09-11 Thread Nathan Rossi
Handle multiple results series having ptestresults content. The contents are merged on a per-result basis where duplicates are ignored (with a warning message printed). The 'ptestresults.sections' collection is also merged on a per-suite basis. Signed-off-by: Nathan Rossi --- s

[OE-core] [PATCH 4/6] gcc-cross.inc: Process binaries in build dir to be relocatable

2019-09-10 Thread Nathan Rossi
Process binaries within the build directory before stashing to be relocatable with ORIGIN relative rpaths. This corrects issues with rpaths being invalid when trying to use the binaries from an unstashed build directory (e.g. gcc-runtime). Signed-off-by: Nathan Rossi --- meta/recipes-devtools

[OE-core] [PATCH 3/6] chrpath.bbclass: Add break_hardlinks kwarg to allow breaking hardlinks

2019-09-10 Thread Nathan Rossi
Add the break_hardlinks kwarg to break hardlinks when modifying files. This uses the bb.utils.break_hardlinks function to break hardlinks. The default is to maintain existing behaviour and leave hardlinks in place. Signed-off-by: Nathan Rossi --- meta/classes/chrpath.bbclass | 19

[OE-core] [PATCH 6/6] oeqa/selftest: Rework toolchain tests to use OEPTestResultTestCase

2019-09-10 Thread Nathan Rossi
Use OEPTestResultTestCase to collect results and add logfile collection and compression. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/binutils.py | 11 ++- meta/lib/oeqa/selftest/cases/gcc.py | 8 meta/lib/oeqa/selftest/cases/glibc.py| 7 --- 3

[OE-core] [PATCH 5/6] oeqa/core/case.py: Add OEPTestResultTestCase for ptestresult helpers

2019-09-10 Thread Nathan Rossi
/decompressing log files embedded in the test results. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/core/case.py| 49 +++ scripts/lib/resulttool/log.py | 12 ++- 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/core

[OE-core] [PATCH 2/6] oeqa/selftest/context.py: For -t/-T use append argparse action

2019-09-10 Thread Nathan Rossi
Use the 'append' action of argparse instead of nargs. This changes the behaviour of the option from "-t foo bar -r" to "-t foo -t bar -r". Additionally rename the long form options to be consistent with behaviour, such that they specifying a single tag at a time

[OE-core] [PATCH 1/6] resulttool: Handle multiple series containing ptestresults

2019-09-10 Thread Nathan Rossi
Handle multiple results series having ptestresults content. The contents are merged on a per-result basis where duplicates are ignored (with a warning message printed). The 'ptestresults.sections' collection is also merged on a per-suite basis. Signed-off-by: Nathan Rossi --- s

[OE-core] [PATCH 7/7] oeqa/selftest/cases/glibc.py: Rework and tag with toolchain-user/system

2019-09-07 Thread Nathan Rossi
Rework the glibc execution into a common base class. Additionally tag the tests with "toolchain-user" and "toolchain-system". Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/glibc.py | 44 +++ 1 file changed, 24 insertions(+), 2

[OE-core] [PATCH 4/7] oeqa/selftest/context.py: Change -t/-T args to be optional

2019-09-07 Thread Nathan Rossi
Change the -t/-T args to be optional so that they can be used together with the existing -r/-a/... args to run a more flexible filtering of test tags. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/context.py | 30 +++--- 1 file changed, 19 insertions(+), 11

[OE-core] [PATCH 2/7] oeqa/core: Implement proper extra result collection and serialization

2019-09-07 Thread Nathan Rossi
can handle cross-process transfer of binary data for the details kwarg. With a TestResult proxy class to sit inbetween to encode and decode to and from json. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/core/runner.py| 41 +-- meta/lib/oeqa/core/utils/concurrencyte

[OE-core] [PATCH 6/7] oeqa/selftest/cases/gcc.py: Split into classes for parallelism

2019-09-07 Thread Nathan Rossi
u system) tests with "toolchain-system". Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/gcc.py | 99 ++--- 1 file changed, 70 insertions(+), 29 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest

[OE-core] [PATCH 5/7] oeqa/core/decorator: Fix super class modifying subclass tags

2019-09-07 Thread Nathan Rossi
Signed-off-by: Nathan Rossi --- meta/lib/oeqa/core/decorator/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/core/decorator/__init__.py b/meta/lib/oeqa/core/decorator/__init__.py index 1a5ac40134..1a82518ab6 100644 --- a/meta/lib/oeqa/core

[OE-core] [PATCH 3/7] oeqa/selftest: Use extraresults on self instead of self.tc

2019-09-07 Thread Nathan Rossi
automatically. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/binutils.py | 13 ++--- meta/lib/oeqa/selftest/cases/gcc.py | 14 +++--- meta/lib/oeqa/selftest/cases/glibc.py| 13 ++--- meta/lib/oeqa/selftest/cases/reproducible.py | 13 + 4

[OE-core] [PATCH 1/7] oeqa/core/runner.py: Fix OETestTag listing

2019-09-07 Thread Nathan Rossi
Use the __oeqa_testtags attribute added by OETestTag and display no, one or more tags separated by a comma. Also change the formatting of the output so that the list of tests is formatted as " ()" and remove the table header for "id" (it is no longer available). Signed-

[OE-core] [PATCH] archiver.bbclass: Do not archive srpm's if there are no package tasks

2019-09-05 Thread Nathan Rossi
Do not attempt to archive recipes which have no packaging tasks (e.g. inherits nopackages). Signed-off-by: Nathan Rossi --- meta/classes/archiver.bbclass | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/meta/classes/archiver.bbclass b/meta/classes

[OE-core] [PATCH 2/3] security_flags.inc: Add overrides for glibc-testsuite to match glibc

2019-09-05 Thread Nathan Rossi
Ensure glibc-testsuite has the same flags as glibc. Signed-off-by: Nathan Rossi --- meta/conf/distro/include/security_flags.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index 758bd89c3e

[OE-core] [PATCH 1/3] Clean up remnants of glibc-initial

2019-09-05 Thread Nathan Rossi
Remove remnants of the glibc-initial recipe. Signed-off-by: Nathan Rossi --- meta/classes/staging.bbclass| 2 +- meta/conf/distro/include/maintainers.inc| 1 - meta/conf/distro/include/security_flags.inc | 2 -- meta/conf/distro/include/tcmode-default.inc | 4 meta

[OE-core] [PATCH 3/3] oe-selftest: Implement console 'keepalive' output

2019-09-05 Thread Nathan Rossi
Similar to bitbake, implement a 'keepalive' output to the console to ensure CI systems do not kill the process. The default timeout for bitbake is 5000s. Signed-off-by: Nathan Rossi --- scripts/lib/scriptutils.py | 43 +-- scripts/oe-selftest

[OE-core] [PATCH 4/4] oeqa/selftest: Toolchain tests suffix "-user" for qemu usermode results

2019-09-04 Thread Nathan Rossi
Suffix the ptestresults suite with "-user" for tests that are executing against usermode qemu. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/gcc.py | 1 + meta/lib/oeqa/selftest/cases/glibc.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

[OE-core] [PATCH 3/4] maintainers.inc: Add entries for toolchain related recipes

2019-09-04 Thread Nathan Rossi
Add entries for the added toolchain related recipes including binutils-cross-testsuite and glibc-testsuite setting the maintainer as Khem to match existing definitions. Also and entry for dejagnu setting Nathan Rossi as the maintainer. Signed-off-by: Nathan Rossi --- meta/conf/distro/include

[OE-core] [PATCH 2/4] oeqa/selftest: For toolchain tests do not fail if a test failed

2019-09-04 Thread Nathan Rossi
Do not fail the running selftest test case if the test suite has a failed test case. Currently toolchain tests suites (binutils, gcc, glibc) fail but this does not indicate failure to execute the tests. Also remove the logging of each test that failed. Signed-off-by: Nathan Rossi --- meta/lib

[OE-core] [PATCH 1/4] oeqa/selftest/cases/glibc.py: Don't install python3 and pexpect

2019-09-04 Thread Nathan Rossi
When running the system emulation test case, do not include python3 or pexpect in the image. The test cases that use these also need gdb (with python configured). Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/glibc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[OE-core] [PATCH v2 07/12] oeqa/core/tests: Fix test_data module tests

2019-09-03 Thread Nathan Rossi
These two tests relied on the context containing the results information. This was moved into the OETestResults class. Signed-off-by: Nathan Rossi --- Changes in v2: - New --- meta/lib/oeqa/core/tests/test_data.py | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a

[OE-core] [PATCH v2 09/12] oeqa/selftest: Add test run filtering based on test tags

2019-09-03 Thread Nathan Rossi
Add '--run-only-tags' for running tests which match any of the provided tags, and '--run-exclude-tags' for running all tests except those that have any of the provided tags. Signed-off-by: Nathan Rossi --- Changes in v2: - New --- meta/lib/oeqa/selftest/context.py | 11

[OE-core] [PATCH v2 12/12] oeqa/selftest/glibc: Create selftest case for glibc test suite

2019-09-03 Thread Nathan Rossi
linux-user and qemu system. The GlibcSelfTestSystemEmulated test case handles setup of the target image, setup of and NFS server as well as execution with runqemu. Signed-off-by: Nathan Rossi --- Changes in v2: - Populate test results as ptestresults - Rename BUILD_TEST_* to TOOLCHAIN_TEST_

[OE-core] [PATCH v2 11/12] oeqa/selftest/gcc: Create selftest case for gcc test suite

2019-09-03 Thread Nathan Rossi
linux-user and qemu system. The GccSelfTestSystemEmulated test case handles setup of the target image as well as execution with runqemu. Signed-off-by: Nathan Rossi --- Changed in v2: - Change to using only gcc-runtime recipe and associated check targets - Remove gxx/g++ testcase, this is part of

[OE-core] [PATCH v2 10/12] oeqa/selftest/binutils: Create selftest case for binutils test suite

2019-09-03 Thread Nathan Rossi
Create a oeqa selftest test case to execute the binutils test suites and report the results. The results are populated into the extraresults variable of the test case which are written to testresults.json for resulttool to analyse. Signed-off-by: Nathan Rossi --- Changes in v2: - Update to use

[OE-core] [PATCH v2 08/12] oeqa/core: Rework OETestTag and remove unused OETestFilter

2019-09-03 Thread Nathan Rossi
any tests tagged with foo). Plumb all this through the context code and testing code. Update the associated tests to pass correctly with the changes. Signed-off-by: Nathan Rossi --- Changes in v2: - New --- meta/lib/oeqa/core/context.py | 4 +- meta/lib/oeqa/core/decorator/__init__.

[OE-core] [PATCH v2 00/12] Add gnu testsuite execution for OEQA

2019-09-03 Thread Nathan Rossi
oeqa/core testsuite - New changes to oeqa/selftest for '--run-only-tags' and '--run-exclude-tags' - Changes to new selftest tests to populate results like ptestresults - Mark new selftest tests with 'machine' tag --- Nathan Rossi (12): dejagnu: Add dejagnu for bin

[OE-core] [PATCH v2 04/12] gcc-common.inc: Process staging fixme with correct target/native sysroot

2019-09-03 Thread Nathan Rossi
root. Signed-off-by: Nathan Rossi --- meta/recipes-devtools/gcc/gcc-common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index 89273a7745..44cba287f3 100644 --- a/meta/recipes-devtools/gcc/

[OE-core] [PATCH v2 05/12] glibc-testsuite: Create a recipe to implement glibc test suite

2019-09-03 Thread Nathan Rossi
th the same TOOLCHAIN_TEST_* variables used for configuration. Signed-off-by: Nathan Rossi --- Changes in v2: - Renamed BUILD_TEST_* to TOOLCHAIN_TEST_* --- meta/recipes-core/glibc/glibc-testsuite_2.30.bb | 51 + meta/recipes-core/glibc/glibc/check-test-wrappe

[OE-core] [PATCH v2 03/12] gcc-runtime: Add do_check task for executing gcc test suites

2019-09-03 Thread Nathan Rossi
changed by setting MAKE_CHECK_TARGETS to the desired test suite target (e.g. check-gcc or check-target-libatomic). Signed-off-by: Nathan Rossi --- Changes in v2: - Dropped gcc-cross changes, all execution from gcc-runtime. Resolves potential issues with -cross depending on target libraries/etc

[OE-core] [PATCH v2 06/12] oeqa/core/tests: Skip test_fail_duplicated_module

2019-09-03 Thread Nathan Rossi
At some point the modules in tests/cases/loader/invalid/ were removed, this test relied on having tests/cases/loader/invalid/oetag.py to trigger a ImportError in the loader module. Skip this test. Signed-off-by: Nathan Rossi --- Changes in v2: - New --- meta/lib/oeqa/core/tests/test_loader.py

[OE-core] [PATCH v2 01/12] dejagnu: Add dejagnu for binutils/gcc test suites

2019-09-03 Thread Nathan Rossi
The binutils and gcc test suites use dejagnu for execution. Copy the dejagnu recipe from meta-oe, and update it to 1.6.2. Signed-off-by: Nathan Rossi --- Changes in v2: - New --- meta/recipes-devtools/dejagnu/dejagnu_1.6.2.bb | 15 +++ 1 file changed, 15 insertions(+) create mode

[OE-core] [PATCH v2 02/12] binutils-cross-testsuite: Create recipe for test suite execution

2019-09-03 Thread Nathan Rossi
r since the binutils tests do rely on a C compiler there is dependence on both gcc and libc in order to run the tests. Signed-off-by: Nathan Rossi --- Changes in v2: - Moved implementation of do_check from binutils-cross to binutils-cross-testsuite. This is to fix issues with target dependency

[OE-core] [PATCH 9/11] oeqa/utils/nfs: Add unfs_server function to setup a userspace NFS server

2019-08-27 Thread Nathan Rossi
ee_port to get a free UDP port. Note: unfs3 still requires the host to have rpcbind or portmap running. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/utils/network.py | 4 ++-- meta/lib/oeqa/utils/nfs.py | 39 +++ 2 files changed, 41 insertions(+), 2

[OE-core] [PATCH 10/11] oeqa/selftest/glibc: Create selftest case for glibc test suite

2019-08-27 Thread Nathan Rossi
linux-user and qemu system. The GlibcSelfTestSystemEmulated test case handles setup of the target image, setup of and NFS server as well as execution with runqemu. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/glibc.py | 91 +++ 1 file changed, 91

[OE-core] [PATCH 11/11] scripts/lib/resulttool/report.py: Add more result types

2019-08-27 Thread Nathan Rossi
Add additional result types into the dictionary to handle dejagnu style test results. These include PASS, FAIL, XPASS, XFAIL, UNSUPPORTED, UNTESTED, UNRESOLVED and ERROR. Signed-off-by: Nathan Rossi --- scripts/lib/resulttool/report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[OE-core] [PATCH 6/11] binutils: Fix mips patch which changes default emulation

2019-08-27 Thread Nathan Rossi
The patch incorrectly removes 'mips_elf32_ntrad_le_vec' from the 'targ_selvecs' replacing it with duplicate entries for 'mips_elf32_ntrad_be_vec'. Correct this so that the default binutils can still handle 'mips_elf32_ntrad_le_vec' binaries. Signed-of

[OE-core] [PATCH 8/11] oeqa/selftest/gcc: Create selftest case for gcc test suite

2019-08-27 Thread Nathan Rossi
linux-user and qemu system. The GccSelfTestSystemEmulated test case handles setup of the target image as well as execution with runqemu. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases/gcc.py | 107 1 file changed, 107 insertions(+) create mode

[OE-core] [PATCH 7/11] oeqa/selftest/binutils: Create selftest case for binutils test suite

2019-08-27 Thread Nathan Rossi
Create a oeqa selftest test case to execute the binutils test suites and report the results. The results are populated into the extraresults variable of the test case which are written to testresults.json for resulttool to analyse. Signed-off-by: Nathan Rossi --- meta/lib/oeqa/selftest/cases

[OE-core] [PATCH 3/11] gcc-runtime: Add do_check task for executing gcc-runtime test suites

2019-08-27 Thread Nathan Rossi
Add a do_check task to implement execution of the gcc-runtime component test suites. The component test suites require execution of compiled programs on the target, this recipe reuses the same setup as gcc-cross for setup of the target (either as ssh or qemu linux-user). Signed-off-by: Nathan

[OE-core] [PATCH 1/11] binutils: Add do_check task for executing binutils test suite

2019-08-27 Thread Nathan Rossi
: Nathan Rossi --- meta/recipes-devtools/binutils/binutils-cross.inc | 28 +++ 1 file changed, 28 insertions(+) diff --git a/meta/recipes-devtools/binutils/binutils-cross.inc b/meta/recipes-devtools/binutils/binutils-cross.inc index 02ec891606..76eb453f0e 100644 --- a/meta

[OE-core] [PATCH 4/11] gcc-common.inc: Process staging fixme with correct target/native sysroot

2019-08-27 Thread Nathan Rossi
root. Signed-off-by: Nathan Rossi --- meta/recipes-devtools/gcc/gcc-common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index 96334e54b4..a8f4b60c32 100644 --- a/meta/recipes-devtools/gcc/

[OE-core] [PATCH 2/11] gcc-cross: Add do_check task for executing gcc test suite

2019-08-27 Thread Nathan Rossi
setting MAKE_CHECK_TARGETS to the desired test suite target (e.g. check-gcc or check-g++). Signed-off-by: Nathan Rossi --- meta/recipes-devtools/gcc/gcc-cross.inc | 41 +++ meta/recipes-devtools/gcc/gcc-testsuite.inc | 106 2 files changed, 147 insertions

  1   2   3   4   >