[yocto] [meta-zephyr][PATCH 2/2][mickledore] CI: Disable testimage on qemu-cortex-a9

2023-05-09 Thread Peter Hoyes
From: Peter Hoyes Runtime validation is currently failing on qemu-cortex-a9 for undiagnosed reasons. Disable testimage on this machine for now until it has been fixed. Signed-off-by: Peter Hoyes --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab

[yocto] [meta-zephyr][PATCH 1/2][mickledore] CI: Update to mickledore

2023-05-09 Thread Peter Hoyes
From: Peter Hoyes Signed-off-by: Peter Hoyes --- ci/base.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/base.yml b/ci/base.yml index 70adac1..4bf59d1 100644 --- a/ci/base.yml +++ b/ci/base.yml @@ -7,7 +7,7 @@ distro: zephyr defaults: repos: -refspec

Re: [yocto] [meta-parsec][master,mickledore][PATCH] meta-parsec/layer.conf: Insert addpylib declaration

2023-05-09 Thread Peter Hoyes
Hi again Armin, On 03/05/2023 13:38, Peter Hoyes via lists.yoctoproject.org wrote: Hi Armin, On 27/04/2023 16:01, Peter Hoyes via lists.yoctoproject.org wrote: From: Peter Hoyes Yocto mickledore introduced the addpylib directive for explicitly adding layer paths to the PYTHONPATH

Re: [yocto] [meta-parsec][master,mickledore][PATCH] meta-parsec/layer.conf: Insert addpylib declaration

2023-05-03 Thread Peter Hoyes
Hi Armin, On 27/04/2023 16:01, Peter Hoyes via lists.yoctoproject.org wrote: From: Peter Hoyes Yocto mickledore introduced the addpylib directive for explicitly adding layer paths to the PYTHONPATH. Standalone OEQA test suite discovery does not require this directive but it is required

[yocto] [meta-parsec][master,mickledore][PATCH] meta-parsec/layer.conf: Insert addpylib declaration

2023-04-27 Thread Peter Hoyes
From: Peter Hoyes Yocto mickledore introduced the addpylib directive for explicitly adding layer paths to the PYTHONPATH. Standalone OEQA test suite discovery does not require this directive but it is required to import test cases from other layers, e.g. to extend and modify the test cases

[yocto] [meta-zephyr][PATCH] zephyr-core/zephyr-kernel: Fix arm32 binutils 2.40 incompatibility

2023-04-19 Thread Peter Hoyes
From: Peter Hoyes Armv7 boards are currently failing with binutils 2.40 if certain statements are combined on the same line without a semicolon. Introduce a patch to fix this by inserting a semicolon. Signed-off-by: Peter Hoyes --- ...x-separator-between-directives-on-sa.patch | 44

[yocto] [meta-zephyr][PATCH 3/3] zephyr-core/zephyr-kernel: Use SHA for zcbor module

2023-04-19 Thread Peter Hoyes
From: Peter Hoyes Re-run the generate-version.py script for 3.3.0 to convert the tag for zcbor to a SHA. Signed-off-by: Peter Hoyes --- .../recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.3.0.inc| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-zephyr-core/recipes

[yocto] [meta-zephyr][PATCH 2/3] zephyr-core/scripts: Resolve West revisions to SHAs

2023-04-19 Thread Peter Hoyes
From: Peter Hoyes The West manifest in Zephyr 3.3 contains a tag (instead of a SHA) for zcbor [1]. OE standard practice is to always specifiy revisions using SHAs, so in the Jinja template, use the new resolve_revision filter to resolve any tags. [1] https://github.com/zephyrproject-rtos

[yocto] [meta-zephyr][PATCH 1/3] zephyr-core/scripts: Resolve Zephyr tag using git ls-remote

2023-04-19 Thread Peter Hoyes
From: Peter Hoyes To simplify the logic to resolve Git tags to SHAs, and so that it works with non-Github repositories, use git ls-remote instead of the Github API. Make the resolve_revision function available as a Jinja filter and move the version resolution to the template. Signed-off

[yocto] [meta-zephyr][PATCH] CI: Update Kas version to 3.2.3

2023-04-19 Thread Peter Hoyes
From: Peter Hoyes Signed-off-by: Peter Hoyes --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d5462a4..2ecf132 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: ghcr.io/siemens/kas/kas:3.2 +image

[yocto] [meta-zephyr][PATCH 2/2] zephyr-core/zephyr-kernel: Remove the downstream "yocto" toolchain

2023-02-22 Thread Peter Hoyes
From: Peter Hoyes The "yocto" toolchain requires a downstream patch to be carried and maintained. The upstream "cross-compile" toolchain is equivalent so this is no longer needed. Remove the toolchain-specific inc file and the downstream patch. Signed-off-by: Peter Hoye

[yocto] [meta-zephyr][PATCH 1/2] zephyr-core/zephyr-kernel: Use the upstream "cross-compile" toolchain

2023-02-22 Thread Peter Hoyes
From: Peter Hoyes Zephyr upstream contains CMake configuration for a "cross-compile" toolchain for "other cross compilers" which works with the Yocto-built toolchain out-of-the-box, so use this instead of the "yocto" toolchain, which requires a downstream patch t

[yocto] [meta-zephyr][PATCH 3/3] zephyr-sdk: Upgrade to version 0.15.2

2023-02-22 Thread Peter Hoyes
From: Peter Hoyes https://github.com/zephyrproject-rtos/sdk-ng/releases/tag/v0.15.2 Signed-off-by: Peter Hoyes --- .../zephyr-sdk/{zephyr-sdk_0.15.1.bb => zephyr-sdk_0.15.2.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-zephyr-core/recipes-devtools/zephyr-

[yocto] [meta-zephyr][PATCH 2/3] zephyr-kernel: Drop support for v3.1.0 and v3.2.0

2023-02-22 Thread Peter Hoyes
From: Peter Hoyes Now that v3.3.0 is available, drop support for previous versions. Rename the downstream patches and drop the backport. Signed-off-by: Peter Hoyes --- ...ix-SMP-local-keys-check-when-startin.patch | 51 ... 0001-3.3-cmake-add-yocto-toolchain.patch} | 0 ...y

[yocto] [meta-zephyr][PATCH 1/3] zephyr-kernel: Add support for v3.3.0

2023-02-22 Thread Peter Hoyes
From: Peter Hoyes https://github.com/zephyrproject-rtos/zephyr/releases/tag/v3.3.0 Signed-off-by: Peter Hoyes --- .../zephyr-kernel/zephyr-kernel-src-3.3.0.inc | 239 ++ .../zephyr-kernel/zephyr-kernel-src.inc | 2 +- 2 files changed, 240 insertions(+), 1 deletion

[yocto] [meta-zephyr][PATCH] zephyr-core/zephyr-kernel: Add ZEPHYR namespace to SRC_URI variables

2023-01-25 Thread Peter Hoyes
From: Peter Hoyes Certain SRC_URI_* variables may collide with other recipes, e.g. SRC_URI_TRUSTED_FIRMWARE_A. Namespace these variables under SRC_URI_ZEPHYR so that the SRC_URIs of Zephyr modules can be independently tweaked from local.conf or the environment. Signed-off-by: Peter Hoyes

[yocto] [meta-zephyr][PATCH 2/2][kirkstone] CI: add tags to all jobs

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes Tag all jobs with the DEFAULT_TAG variable so each instance can control what tags the jobs have. Signed-off-by: Ross Burton Signed-off-by: Jon Mason Signed-off-by: Peter Hoyes --- .gitlab-ci.yml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[yocto] [meta-zephyr][PATCH 1/2][kirkstone] CI: Add variables needed for k8s runners

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes The Kas container needs to use the entrypoint as that is where the user changes from root to a normal user. Also set the KUBERNETES_CPU_REQUEST to the variable CPU_REQUEST as this needs to be tuned per-deployment. CPU_REQUEST has no value outside of Arm Corp. Gitlab CI

[yocto] [meta-zephyr][PATCH 5/5][langdale] zephyr-core/zephyr-kernel: Inhibit packaging steps with the Zephyr SDK

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes The packaging step includes post-processing of elf files using objcopy and strip from the Yocto toolchain. When using the Zephyr SDK, the Yocto toolchain is explicitly not built so it is not possible to run these steps. Therefore, inhibit them in zephyr-toolchain-zephyr.inc

[yocto] [meta-zephyr][PATCH 4/5][langdale] zephyr-core/zephyr-kernel: Use layer-relative require for version file

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes The inclusion of the Zephyr version-specific .inc file is currently using a local include. Change to be layer-relative to support including files in other layers. Change to use 'require' instead of 'include' so that an earlier error is printed if the file does not exist

[yocto] [meta-zephyr][PATCH 3/5][langdale] CI: Set default branch to langdale

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes Signed-off-by: Peter Hoyes --- ci/base.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/base.yml b/ci/base.yml index 70adac1..7b2203e 100644 --- a/ci/base.yml +++ b/ci/base.yml @@ -7,7 +7,7 @@ distro: zephyr defaults: repos: -refspec

[yocto] [meta-zephyr][PATCH 2/5][langdale] CI: add tags to all jobs

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes Tag all jobs with the DEFAULT_TAG variable so each instance can control what tags the jobs have. Signed-off-by: Ross Burton Signed-off-by: Jon Mason Signed-off-by: Peter Hoyes --- .gitlab-ci.yml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[yocto] [meta-zephyr][PATCH 1/5][langdale] CI: Add variables needed for k8s runners

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes The Kas container needs to use the entrypoint as that is where the user changes from root to a normal user. Also set the KUBERNETES_CPU_REQUEST to the variable CPU_REQUEST as this needs to be tuned per-deployment. CPU_REQUEST has no value outside of Arm Corp. Gitlab CI

[yocto] [meta-zephyr][PATCH 5/5] zephyr-core: Add addpylib declaration

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes OE-core 4901c9d471cab99d52876842980222ce271b66e4 "base: Switch to use addpylib directive and BB_GLOBAL_PYMODULES" means that ${LAYERDIR}/lib is no longer searched by default when loading test controllers. meta-zephyr-core defines some custom test controllers for te

[yocto] [meta-zephyr][PATCH 4/5] zephyr-core/zephyr-kernel: Inhibit packaging steps with the Zephyr SDK

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes The packaging step includes post-processing of elf files using objcopy and strip from the Yocto toolchain. When using the Zephyr SDK, the Yocto toolchain is explicitly not built so it is not possible to run these steps. Therefore, inhibit them in zephyr-toolchain-zephyr.inc

[yocto] [meta-zephyr][PATCH 3/5] zephyr-core/zephyr-kernel: Use layer-relative require for version file

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes The inclusion of the Zephyr version-specific .inc file is currently using a local include. Change to be layer-relative to support including files in other layers. Change to use 'require' instead of 'include' so that an earlier error is printed if the file does not exist

[yocto] [meta-zephyr][PATCH 2/5] CI: add tags to all jobs

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes Tag all jobs with the DEFAULT_TAG variable so each instance can control what tags the jobs have. Signed-off-by: Ross Burton Signed-off-by: Jon Mason Signed-off-by: Peter Hoyes --- .gitlab-ci.yml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[yocto] [meta-zephyr][PATCH 1/5] CI: Add variables needed for k8s runners

2022-12-16 Thread Peter Hoyes
From: Peter Hoyes The Kas container needs to use the entrypoint as that is where the user changes from root to a normal user. Also set the KUBERNETES_CPU_REQUEST to the variable CPU_REQUEST as this needs to be tuned per-deployment. CPU_REQUEST has no value outside of Arm Corp. Gitlab CI

[yocto] [meta-zephyr][PATCH 2/2] zephyr-core/zephyr-kernel: Implement do_install

2022-09-30 Thread Peter Hoyes
From: Peter Hoyes Install the Zephyr binaries to ${D}/firmware prior to copying them to ${DEPLOYDIR}. Implementing do_install has three advantages: * In use-cases when the Zephyr application is not the final artifact (e.g. when signing or using additional firmware), other recipes can

[yocto] [meta-zephyr][PATCH 1/2] zephyr-core/zephyr-kernel: Refactor zephyr-image and zephyr-sample

2022-09-30 Thread Peter Hoyes
From: Peter Hoyes At the moment: * zephyr-image.inc depends on zephyr-sample.inc, which doesn't really make sense. * zephyr-image.inc inherits testimage, even though it may not be required. * Out-of-tree Zephyr apps have to include zephyr-sample.inc in order to deploy the binaries

Re: [yocto] [meta-zephyr][PATCH] nrf52840-mdk-usb-dongle.conf: Add new machine from makerdiary

2022-09-23 Thread Peter Hoyes
Hi, One minor comment below. On 23/09/2022 09:27, philippe.coval via lists.yoctoproject.org wrote: From: Philippe Coval It was tested with zephyr-openthread-rcp along Oniro's IoT gateway blueprint For the record deployment was done manually: - Click on device button - uf2conv.py

[yocto] [meta-zephyr][PATCH 4/4] zephyr-core/zephyr-kernel: Update dtc.patch Upstream-Status

2022-09-16 Thread Peter Hoyes
From: Peter Hoyes The patch dtc.patch used by 2.7.3 has been accepted upstream, so it is now a Backport. Signed-off-by: Peter Hoyes --- meta-zephyr-core/recipes-kernel/zephyr-kernel/files/dtc.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-zephyr-core/recipes

[yocto] [meta-zephyr][PATCH 3/4] zephyr-core/classes: Remove West-based logic from zephyr.bbclass

2022-09-16 Thread Peter Hoyes
From: Peter Hoyes For a given release tag, ZEPHYR_MODULES is constant. It is therefore now populated by the generate-version.py script, the output of which is stored in the repository, so the build-time logic to populate ZEPHYR_MODULES is no longer needed. Remove the do_get_zmods task

[yocto] [meta-zephyr][PATCH 2/4] zephyr-core/zephyr-kernel: Migrate to script-driven version files

2022-09-16 Thread Peter Hoyes
From: Peter Hoyes This commit uses the output of meta-zephyr-core/scripts/generate-version.py for both the 2.7.3 and 3.1.0 versions. Rename a patch for for v2.7.3 to match the filename expected by the generated configuration. Signed-off-by: Peter Hoyes --- ...y-generation-issue-in-cross

[yocto] [meta-zephyr][PATCH 1/4] zephyr-core/scripts: Introduce script to generate new versions

2022-09-16 Thread Peter Hoyes
From: Peter Hoyes Add a Python script which can be used to automatically generate configuration for new Zephyr versions. This script: * Takes the Zephyr version as a single argument * Uses the Github API to find the version tag's SHA1 * Uses West as a library to parse the version's manifest

[yocto] [meta-zephyr][PATCH 0/4] Add script for version upgrades

2022-09-16 Thread Peter Hoyes
From: Peter Hoyes This patch chain has been developed on top of the 2.7.3 upgrade patch. Add a script, generate-version.py, which can be used to automatically generate configuration for new Zephyr versions. Regenerate configuration for 2.7.3 and 3.1.0 using this script. This script includes

[yocto] [meta-zephyr][PATCH 5/5] zephyr-kernel: Add 'zephyr' toolchain variant

2022-09-06 Thread Peter Hoyes
From: Peter Hoyes Add an option to build applications using the Zephyr SDK by specifying ZEPHYR_TOOLCHAIN_VARIANT="zephyr". This mode works with the zephyr or poky distros (TCMODE is ignored), allowing Zephyr applications to be built alongside a Linux stack. Provide a toolchain-sp

[yocto] [meta-zephyr][PATCH 4/5] zephyr-sdk: Add recipe to download and build the Zephyr SDK

2022-09-06 Thread Peter Hoyes
From: Peter Hoyes The Zephyr SDK (https://github.com/zephyrproject-rtos/sdk-ng) provides pre-built toolchains for all of Zephyr's supported architectures. Add a recipe to download SDK v0.14.2, in preparation for adding an option to build Zephyr applications using this toolchain instead

[yocto] [meta-zephyr][PATCH 3/5] zephyr-kernel: Factor out Yocto toolchain specific variables

2022-09-06 Thread Peter Hoyes
From: Peter Hoyes Create ZEPHYR_TOOLCHAIN_VARIANT variable with an unchanged default value of 'yocto'. To support providing different configuration for different toolchain variants, require a toolchain-specific inc file. Create zephyr-toolchain-yocto.inc, and factor out all variables

[yocto] [meta-zephyr][PATCH 2/5] CI: Use the matrix to ovleray additional Kas files

2022-09-06 Thread Peter Hoyes
From: Peter Hoyes Adopt the jobs-to-kas helper script from meta-arm, which uses Gitlab's parellel matrix to overlay additional Kas files on top of the base Kas file (based on $CI_JOB_NAME). This allows multiple combinations of Kas file overlays to be easily tested with minimal boilerplate

[yocto] [meta-zephyr][PATCH 1/5] Cleanup README.txt files

2022-09-06 Thread Peter Hoyes
From: Peter Hoyes The README.txt files at the root and in meta-zephyr-core are identical, so replace the copy inside meta-zephyr-core with "See ../README.txt" to remove the need to keep two files in sync. Add a similar README.txt to meta-zephyr-bsp. Signed-off-by: Peter Hoyes --- m

Re: [linux-yocto] Bug in yocto-kernel-tools when BBLAYERS contains paths relative to TOPDIR

2022-08-31 Thread Peter Hoyes
On 16/08/2022 14:02, Peter Hoyes wrote: On 16/08/2022 13:42, Bruce Ashfield via lists.yoctoproject.org wrote: On Tue, Aug 16, 2022 at 8:34 AM Peter Hoyes wrote: Hi, We have discovered an issue in yocto-kernel-tools that only arises with a certain combination of host build paths. Some steps

Re: [linux-yocto] Bug in yocto-kernel-tools when BBLAYERS contains paths relative to TOPDIR

2022-08-16 Thread Peter Hoyes
On 16/08/2022 13:42, Bruce Ashfield via lists.yoctoproject.org wrote: On Tue, Aug 16, 2022 at 8:34 AM Peter Hoyes wrote: Hi, We have discovered an issue in yocto-kernel-tools that only arises with a certain combination of host build paths. Some steps to reproduce are as follows: Create

[linux-yocto] Bug in yocto-kernel-tools when BBLAYERS contains paths relative to TOPDIR

2022-08-16 Thread Peter Hoyes
Hi, We have discovered an issue in yocto-kernel-tools that only arises with a certain combination of host build paths. Some steps to reproduce are as follows: 1. Create directories /build and /work at the root of the filesystem (e.g. in a container or VM) 2. Checkout poky at /work/poky 3.

[yocto] [meta-zephyr][PATCH 3/3] zephyr-kernel: Checkout zephyr in subdir to match West usage

2022-08-08 Thread Peter Hoyes
From: Peter Hoyes When using West, Zephyr is checked out in a "zephyr" subdirectory of the working directory. At the moment Zephyr is checked out at the root, meaning a workaround is required to extract the module information. In order to remove the workaround, change the Zephyr

[yocto] [meta-zephyr][PATCH 2/3] zephyr-kernel: Use ZEPHYR_BASE in all application recipes

2022-08-08 Thread Peter Hoyes
From: Peter Hoyes Change ${S} -> ${ZEPHYR_BASE} in all application recipes, as Zephyr might not always be found at the root of the source directory. Signed-off-by: Peter Hoyes --- meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb | 2 +- .../recipes-kernel/zephyr-kernel/zep

[yocto] [meta-zephyr][PATCH 1/3] zephyr-kernel: Remove redundant ZEPHYR_BASE definitions

2022-08-08 Thread Peter Hoyes
From: Peter Hoyes zephyr-image.inc and zephyr-sample.inc both include zephyr-kernel-common.inc, which already defines ZEPHYR_BASE. Remove the redundant definitions. Also, pass -DZEPHYR_BASE=${ZEPHYR_BASE} instead of ${S} in EXTRA_OECMAKE. Signed-off-by: Peter Hoyes --- meta-zephyr-core

[yocto] [meta-zephyr][PATCH] Add a .gitignore file

2022-08-03 Thread Peter Hoyes
From: Peter Hoyes The oeqa code in meta-zephyr-core/lib/ generates __pycache__ files which pollute the development environment. Add a .gitignore file to automatically exclude these files from commits. Signed-off-by: Peter Hoyes --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode

[yocto] [meta-zephyr][PATCH 3/3] CI: Build zephyr-synchronization in base.yml

2022-08-03 Thread Peter Hoyes
From: Peter Hoyes Signed-off-by: Peter Hoyes --- ci/base.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/base.yml b/ci/base.yml index f85d780..70adac1 100644 --- a/ci/base.yml +++ b/ci/base.yml @@ -36,3 +36,4 @@ target: - zephyr-helloworld - zephyr-kernel-test-all - zephyr

[yocto] [meta-zephyr][PATCH 2/3] zephyr-kernel: Add SUMMARY and DESCRIPTION for classic sample apps

2022-08-03 Thread Peter Hoyes
From: Peter Hoyes Hello World and Philosophers do not have a SUMMARY or DESCRIPTION, so add these to both recipes. Signed-off-by: Peter Hoyes --- .../recipes-kernel/zephyr-kernel/zephyr-helloworld.bb| 4 .../recipes-kernel/zephyr-kernel/zephyr-philosophers.bb | 5 + 2

[yocto] [meta-zephyr][PATCH 1/3] zephyr-kernel: Add synchronization sample recipe

2022-08-03 Thread Peter Hoyes
From: Peter Hoyes The Zephyr documentation [1] lists 3 "classic samples" that "can be run on any of the supported platforms": Hello World, Synchronization and Dining Philosophers. meta-zephyr already includes the first two but not synchronization so add a recip

[yocto] [meta-zephyr] [PATCH 1/2] zephyrtest: Enable use of TESTIMAGE_AUTO

2022-07-26 Thread Peter Hoyes
From: Peter Hoyes When TESTIMAGE_AUTO is enabled, the do_testimage task is inserted after do_image_complete and before do_build so that the test suites automatically run as part of the image build. However, do_testdata_write is currently constrained to run only before do_build, so it likely

[yocto] [meta-zephyr] [PATCH 2/2] CI: Use TESTIMAGE_AUTO

2022-07-26 Thread Peter Hoyes
From: Peter Hoyes Now that TESTIMAGE_AUTO is available for Zephyr builds, enable it in ci/testimage.yml and remove the redundant build_and_test base configuration. Remove testimage from Nios2 build as it is currently failing. Signed-off-by: Peter Hoyes --- .gitlab-ci.yml | 17