* [meta-zephyr][master][PATCH 00/12] Update for master
@ 2025-08-15 3:54 Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 01/12] zephyr-kernel-src.inc.jinja: Update script to generate srcrev Sandeep Gundlupet Raju
` (11 more replies)
0 siblings, 12 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
**Note**: This patch set requires Lee Chee Yang's patches.
[meta-zephyr][PATCH v2 1/2] layer.conf: Update to whinlatter release series
[meta-zephyr][PATCH 2/2] recipes: update to match S/UNPACKDIR changes
Description of change:
1. Update script to generate srcrev
2. Fix runqemu errors for qemu-cortex-a9 machine.
3. Add new sdk inc file
4. Remove PREFERRED_VERSION_zephyr-kernel from zephyr-kernel-src and
move to layer.conf
5. Add image artifacts to output files and use these files for qemuimage.
6. Update README files.
7. Move classes to match bbclass scope functionality.
8. Use relative path to follow best practice.
9. Convert zephyr-sample inc file to bbclass so that it can
be inherited from custom layers to support out-of-tree
zephyr applications.
10. Add rpmsg multi services recipe for openamp.
11. Add Board extension support.
Testing:
Run the following commands.
$ MACHINE=<machine-name> bitbake zephyr-helloworld
$ MACHINE=<machine-name> runqemu nographic
Summary of changes:
meta-zephyr (master):
Sandeep Gundlupet Raju
zephyr-kernel-common: Add Board extension support
Sandeep Gundlupet Raju
zephyr-kernel: Add rpmsg multi services recipe
Sandeep Gundlupet Raju
classes-recipe: Convert zephyr-sample inc file to bbclass
Sandeep Gundlupet Raju
zephyr-kernel: Use relative path
Sandeep Gundlupet Raju
meta-zephyr: Update README files
Sandeep Gundlupet Raju
zephyr-qemuboot: Use image artifact file in qemuimage
Sandeep Gundlupet Raju
classes: Move classes to match bbclass scope functionality
Sandeep Gundlupet Raju
zephyr-image: Add image artifacts to output files
Sandeep Gundlupet Raju
zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel
Sandeep Gundlupet Raju
zephyr-sdk: Add new inc file
Sandeep Gundlupet Raju
qemu-cortex-a9: Fix runqemu errors
Sandeep Gundlupet Raju
zephyr-kernel-src.inc.jinja: Update script to generate srcrev
README.txt => README.md | 163 ++++++++++++------
meta-zephyr-bsp/README.md | 5 +
meta-zephyr-bsp/README.txt | 1 -
.../conf/machine/qemu-cortex-a9.conf | 1 +
.../meta/generate-zephyr-machines.bb | 4 +-
meta-zephyr-core/README.md | 6 +
meta-zephyr-core/README.txt | 1 -
.../zephyr-qemuboot.bbclass | 6 +-
.../classes-recipe/zephyr-sample.bbclass | 10 ++
.../zephyr.bbclass | 0
.../zephyrtest.bbclass | 0
meta-zephyr-core/conf/layer.conf | 3 +
.../zephyr-sdk/zephyr-sdk.inc | 35 ++++
.../zephyr-sdk/zephyr-sdk_0.16.9.bb | 33 +---
.../zephyr-kernel/zephyr-blinky.bb | 2 +-
.../zephyr-kernel/zephyr-coap-client.bb | 2 +-
.../zephyr-kernel/zephyr-coap-server.bb | 2 +-
.../zephyr-kernel/zephyr-echo-client.bb | 2 +-
.../zephyr-kernel/zephyr-hci-uart.bb | 2 +-
.../zephyr-kernel/zephyr-helloworld.bb | 2 +-
.../zephyr-kernel/zephyr-http-client.bb | 2 +-
.../zephyr-kernel/zephyr-image.inc | 21 ++-
.../zephyr-kernel/zephyr-kernel-common.inc | 7 +-
.../zephyr-kernel/zephyr-kernel-src.inc | 2 -
.../zephyr-kernel/zephyr-kernel-test-all.bb | 2 +-
.../zephyr-kernel/zephyr-kernel-test.bb | 4 +-
.../zephyr-kernel/zephyr-lvgl.bb | 2 +-
.../zephyr-kernel/zephyr-mqtt-publisher.bb | 2 +-
.../zephyr-openamp-rpmsg-multi-srv.bb | 23 +++
.../zephyr-kernel/zephyr-openamp-rsc-table.bb | 2 +-
.../zephyr-openthread-echo-client.bb | 2 +-
.../zephyr-kernel/zephyr-openthread-rcp.bb | 2 +-
.../zephyr-kernel/zephyr-peripheral-esp.bb | 2 +-
.../zephyr-kernel/zephyr-peripheral-hr.bb | 2 +-
.../zephyr-kernel/zephyr-philosophers.bb | 2 +-
.../zephyr-kernel/zephyr-sample.inc | 1 -
.../zephyr-kernel/zephyr-synchronization.bb | 2 +-
.../zephyr-kernel/zephyr-websocket-client.bb | 2 +-
.../scripts/zephyr-kernel-src.inc.jinja | 6 +-
39 files changed, 243 insertions(+), 125 deletions(-)
rename README.txt => README.md (60%)
create mode 100644 meta-zephyr-bsp/README.md
delete mode 100644 meta-zephyr-bsp/README.txt
create mode 100644 meta-zephyr-core/README.md
delete mode 100644 meta-zephyr-core/README.txt
rename meta-zephyr-core/{classes => classes-recipe}/zephyr-qemuboot.bbclass (92%)
create mode 100644 meta-zephyr-core/classes-recipe/zephyr-sample.bbclass
rename meta-zephyr-core/{classes => classes-recipe}/zephyr.bbclass (100%)
rename meta-zephyr-core/{classes => classes-recipe}/zephyrtest.bbclass (100%)
create mode 100644 meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-multi-srv.bb
delete mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc
--
2.34.1
^ permalink raw reply [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 01/12] zephyr-kernel-src.inc.jinja: Update script to generate srcrev
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 02/12] qemu-cortex-a9: Fix runqemu errors Sandeep Gundlupet Raju
` (10 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Update script to generate correct SRCREV and other info to match
poky variable updates.
Also use "version" instead of "short_version" for SRC_URI_PATCHES.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
meta-zephyr-core/scripts/zephyr-kernel-src.inc.jinja | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta-zephyr-core/scripts/zephyr-kernel-src.inc.jinja b/meta-zephyr-core/scripts/zephyr-kernel-src.inc.jinja
index 2a3faeb..ed23944 100644
--- a/meta-zephyr-core/scripts/zephyr-kernel-src.inc.jinja
+++ b/meta-zephyr-core/scripts/zephyr-kernel-src.inc.jinja
@@ -13,13 +13,13 @@ SRC_URI_ZEPHYR_{{ project.name | bitbake_var }} ?= "{{ project.url | git_url_to_
{%- endfor %}
SRC_URI_PATCHES ?= "\
- file://0001-{{ short_version }}-x86-fix-efi-binary-generation-issue-in-cross-compila.patch;patchdir=zephyr \
+ file://0001-v{{ version }}-x86-fix-efi-binary-generation-issue-in-cross-compila.patch;patchdir=zephyr \
"
SRC_URI = "\
- ${SRC_URI_ZEPHYR};branch=${ZEPHYR_BRANCH};name=default;destsuffix=git/zephyr \
+ ${SRC_URI_ZEPHYR};branch=${ZEPHYR_BRANCH};name=default;destsuffix=${P}/zephyr \
{%- for project in projects %}
- ${SRC_URI_ZEPHYR_{{ project.name | bitbake_var }}};name={{ project.name }};nobranch=1;destsuffix=git/{{ project.path }} \
+ ${SRC_URI_ZEPHYR_{{ project.name | bitbake_var }}};name={{ project.name }};nobranch=1;destsuffix=${P}/{{ project.path }} \
{%- endfor %}
${SRC_URI_PATCHES} \
"
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 02/12] qemu-cortex-a9: Fix runqemu errors
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 01/12] zephyr-kernel-src.inc.jinja: Update script to generate srcrev Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 03/12] zephyr-sdk: Add new inc file Sandeep Gundlupet Raju
` (9 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Fix below runqemu errors for qemu-cortex-a9 machine.
runqemu - ERROR - Failed to run qemu: qemu-system-arm: -device virtio-rng-pci,rng=rng0: No 'PCI' bus found for device 'virtio-rng-pci'
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
index 4ce6e56..e0f6ade 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
@@ -14,6 +14,7 @@ QB_MACHINE = "-machine xilinx-zynq-a9"
QB_CPU = "-cpu cortex-a9"
QB_GRAPHICS = "-nographic -vga none"
QB_OPT_APPEND = "-icount shift=3,align=off,sleep=off -rtc clock=vm"
+QB_RNG = ""
# Zephyr RTOS settings
ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 03/12] zephyr-sdk: Add new inc file
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 01/12] zephyr-kernel-src.inc.jinja: Update script to generate srcrev Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 02/12] qemu-cortex-a9: Fix runqemu errors Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 04/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel Sandeep Gundlupet Raju
` (8 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Add zephyr-sdk.inc file and move all the common sdk implementation
zephyr-sdk.inc file to support multiple version of sdk.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
.../zephyr-sdk/zephyr-sdk.inc | 35 +++++++++++++++++++
.../zephyr-sdk/zephyr-sdk_0.16.9.bb | 33 +----------------
2 files changed, 36 insertions(+), 32 deletions(-)
create mode 100644 meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
diff --git a/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
new file mode 100644
index 0000000..4ef45ee
--- /dev/null
+++ b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
@@ -0,0 +1,35 @@
+SUMMARY = "Zephyr SDK Bundle"
+DESCRIPTION = "Official SDK built using crosstool-ng, distributed by the \
+Zephyr project"
+COMPATIBLE_HOST = "(x86_64|aarch64).*-linux"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+INHIBIT_DEFAULT_DEPS = "1"
+# CMake is required by the setup script
+DEPENDS += "cmake"
+
+SDK_ARCHIVE = "zephyr-sdk-${PV}_linux-${BUILD_ARCH}.tar.xz"
+SDK_NAME = "${BUILD_ARCH}"
+SRC_URI = "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${PV}/${SDK_ARCHIVE};name=${SDK_NAME}"
+
+SRC_URI[x86_64.sha256sum] = "9b4b96f8df594801a84fce1aa112a84cdfcd430efc2a74229907b6421fb859a8"
+SRC_URI[aarch64.sha256sum] = "a8c1731ad602553304e539a7ade9cdb34caabc1850d581585cbba0372a7493b2"
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+ZEPHYR_SDK_DIR = "${prefix}/zephyr-sdk"
+
+do_install() {
+ install -d ${D}${prefix}
+ cp -r ${UNPACKDIR}/zephyr-sdk-${PV} ${D}${ZEPHYR_SDK_DIR}
+
+ # Install host tools
+ ${D}${ZEPHYR_SDK_DIR}/setup.sh -h
+}
+
+SYSROOT_DIRS += "${ZEPHYR_SDK_DIR}"
+INHIBIT_SYSROOT_STRIP = "1"
+BBCLASSEXTEND = "native"
\ No newline at end of file
diff --git a/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb
index b749763..ba20341 100644
--- a/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb
+++ b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb
@@ -1,35 +1,4 @@
-SUMMARY = "Zephyr SDK Bundle"
-DESCRIPTION = "Official SDK built using crosstool-ng, distributed by the \
-Zephyr project"
-COMPATIBLE_HOST = "(x86_64|aarch64).*-linux"
-
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
-
-INHIBIT_DEFAULT_DEPS = "1"
-# CMake is required by the setup script
-DEPENDS += "cmake"
-
-SDK_ARCHIVE = "zephyr-sdk-${PV}_linux-${BUILD_ARCH}.tar.xz"
-SDK_NAME = "${BUILD_ARCH}"
-SRC_URI = "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${PV}/${SDK_ARCHIVE};name=${SDK_NAME}"
+require zephyr-sdk.inc
SRC_URI[x86_64.sha256sum] = "9b4b96f8df594801a84fce1aa112a84cdfcd430efc2a74229907b6421fb859a8"
SRC_URI[aarch64.sha256sum] = "a8c1731ad602553304e539a7ade9cdb34caabc1850d581585cbba0372a7493b2"
-
-do_configure[noexec] = "1"
-do_compile[noexec] = "1"
-
-ZEPHYR_SDK_DIR = "${prefix}/zephyr-sdk"
-
-do_install() {
- install -d ${D}${prefix}
- cp -r ${UNPACKDIR}/zephyr-sdk-${PV} ${D}${ZEPHYR_SDK_DIR}
-
- # Install host tools
- ${D}${ZEPHYR_SDK_DIR}/setup.sh -h
-}
-
-SYSROOT_DIRS += "${ZEPHYR_SDK_DIR}"
-INHIBIT_SYSROOT_STRIP = "1"
-BBCLASSEXTEND = "native"
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 04/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (2 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 03/12] zephyr-sdk: Add new inc file Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 05/12] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
` (7 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Remove PREFERRED_VERSION_zephyr-kernel from zephyr-kernel-src.inc
as this variable should be in global configuration file and override
from local.conf file.
Set default stable PREFERRED_VERSION for kernel and sdk in layer.conf
file.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
meta-zephyr-core/conf/layer.conf | 3 +++
.../recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta-zephyr-core/conf/layer.conf b/meta-zephyr-core/conf/layer.conf
index 5afec0f..c04088f 100644
--- a/meta-zephyr-core/conf/layer.conf
+++ b/meta-zephyr-core/conf/layer.conf
@@ -20,3 +20,6 @@ LAYERSERIES_COMPAT_zephyrcore = "whinlatter"
PYTHON3_NATIVE_SITEPACKAGES_DIR = "${libdir_native}/${PYTHON3_DIR}/site-packages"
addpylib ${LAYERDIR}/lib oeqa
+
+PREFERRED_VERSION_zephyr-kernel ??= "4.1.0"
+PREFERRED_VERSION_zephyr-sdk ??= "0.16.9"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index cf1b593..34b2cbe 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -10,6 +10,4 @@ inherit cmake
# find the patch(es) in SRC_URI.
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
-# Default to a stable version
-PREFERRED_VERSION_zephyr-kernel ??= "4.1.0"
require recipes-kernel/zephyr-kernel/zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 05/12] zephyr-image: Add image artifacts to output files
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (3 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 04/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 06/12] classes: Move classes to match bbclass scope functionality Sandeep Gundlupet Raju
` (6 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Inherit image-artifact-names bbclass in zephyr-image.inc and add
image artifacts to output generated files.
Before:
zephyr-helloworld.elf
After:
zephyr-helloworld-{MACHINE}-{DATETIME}.elf
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
.../zephyr-kernel/zephyr-image.inc | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
index f02270a..61ad90c 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
@@ -1,16 +1,19 @@
require zephyr-kernel-src.inc
require zephyr-kernel-common.inc
-inherit deploy
+inherit deploy image-artifact-names
OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
+ZEPHYR_IMAGE_LINK_NAME ?= "${PN}-${MACHINE}"
+ZEPHYR_IMAGE_BASE_NAME ?= "${PN}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
+
do_install() {
install -d ${D}/firmware
for output in ${ZEPHYR_MAKE_OUTPUT}; do
if [ -f ${B}/zephyr/${output} ];
then
- output_img=$(echo ${output} | sed -e "s/zephyr/${PN}/g")
+ output_img=$(echo ${output} | sed -e "s/zephyr/${ZEPHYR_IMAGE_BASE_NAME}/g")
install -D ${B}/zephyr/${output} ${D}/firmware/${output_img}
fi
done
@@ -20,6 +23,14 @@ INSANE_SKIP += "ldflags buildpaths"
SYSROOT_DIRS += "/firmware"
do_deploy() {
- cp ${D}/firmware/* ${DEPLOYDIR}/
+ for output in ${ZEPHYR_MAKE_OUTPUT}; do
+ if [ -f ${B}/zephyr/${output} ];
+ then
+ output_img=$(echo ${output} | sed -e "s/zephyr/${ZEPHYR_IMAGE_BASE_NAME}/g")
+ output_img_link=$(echo ${output} | sed -e "s/zephyr/${ZEPHYR_IMAGE_LINK_NAME}/g")
+ cp ${B}/zephyr/${output} ${DEPLOYDIR}/${output_img}
+ ln -sf ${output_img} ${DEPLOYDIR}/${output_img_link}
+ fi
+ done
}
addtask deploy after do_install
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 06/12] classes: Move classes to match bbclass scope functionality
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (4 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 05/12] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 07/12] zephyr-qemuboot: Use image artifact file in qemuimage Sandeep Gundlupet Raju
` (5 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Move classes to classes-recipe as appropriate to match bbclass
scope functionality.
zephyr.bbclass, zephyr-qemuboot.bbclass, zephyrtest.bbclass are
inherited by recipes hence move to classes-recipe.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
.../{classes => classes-recipe}/zephyr-qemuboot.bbclass | 0
meta-zephyr-core/{classes => classes-recipe}/zephyr.bbclass | 0
meta-zephyr-core/{classes => classes-recipe}/zephyrtest.bbclass | 0
3 files changed, 0 insertions(+), 0 deletions(-)
rename meta-zephyr-core/{classes => classes-recipe}/zephyr-qemuboot.bbclass (100%)
rename meta-zephyr-core/{classes => classes-recipe}/zephyr.bbclass (100%)
rename meta-zephyr-core/{classes => classes-recipe}/zephyrtest.bbclass (100%)
diff --git a/meta-zephyr-core/classes/zephyr-qemuboot.bbclass b/meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass
similarity index 100%
rename from meta-zephyr-core/classes/zephyr-qemuboot.bbclass
rename to meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass
diff --git a/meta-zephyr-core/classes/zephyr.bbclass b/meta-zephyr-core/classes-recipe/zephyr.bbclass
similarity index 100%
rename from meta-zephyr-core/classes/zephyr.bbclass
rename to meta-zephyr-core/classes-recipe/zephyr.bbclass
diff --git a/meta-zephyr-core/classes/zephyrtest.bbclass b/meta-zephyr-core/classes-recipe/zephyrtest.bbclass
similarity index 100%
rename from meta-zephyr-core/classes/zephyrtest.bbclass
rename to meta-zephyr-core/classes-recipe/zephyrtest.bbclass
--
2.34.1
^ permalink raw reply [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 07/12] zephyr-qemuboot: Use image artifact file in qemuimage
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (5 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 06/12] classes: Move classes to match bbclass scope functionality Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 08/12] meta-zephyr: Update README files Sandeep Gundlupet Raju
` (4 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Use image artifacts output file in qemuimage link.
Before:
zephyr-helloworld-image-{MACHINE}.elf -> zephyr-helloworld.elf
After:
zephyr-helloworld-image-{MACHINE}.elf -> zephyr-helloworld-{MACHINE}-{DATETIME}.elf
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass b/meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass
index b45e6f6..ab0a281 100644
--- a/meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass
+++ b/meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass
@@ -1,6 +1,8 @@
inherit qemuboot
-KERNEL_IMAGETYPE = "${PN}.elf"
+ZEPHYR_IMAGE_BASE_NAME ?= "${PN}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
+
+KERNEL_IMAGETYPE = "${ZEPHYR_IMAGE_BASE_NAME}.elf"
QB_DEFAULT_FSTYPE = "elf"
QB_NETWORK_DEVICE = "none"
QB_NET = "none"
@@ -27,7 +29,7 @@ python bootconf_clean() {
python do_bootconf_write() {
bb.build.exec_func("do_write_qemuboot_conf", d)
- qemuimage = "%s/%s.elf" % (d.getVar('DEPLOY_DIR_IMAGE', True), d.getVar('PN', True))
+ qemuimage = "%s/%s.elf" % (d.getVar('DEPLOY_DIR_IMAGE', True), d.getVar('ZEPHYR_IMAGE_BASE_NAME', True))
qemuimage_link = d.getVar('QEMU_IMAGE_LINK', True)
if os.path.lexists(qemuimage_link):
os.remove(qemuimage_link)
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 08/12] meta-zephyr: Update README files
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (6 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 07/12] zephyr-qemuboot: Use image artifact file in qemuimage Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-18 22:10 ` [yocto-patches] " Gundlupet Raju, Sandeep
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 09/12] zephyr-kernel: Use relative path Sandeep Gundlupet Raju
` (3 subsequent siblings)
11 siblings, 1 reply; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Update README files with following.
- Build instructions
- Maintainers lists and patch submission
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
README.txt => README.md | 163 ++++++++++++++++++++++++------------
meta-zephyr-bsp/README.md | 5 ++
meta-zephyr-bsp/README.txt | 1 -
meta-zephyr-core/README.md | 6 ++
meta-zephyr-core/README.txt | 1 -
5 files changed, 120 insertions(+), 56 deletions(-)
rename README.txt => README.md (60%)
create mode 100644 meta-zephyr-bsp/README.md
delete mode 100644 meta-zephyr-bsp/README.txt
create mode 100644 meta-zephyr-core/README.md
delete mode 100644 meta-zephyr-core/README.txt
diff --git a/README.txt b/README.md
similarity index 60%
rename from README.txt
rename to README.md
index 247c029..e38138a 100644
--- a/README.txt
+++ b/README.md
@@ -1,71 +1,101 @@
-Building Zephyr Images via bitbake recipes
-==========================================
+# meta-zephyr
-More detailed and up-to-date information can be found here:
-
-https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages
+This layer enables building Zephyr using Yocto Project.
-Prerequisites:
-==============
+## Dependencies
This layer depends on:
- Yocto distro (master)
- git://git.yoctoproject.org/poky
- Python layer (meta-openembedded/meta-python)
- git://git.openembedded.org/meta-openembedded
-Add "meta-openembedded/meta-oe" to BBLAYERS
-Add "meta-openembedded/meta-python" to BBLAYERS
-Add "meta-zephyr-core" and "meta-zephyr-bsp" to BBLAYERS
+ URI: https://git.yoctoproject.org/poky
+ layers: meta, meta-poky
+ branch: scarthgap
+
+ URI: https://git.openembedded.org/meta-openembedded
+ layers: meta-oe, meta-python
+ branch: scarthgap
+
+## Building Zephyr Images via bitbake recipes
+
+More detailed and up-to-date information can be found here:
+
+https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages
-Building and Running Zephyr Samples
-===================================
+> **Pre-requisites:**
+1. Refer [Yocto Project Quick Build]( https://docs.yoctoproject.org/dev/singleindex.html#yocto-project-quick-build) documentation.
+
+2. Clone and add following layers to BBLAYERS
+ * meta-openembedded/meta-oe
+ * meta-openembedded/meta-python
+ * meta-zephyr-core
+ * meta-zephyr-bsp
+```
+ $ mkdir sources
+ $ git clone -b <release-branch> https://git.yoctoproject.org/poky
+ $ git clone -b <branch-name> https://git.openembedded.org/meta-openembedded
+ $ git clone -b <branch-name> https://git.yoctoproject.org/meta-zephyr
+ $ source poky/oe-init-build-env
+ $ bitbake-layers add-layer ../meta-openembedded/meta-oe
+ $ bitbake-layers add-layer ../meta-openembedded/meta-python
+ $ bitbake-layers add-layer ../meta-zephyr/meta-zephyr-core
+ $ bitbake-layers add-layer ../meta-zephyr/meta-zephyr-bsp
+```
+
+### Building and Running Zephyr Samples
You can build Zephyr samples. There are several sample recipes.
To use the Yocto toolchain, modify local conf by adding:
+```
DISTRO = "zephyr"
+```
To use the Zephyr pre-built toolchain, modify local conf by adding:
+```
ZEPHYR_TOOLCHAIN_VARIANT = "zephyr"
+```
For example, to build the Zephyr "philosophers" sample:
-
+```
$ MACHINE=qemu-x86 bitbake zephyr-philosophers
-
-You can then run the created "philosophers" image in qemu:
+```
+You can then run the created "philosophers" image in qemu:
+```
$ runqemu qemu-x86
-
-The same sample, for ARM image:
+```
+The same sample, for ARM image:
+```
$ MACHINE=qemu-cortex-m3 bitbake zephyr-philosophers
$ runqemu qemu-cortex-m3
-
-The same sample, for Nios2 image:
+```
+The same sample, for Nios2 image:
+```
$ MACHINE=qemu-nios2 bitbake zephyr-philosophers
$ runqemu qemu-nios2
+```
-Flashing
-=================================
+### Flashing
You can flash Zephyr samples to boards. Currently, the following MACHINEs
are supported:
* DFU:
- - arduino-101-sss
- - arduino-101
- - arduino-101-ble
+ * arduino-101-sss
+ * arduino-101
+ * arduino-101-ble
* pyocd:
- - 96b-nitrogen
+ * 96b-nitrogen
To flash the example you built with command e.g.
-
+```
$ MACHINE=96b-nitrogen bitbake zephyr-philosophers
+```
call similar command with explicit flash_usb command:
-
+```
$ MACHINE=96b-nitrogen bitbake zephyr-philosophers -c flash_usb
+```
dfu-util and/or pyocd need to be installed in your system. If you observe
permission errors or the flashing process seem to hang, follow those instructions:
@@ -77,28 +107,31 @@ of IDs. Once that is set, the tool will only try to program these IDs. You can
query for the IDs by running `pyocd list` on your host while having the probes
attached. Besides setting this variable through the build's configuration or
metadata, you can also inject its value from command line with something like:
-
+```
$ PYOCD_FLASH_IDS='<ID1> <ID2> <ID3>' BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PYOCD_FLASH_IDS" bitbake <TARGET> -c flash_usb
+```
+
+## Building and Running Zephyr Tests
-Building and Running Zephyr Tests
-=================================
Presently only toolchains for ARM, x86, IAMCU and Nios2 are supported.
(For ARM we use CortexM3 toolchain)
To run Zephyr Test using Yocto Image Tests, ensure following in local.conf:
-
+```
INHERIT += "testimage"
+```
You can build and test an individual existing Zephyr test.
This is done by appending the actual test name to the "zephyr-kernel-test",
for example:
-
+```
$ MACHINE=qemu-x86 bitbake zephyr-kernel-test-sleep
$ MACHINE=qemu-x86 bitbake zephyr-kernel-test-sleep -c testimage
+```
You can also build and run all Zephyr existing tests (as listed in the file
zephyr-kernel-test.inc). For example:
-
+```
$ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all
$ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all -c testimage
or
@@ -107,16 +140,17 @@ or
or
$ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all
$ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all -c testimage
-
+```
+
+## Generating OE Machines based on Zephyr board definitions
-Generating OE Machines based on Zephyr board definitions
-========================================================
We currently have a recipe called generate-zephry-machines which will go through
and attempt to create an OE machine conf file for every board in Zephyr.
This is run via:
-
+```
MACHINE=qemu-x86 bitbake generate-zephyr-machines
+```
The output is then put in the normal deploy dir. This recipe is really only
useful for maintainers. There is currently no way to use the Zephyr board
@@ -125,14 +159,15 @@ you will need to run the above, copy the conf files from the deploy dir to the
machine conf directory and then run your build. This shouldn't need to happen
often.
-Generating new Zephyr recipe versions
-=====================================
+## Generating new Zephyr recipe versions
+
The script meta-zephyr-core/scripts/generate-version.py is used to generate
Yocto configuration for a Zephyr version from the West configuration in the
Zephyr repository. It requires the west and jinja2 Python packages to be
installed on the host. Run it as follows:
-
+```
$ ./meta-zephyr-core/scripts/generate-version.py x.x.x
+```
where x.x.x is the Zephyr version.
@@ -140,17 +175,37 @@ The patch files added to SRC_URI in the generated file should be validated and
modified if required.
The new version should be committed and submitted to the mailing list as
-described in "Contributing".
+described in "Maintainers, Mailing list, Patches".
+
+## Maintainers, Mailing list, Patches
+
+Please send any patches for this layer to the yocto-patches mailinglists
+with ['meta-zephyr'] in the subject:
+
+ yocto-patches@lists.yoctoproject.org
+
+When sending patches, please make sure the email subject line includes
+`[meta-amd-edf][<BRANCH_NAME>][PATCH]` and cc'ing the maintainers.
+
+For more details follow the Yocto Project community patch submission guidelines,
+as described in:
+
+https://docs.yoctoproject.org/dev/contributor-guide/submit-changes.html#
+
+`git send-email --to yocto-patches@lists.yoctoproject.org *.patch`
+
+> **Note:** When creating patches, please use below format. To follow best practice,
+> if you have more than one patch use `--cover-letter` option while generating the
+> patches. Edit the 0000-cover-letter.patch and change the title and top of the
+> body as appropriate.
-Contributing
-============
+**Syntax:**
+`git format-patch -s --subject-prefix="meta-zephyr][<BRANCH_NAME>][PATCH" -1`
-Patches for meta-zephyr should be sent to the yocto-patches@lists.yoctoproject.org
-mailing list. See https://lists.yoctoproject.org/g/yocto-patches for subscription
-details and the list archive. Please add [meta-zephyr] to the subject so
-the patches are identifable.
+**Example:**
+`git format-patch -s --subject-prefix="meta-zephyr][scarthgap][PATCH" -1`
-Git can be configured to send mails appropriately when using git send-email:
+**Maintainers:**
-$ git config --local sendemail.to yocto-patches@lists.yoctoproject.org
-$ git config --local format.subjectPrefix meta-zephyr][PATCH
+ Lee Chee Yang <chee.yang.lee@intel.com>
+ Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
diff --git a/meta-zephyr-bsp/README.md b/meta-zephyr-bsp/README.md
new file mode 100644
index 0000000..e159015
--- /dev/null
+++ b/meta-zephyr-bsp/README.md
@@ -0,0 +1,5 @@
+# meta-zephyr-bsp
+
+This layer contains machine files for building Zephyr applications.
+
+For more details see [Building Instructions](../README.md)
diff --git a/meta-zephyr-bsp/README.txt b/meta-zephyr-bsp/README.txt
deleted file mode 100644
index 2644ed0..0000000
--- a/meta-zephyr-bsp/README.txt
+++ /dev/null
@@ -1 +0,0 @@
-See ../README.txt
diff --git a/meta-zephyr-core/README.md b/meta-zephyr-core/README.md
new file mode 100644
index 0000000..18db977
--- /dev/null
+++ b/meta-zephyr-core/README.md
@@ -0,0 +1,6 @@
+# meta-zephyr-core
+
+This layer enables Zephyr build metadata such as zephyr scripts, kernel include
+files, zephyr applications recipes and bitbake class to support qemu boot.
+
+For more details see [Building Instructions](../README.md)
diff --git a/meta-zephyr-core/README.txt b/meta-zephyr-core/README.txt
deleted file mode 100644
index 2644ed0..0000000
--- a/meta-zephyr-core/README.txt
+++ /dev/null
@@ -1 +0,0 @@
-See ../README.txt
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 09/12] zephyr-kernel: Use relative path
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (7 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 08/12] meta-zephyr: Update README files Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass Sandeep Gundlupet Raju
` (2 subsequent siblings)
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Use relative path for all the include files to avoid overlaying the
include files.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
.../recipes-kernel/zephyr-kernel/zephyr-image.inc | 4 ++--
.../recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
index 61ad90c..477dc03 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
@@ -1,5 +1,5 @@
-require zephyr-kernel-src.inc
-require zephyr-kernel-common.inc
+require recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+require recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
inherit deploy image-artifact-names
OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
index 7967614..c1a4d47 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
@@ -8,7 +8,7 @@ inherit ${ZEPHYR_INHERIT_CLASSES}
IMAGE_NO_MANIFEST = "1"
ZEPHYR_TOOLCHAIN_VARIANT ?= "cross-compile"
-require zephyr-toolchain-${ZEPHYR_TOOLCHAIN_VARIANT}.inc
+require recipes-kernel/zephyr-kernel/zephyr-toolchain-${ZEPHYR_TOOLCHAIN_VARIANT}.inc
ZEPHYR_MAKE_OUTPUT ?= "\
zephyr.elf \
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb
index 85efd24..d9dbb40 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb
@@ -1,7 +1,7 @@
LICENSE = "Apache-2.0"
INHIBIT_DEFAULT_DEPS = "1"
-require zephyr-kernel-test.inc
+require recipes-kernel/zephyr-kernel/zephyr-kernel-test.inc
addtask testimage
deltask compile
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb
index 2918d2d..75b1757 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb
@@ -1,4 +1,4 @@
-require zephyr-image.inc
-require zephyr-kernel-test.inc
+require recipes-kernel/zephyr-kernel/zephyr-image.inc
+require recipes-kernel/zephyr-kernel/zephyr-kernel-test.inc
BBCLASSEXTEND = '${@" ".join(["zephyrtest:" + x for x in d.getVar("ZEPHYRTESTS", True).split()])}'
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (8 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 09/12] zephyr-kernel: Use relative path Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 12/12] zephyr-kernel-common: Add Board extension support Sandeep Gundlupet Raju
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Convert recipes-kernel/zephyr-kernel/zephyr-sample.inc file to
classes-recipe/zephyr-sample.bbclass. Using this bbclass user can
inherit this bbclass from any layer to build custom or out-of-tree
zephyr applications.
Also update the recipes to inherit zephyr-sample bbclass.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
.../recipes-meta/meta/generate-zephyr-machines.bb | 4 +---
meta-zephyr-core/classes-recipe/zephyr-sample.bbclass | 10 ++++++++++
.../recipes-kernel/zephyr-kernel/zephyr-blinky.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-coap-client.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-coap-server.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-echo-client.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-helloworld.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-http-client.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-lvgl.bb | 2 +-
.../zephyr-kernel/zephyr-mqtt-publisher.bb | 2 +-
.../zephyr-kernel/zephyr-openamp-rsc-table.bb | 2 +-
.../zephyr-kernel/zephyr-openthread-echo-client.bb | 2 +-
.../zephyr-kernel/zephyr-openthread-rcp.bb | 2 +-
.../zephyr-kernel/zephyr-peripheral-esp.bb | 2 +-
.../zephyr-kernel/zephyr-peripheral-hr.bb | 2 +-
.../zephyr-kernel/zephyr-philosophers.bb | 2 +-
.../recipes-kernel/zephyr-kernel/zephyr-sample.inc | 1 -
.../zephyr-kernel/zephyr-synchronization.bb | 2 +-
.../zephyr-kernel/zephyr-websocket-client.bb | 2 +-
20 files changed, 28 insertions(+), 21 deletions(-)
create mode 100644 meta-zephyr-core/classes-recipe/zephyr-sample.bbclass
delete mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc
diff --git a/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb b/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb
index 30d362c..57718f0 100644
--- a/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb
+++ b/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb
@@ -2,12 +2,10 @@
# SPDX-License-Identifier: Apache-2.0
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
-ZEPHYR_INHERIT_CLASSES += "zephyr cmake"
+ZEPHYR_INHERIT_CLASSES += "zephyr cmake zephyr-sample"
inherit ${ZEPHYR_INHERIT_CLASSES}
-require recipes-kernel/zephyr-kernel/zephyr-sample.inc
-
SRC_URI:append = " file://0001-zephyr-Export-an-OpenEmbedded-machine-config.patch"
ZEPHYR_SRC_DIR = "${S}/samples/hello_world"
diff --git a/meta-zephyr-core/classes-recipe/zephyr-sample.bbclass b/meta-zephyr-core/classes-recipe/zephyr-sample.bbclass
new file mode 100644
index 0000000..b2a71db
--- /dev/null
+++ b/meta-zephyr-core/classes-recipe/zephyr-sample.bbclass
@@ -0,0 +1,10 @@
+#
+# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
+#
+# SPDX-License-Identifier: MIT
+#
+# This bbclass is inherity by all the zephyr-kernel/zephyr-<apps>.bb recipes
+# to build zephyr applications. User can also inherit this bbclass from any
+# layer for custom or out-of-tree zephyr applications.
+
+require recipes-kernel/zephyr-kernel/zephyr-image.inc
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb
index c2a1e55..78a6e83 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb
@@ -1,3 +1,3 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/basic/blinky"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb
index 7796f6b..aa020e9 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb
@@ -1,3 +1,3 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/net/sockets/coap_client"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb
index 5e345d4..b43143a 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb
@@ -1,3 +1,3 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/net/sockets/coap_server"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb
index 73187cf..4705724 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb
@@ -1,3 +1,3 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/net/sockets/echo_client"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
index ebc6dc3..f95f544 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
@@ -1,4 +1,4 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/bluetooth/hci_uart"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
index 68b42aa..637287b 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
@@ -2,6 +2,6 @@ SUMMARY = "Hello World Zephyr Sample"
DESCRIPTION = "A simple Zephyr application that prints 'Hello World' on the \
console"
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/hello_world"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb
index 8bff2be..a4bf7f2 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb
@@ -1,4 +1,4 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/net/sockets/http_client"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb
index b5f02a1..71e19e9 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb
@@ -1,4 +1,4 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/subsys/display/lvgl"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb
index f314841..fae7eb4 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb
@@ -1,3 +1,3 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/net/mqtt_publisher"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb
index 8a95b14..daed729 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb
@@ -1,4 +1,4 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_MAKE_OUTPUT ?= " \
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb
index e2b3efd..0408d92 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb
@@ -1,4 +1,4 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/net/sockets/echo_client"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb
index d745e85..e1f1646 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb
@@ -1,4 +1,4 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/net/openthread/coprocessor"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
index 0aac7f6..61829bb 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
@@ -1,3 +1,3 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/bluetooth/peripheral_esp"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb
index 80e3505..2c0fcb9 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb
@@ -1,3 +1,3 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/bluetooth/peripheral_hr"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
index 2b4fca3..931541e 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
@@ -3,6 +3,6 @@ DESCRIPTION = "A simple Zephyr application that demonstrates basic sanity of \
the kernel. It demonstrates that kernel scheduling, communication and timing \
operate correctly by printing a greeting to the console from two threads."
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/philosophers"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc
deleted file mode 100644
index 5f6dea9..0000000
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc
+++ /dev/null
@@ -1 +0,0 @@
-require zephyr-image.inc
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb
index a55736b..217ab7d 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb
@@ -3,6 +3,6 @@ DESCRIPTION = "A simple Zephyr application that demonstrates basic sanity of \
the kernel. It demonstrates that kernel scheduling, communication and timing \
operate correctly by printing a greeting to the console from two threads."
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/synchronization"
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb
index b92e986..b646b6d 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb
@@ -1,3 +1,3 @@
-include zephyr-sample.inc
+inherit zephyr-sample
ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/samples/net/sockets/websocket_client"
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg multi services recipe
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (9 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
2025-08-19 2:02 ` Lee, Chee Yang
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 12/12] zephyr-kernel-common: Add Board extension support Sandeep Gundlupet Raju
11 siblings, 1 reply; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Add zephyr-openamp-rpmsg-mulit-services recipe to build out of tree
openamp-system-reference example applications.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
.../zephyr-openamp-rpmsg-multi-srv.bb | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-multi-srv.bb
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-multi-srv.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-multi-srv.bb
new file mode 100644
index 0000000..222ed2b
--- /dev/null
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-multi-srv.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Open AMP rpmsg multi services"
+DESCRIPTION = "Open AMP rpmsg multi services"
+
+inherit zephyr-sample
+
+SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF ?= "git://github.com/OpenAMP/openamp-system-reference;protocol=https"
+
+BRANCH ?= "v2024.05"
+BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
+
+SRC_URI:append = " \
+ ${SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF};name=open-amp-sys-ref;${BRANCHARG};destsuffix=git/open-amp-sys-ref \
+ "
+
+SRCREV_open-amp-sys-ref = "d78315763fbacba8a74552d0ad570bd01c42ccf9"
+
+ZEPHYR_SRC_DIR = "${ZEPHYR_BASE}/../open-amp-sys-ref/examples/zephyr/rpmsg_multi_services"
+
+ZEPHYR_MAKE_OUTPUT = "rpmsg_multi_services.elf"
+
+EXTRA_OECMAKE += " \
+ -DCONF_FILE="prj.conf" \
+ "
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [meta-zephyr][master][PATCH 12/12] zephyr-kernel-common: Add Board extension support
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
` (10 preceding siblings ...)
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
@ 2025-08-15 3:54 ` Sandeep Gundlupet Raju
11 siblings, 0 replies; 18+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-15 3:54 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Add board extension support variables where user can specify the
BOARD_ROOT variable for out-of-tree custom boards.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
.../recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
index c1a4d47..3a8a4da 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
@@ -19,6 +19,11 @@ ZEPHYR_MAKE_OUTPUT ?= "\
EXTRA_OECMAKE = "\
-DZEPHYR_BASE=${ZEPHYR_BASE} \
-DBOARD=${BOARD} \
+ -DBOARD_DIR=${BOARD_DIR} \
+ -DARCH_DIR=${ARCH_DIR} \
+ -DBOARD_ROOT=${BOARD_ROOT} \
+ -DBOARD_EXTENSION_DIRS=${BOARD_EXTENSION_DIRS} \
+ -DSOC_ROOT=${SOC_ROOT} \
-DZEPHYR_TOOLCHAIN_VARIANT=${ZEPHYR_TOOLCHAIN_VARIANT} \
-DZEPHYR_MODULES=${ZEPHYR_MODULES} \
"
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [yocto-patches] [meta-zephyr][master][PATCH 08/12] meta-zephyr: Update README files
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 08/12] meta-zephyr: Update README files Sandeep Gundlupet Raju
@ 2025-08-18 22:10 ` Gundlupet Raju, Sandeep
2025-08-19 1:55 ` Lee, Chee Yang
0 siblings, 1 reply; 18+ messages in thread
From: Gundlupet Raju, Sandeep @ 2025-08-18 22:10 UTC (permalink / raw)
To: yocto-patches, chee.yang.lee
Hi Chee Yang,
This patch is missing in master. Can you please merge it.
Thanks,
Sandeep
On 8/14/2025 9:54 PM, Sandeep Gundlupet Raju via lists.yoctoproject.org
wrote:
> Update README files with following.
>
> - Build instructions
> - Maintainers lists and patch submission
>
> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> ---
> README.txt => README.md | 163 ++++++++++++++++++++++++------------
> meta-zephyr-bsp/README.md | 5 ++
> meta-zephyr-bsp/README.txt | 1 -
> meta-zephyr-core/README.md | 6 ++
> meta-zephyr-core/README.txt | 1 -
> 5 files changed, 120 insertions(+), 56 deletions(-)
> rename README.txt => README.md (60%)
> create mode 100644 meta-zephyr-bsp/README.md
> delete mode 100644 meta-zephyr-bsp/README.txt
> create mode 100644 meta-zephyr-core/README.md
> delete mode 100644 meta-zephyr-core/README.txt
>
> diff --git a/README.txt b/README.md
> similarity index 60%
> rename from README.txt
> rename to README.md
> index 247c029..e38138a 100644
> --- a/README.txt
> +++ b/README.md
> @@ -1,71 +1,101 @@
> -Building Zephyr Images via bitbake recipes
> -==========================================
> +# meta-zephyr
>
> -More detailed and up-to-date information can be found here:
> -
> -https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages
> +This layer enables building Zephyr using Yocto Project.
>
> -Prerequisites:
> -==============
> +## Dependencies
>
> This layer depends on:
> - Yocto distro (master)
> - git://git.yoctoproject.org/poky
> - Python layer (meta-openembedded/meta-python)
> - git://git.openembedded.org/meta-openembedded
>
> -Add "meta-openembedded/meta-oe" to BBLAYERS
> -Add "meta-openembedded/meta-python" to BBLAYERS
> -Add "meta-zephyr-core" and "meta-zephyr-bsp" to BBLAYERS
> + URI: https://git.yoctoproject.org/poky
> + layers: meta, meta-poky
> + branch: scarthgap
> +
> + URI: https://git.openembedded.org/meta-openembedded
> + layers: meta-oe, meta-python
> + branch: scarthgap
> +
> +## Building Zephyr Images via bitbake recipes
> +
> +More detailed and up-to-date information can be found here:
> +
> +https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages
>
> -Building and Running Zephyr Samples
> -===================================
> +> **Pre-requisites:**
> +1. Refer [Yocto Project Quick Build]( https://docs.yoctoproject.org/dev/singleindex.html#yocto-project-quick-build) documentation.
> +
> +2. Clone and add following layers to BBLAYERS
> + * meta-openembedded/meta-oe
> + * meta-openembedded/meta-python
> + * meta-zephyr-core
> + * meta-zephyr-bsp
> +```
> + $ mkdir sources
> + $ git clone -b <release-branch> https://git.yoctoproject.org/poky
> + $ git clone -b <branch-name> https://git.openembedded.org/meta-openembedded
> + $ git clone -b <branch-name> https://git.yoctoproject.org/meta-zephyr
> + $ source poky/oe-init-build-env
> + $ bitbake-layers add-layer ../meta-openembedded/meta-oe
> + $ bitbake-layers add-layer ../meta-openembedded/meta-python
> + $ bitbake-layers add-layer ../meta-zephyr/meta-zephyr-core
> + $ bitbake-layers add-layer ../meta-zephyr/meta-zephyr-bsp
> +```
> +
> +### Building and Running Zephyr Samples
>
> You can build Zephyr samples. There are several sample recipes.
>
> To use the Yocto toolchain, modify local conf by adding:
> +```
> DISTRO = "zephyr"
> +```
>
> To use the Zephyr pre-built toolchain, modify local conf by adding:
> +```
> ZEPHYR_TOOLCHAIN_VARIANT = "zephyr"
> +```
>
> For example, to build the Zephyr "philosophers" sample:
> -
> +```
> $ MACHINE=qemu-x86 bitbake zephyr-philosophers
> -
> -You can then run the created "philosophers" image in qemu:
> +```
>
> +You can then run the created "philosophers" image in qemu:
> +```
> $ runqemu qemu-x86
> -
> -The same sample, for ARM image:
> +```
>
> +The same sample, for ARM image:
> +```
> $ MACHINE=qemu-cortex-m3 bitbake zephyr-philosophers
> $ runqemu qemu-cortex-m3
> -
> -The same sample, for Nios2 image:
> +```
>
> +The same sample, for Nios2 image:
> +```
> $ MACHINE=qemu-nios2 bitbake zephyr-philosophers
> $ runqemu qemu-nios2
> +```
>
> -Flashing
> -=================================
> +### Flashing
>
> You can flash Zephyr samples to boards. Currently, the following MACHINEs
> are supported:
> * DFU:
> - - arduino-101-sss
> - - arduino-101
> - - arduino-101-ble
> + * arduino-101-sss
> + * arduino-101
> + * arduino-101-ble
> * pyocd:
> - - 96b-nitrogen
> + * 96b-nitrogen
>
> To flash the example you built with command e.g.
> -
> +```
> $ MACHINE=96b-nitrogen bitbake zephyr-philosophers
> +```
>
> call similar command with explicit flash_usb command:
> -
> +```
> $ MACHINE=96b-nitrogen bitbake zephyr-philosophers -c flash_usb
> +```
>
> dfu-util and/or pyocd need to be installed in your system. If you observe
> permission errors or the flashing process seem to hang, follow those instructions:
> @@ -77,28 +107,31 @@ of IDs. Once that is set, the tool will only try to program these IDs. You can
> query for the IDs by running `pyocd list` on your host while having the probes
> attached. Besides setting this variable through the build's configuration or
> metadata, you can also inject its value from command line with something like:
> -
> +```
> $ PYOCD_FLASH_IDS='<ID1> <ID2> <ID3>' BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PYOCD_FLASH_IDS" bitbake <TARGET> -c flash_usb
> +```
> +
> +## Building and Running Zephyr Tests
>
> -Building and Running Zephyr Tests
> -=================================
> Presently only toolchains for ARM, x86, IAMCU and Nios2 are supported.
> (For ARM we use CortexM3 toolchain)
>
> To run Zephyr Test using Yocto Image Tests, ensure following in local.conf:
> -
> +```
> INHERIT += "testimage"
> +```
>
> You can build and test an individual existing Zephyr test.
> This is done by appending the actual test name to the "zephyr-kernel-test",
> for example:
> -
> +```
> $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-sleep
> $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-sleep -c testimage
> +```
>
> You can also build and run all Zephyr existing tests (as listed in the file
> zephyr-kernel-test.inc). For example:
> -
> +```
> $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all
> $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all -c testimage
> or
> @@ -107,16 +140,17 @@ or
> or
> $ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all
> $ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all -c testimage
> -
> +```
> +
> +## Generating OE Machines based on Zephyr board definitions
>
> -Generating OE Machines based on Zephyr board definitions
> -========================================================
> We currently have a recipe called generate-zephry-machines which will go through
> and attempt to create an OE machine conf file for every board in Zephyr.
>
> This is run via:
> -
> +```
> MACHINE=qemu-x86 bitbake generate-zephyr-machines
> +```
>
> The output is then put in the normal deploy dir. This recipe is really only
> useful for maintainers. There is currently no way to use the Zephyr board
> @@ -125,14 +159,15 @@ you will need to run the above, copy the conf files from the deploy dir to the
> machine conf directory and then run your build. This shouldn't need to happen
> often.
>
> -Generating new Zephyr recipe versions
> -=====================================
> +## Generating new Zephyr recipe versions
> +
> The script meta-zephyr-core/scripts/generate-version.py is used to generate
> Yocto configuration for a Zephyr version from the West configuration in the
> Zephyr repository. It requires the west and jinja2 Python packages to be
> installed on the host. Run it as follows:
> -
> +```
> $ ./meta-zephyr-core/scripts/generate-version.py x.x.x
> +```
>
> where x.x.x is the Zephyr version.
>
> @@ -140,17 +175,37 @@ The patch files added to SRC_URI in the generated file should be validated and
> modified if required.
>
> The new version should be committed and submitted to the mailing list as
> -described in "Contributing".
> +described in "Maintainers, Mailing list, Patches".
> +
> +## Maintainers, Mailing list, Patches
> +
> +Please send any patches for this layer to the yocto-patches mailinglists
> +with ['meta-zephyr'] in the subject:
> +
> + yocto-patches@lists.yoctoproject.org
> +
> +When sending patches, please make sure the email subject line includes
> +`[meta-amd-edf][<BRANCH_NAME>][PATCH]` and cc'ing the maintainers.
> +
> +For more details follow the Yocto Project community patch submission guidelines,
> +as described in:
> +
> +https://docs.yoctoproject.org/dev/contributor-guide/submit-changes.html#
> +
> +`git send-email --to yocto-patches@lists.yoctoproject.org *.patch`
> +
> +> **Note:** When creating patches, please use below format. To follow best practice,
> +> if you have more than one patch use `--cover-letter` option while generating the
> +> patches. Edit the 0000-cover-letter.patch and change the title and top of the
> +> body as appropriate.
>
> -Contributing
> -============
> +**Syntax:**
> +`git format-patch -s --subject-prefix="meta-zephyr][<BRANCH_NAME>][PATCH" -1`
>
> -Patches for meta-zephyr should be sent to the yocto-patches@lists.yoctoproject.org
> -mailing list. See https://lists.yoctoproject.org/g/yocto-patches for subscription
> -details and the list archive. Please add [meta-zephyr] to the subject so
> -the patches are identifable.
> +**Example:**
> +`git format-patch -s --subject-prefix="meta-zephyr][scarthgap][PATCH" -1`
>
> -Git can be configured to send mails appropriately when using git send-email:
> +**Maintainers:**
>
> -$ git config --local sendemail.to yocto-patches@lists.yoctoproject.org
> -$ git config --local format.subjectPrefix meta-zephyr][PATCH
> + Lee Chee Yang <chee.yang.lee@intel.com>
> + Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> diff --git a/meta-zephyr-bsp/README.md b/meta-zephyr-bsp/README.md
> new file mode 100644
> index 0000000..e159015
> --- /dev/null
> +++ b/meta-zephyr-bsp/README.md
> @@ -0,0 +1,5 @@
> +# meta-zephyr-bsp
> +
> +This layer contains machine files for building Zephyr applications.
> +
> +For more details see [Building Instructions](../README.md)
> diff --git a/meta-zephyr-bsp/README.txt b/meta-zephyr-bsp/README.txt
> deleted file mode 100644
> index 2644ed0..0000000
> --- a/meta-zephyr-bsp/README.txt
> +++ /dev/null
> @@ -1 +0,0 @@
> -See ../README.txt
> diff --git a/meta-zephyr-core/README.md b/meta-zephyr-core/README.md
> new file mode 100644
> index 0000000..18db977
> --- /dev/null
> +++ b/meta-zephyr-core/README.md
> @@ -0,0 +1,6 @@
> +# meta-zephyr-core
> +
> +This layer enables Zephyr build metadata such as zephyr scripts, kernel include
> +files, zephyr applications recipes and bitbake class to support qemu boot.
> +
> +For more details see [Building Instructions](../README.md)
> diff --git a/meta-zephyr-core/README.txt b/meta-zephyr-core/README.txt
> deleted file mode 100644
> index 2644ed0..0000000
> --- a/meta-zephyr-core/README.txt
> +++ /dev/null
> @@ -1 +0,0 @@
> -See ../README.txt
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: [yocto-patches] [meta-zephyr][master][PATCH 08/12] meta-zephyr: Update README files
2025-08-18 22:10 ` [yocto-patches] " Gundlupet Raju, Sandeep
@ 2025-08-19 1:55 ` Lee, Chee Yang
0 siblings, 0 replies; 18+ messages in thread
From: Lee, Chee Yang @ 2025-08-19 1:55 UTC (permalink / raw)
To: yocto-patches@lists.yoctoproject.org, Sandeep Gundlupet Raju
I looking to make a few changes before merging this , see below
> -----Original Message-----
> From: yocto-patches@lists.yoctoproject.org <yocto-
> patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju via
> lists.yoctoproject.org
> Sent: Tuesday, 19 August, 2025 6:11 AM
> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
> <chee.yang.lee@intel.com>
> Subject: Re: [yocto-patches] [meta-zephyr][master][PATCH 08/12] meta-zephyr:
> Update README files
>
> Hi Chee Yang,
>
> This patch is missing in master. Can you please merge it.
>
> Thanks,
> Sandeep
>
> On 8/14/2025 9:54 PM, Sandeep Gundlupet Raju via lists.yoctoproject.org
> wrote:
> > Update README files with following.
> >
> > - Build instructions
> > - Maintainers lists and patch submission
> >
> > Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> > ---
> > README.txt => README.md | 163 ++++++++++++++++++++++++------------
> > meta-zephyr-bsp/README.md | 5 ++
> > meta-zephyr-bsp/README.txt | 1 -
> > meta-zephyr-core/README.md | 6 ++
> > meta-zephyr-core/README.txt | 1 -
> > 5 files changed, 120 insertions(+), 56 deletions(-)
> > rename README.txt => README.md (60%)
> > create mode 100644 meta-zephyr-bsp/README.md
> > delete mode 100644 meta-zephyr-bsp/README.txt
> > create mode 100644 meta-zephyr-core/README.md
> > delete mode 100644 meta-zephyr-core/README.txt
> >
> > diff --git a/README.txt b/README.md
> > similarity index 60%
> > rename from README.txt
> > rename to README.md
> > index 247c029..e38138a 100644
> > --- a/README.txt
> > +++ b/README.md
> > @@ -1,71 +1,101 @@
> > -Building Zephyr Images via bitbake recipes
> > -==========================================
> > +# meta-zephyr
> >
> > -More detailed and up-to-date information can be found here:
> > -
> > -https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages
> > +This layer enables building Zephyr using Yocto Project.
> >
> > -Prerequisites:
> > -==============
> > +## Dependencies
> >
> > This layer depends on:
> > - Yocto distro (master)
> > - git://git.yoctoproject.org/poky
> > - Python layer (meta-openembedded/meta-python)
> > - git://git.openembedded.org/meta-openembedded
> >
> > -Add "meta-openembedded/meta-oe" to BBLAYERS -Add
> > "meta-openembedded/meta-python" to BBLAYERS -Add "meta-zephyr-core"
> > and "meta-zephyr-bsp" to BBLAYERS
> > + URI: https://git.yoctoproject.org/poky
> > + layers: meta, meta-poky
meta-poky is optional, I will remove meta-poky
> > + branch: scarthgap
should be "master"
> > +
> > + URI: https://git.openembedded.org/meta-openembedded
> > + layers: meta-oe, meta-python
> > + branch: scarthgap
this too
> > +
> > +## Building Zephyr Images via bitbake recipes
> > +
> > +More detailed and up-to-date information can be found here:
> > +
> > +https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages
> >
> > -Building and Running Zephyr Samples
> > -===================================
> > +> **Pre-requisites:**
> > +1. Refer [Yocto Project Quick
> Build]( https://docs.yoctoproject.org/dev/singleindex.html#yocto-project-quick-
> build) documentation.
> > +
> > +2. Clone and add following layers to BBLAYERS
> > + * meta-openembedded/meta-oe
> > + * meta-openembedded/meta-python
> > + * meta-zephyr-core
> > + * meta-zephyr-bsp
> > +```
> > + $ mkdir sources
> > + $ git clone -b <release-branch> https://git.yoctoproject.org/poky
> > + $ git clone -b <branch-name> https://git.openembedded.org/meta-
> openembedded
> > + $ git clone -b <branch-name> https://git.yoctoproject.org/meta-zephyr
> > + $ source poky/oe-init-build-env
> > + $ bitbake-layers add-layer ../meta-openembedded/meta-oe
> > + $ bitbake-layers add-layer ../meta-openembedded/meta-python
> > + $ bitbake-layers add-layer ../meta-zephyr/meta-zephyr-core
> > + $ bitbake-layers add-layer ../meta-zephyr/meta-zephyr-bsp ```
> > +
> > +### Building and Running Zephyr Samples
> >
> > You can build Zephyr samples. There are several sample recipes.
> >
> > To use the Yocto toolchain, modify local conf by adding:
> > +```
> > DISTRO = "zephyr"
> > +```
> >
> > To use the Zephyr pre-built toolchain, modify local conf by adding:
> > +```
> > ZEPHYR_TOOLCHAIN_VARIANT = "zephyr"
> > +```
> >
> > For example, to build the Zephyr "philosophers" sample:
> > -
> > +```
> > $ MACHINE=qemu-x86 bitbake zephyr-philosophers
> > -
> > -You can then run the created "philosophers" image in qemu:
> > +```
> >
> > +You can then run the created "philosophers" image in qemu:
> > +```
> > $ runqemu qemu-x86
> > -
> > -The same sample, for ARM image:
> > +```
> >
> > +The same sample, for ARM image:
> > +```
> > $ MACHINE=qemu-cortex-m3 bitbake zephyr-philosophers
> > $ runqemu qemu-cortex-m3
> > -
> > -The same sample, for Nios2 image:
> > +```
> >
> > +The same sample, for Nios2 image:
> > +```
> > $ MACHINE=qemu-nios2 bitbake zephyr-philosophers
> > $ runqemu qemu-nios2
> > +```
> >
> > -Flashing
> > -=================================
> > +### Flashing
> >
> > You can flash Zephyr samples to boards. Currently, the following MACHINEs
> > are supported:
> > * DFU:
> > - - arduino-101-sss
> > - - arduino-101
> > - - arduino-101-ble
> > + * arduino-101-sss
> > + * arduino-101
> > + * arduino-101-ble
> > * pyocd:
> > - - 96b-nitrogen
> > + * 96b-nitrogen
> >
> > To flash the example you built with command e.g.
> > -
> > +```
> > $ MACHINE=96b-nitrogen bitbake zephyr-philosophers
> > +```
> >
> > call similar command with explicit flash_usb command:
> > -
> > +```
> > $ MACHINE=96b-nitrogen bitbake zephyr-philosophers -c flash_usb
> > +```
> >
> > dfu-util and/or pyocd need to be installed in your system. If you observe
> > permission errors or the flashing process seem to hang, follow those
> instructions:
> > @@ -77,28 +107,31 @@ of IDs. Once that is set, the tool will only try to
> program these IDs. You can
> > query for the IDs by running `pyocd list` on your host while having the probes
> > attached. Besides setting this variable through the build's configuration or
> > metadata, you can also inject its value from command line with something like:
> > -
> > +```
> > $ PYOCD_FLASH_IDS='<ID1> <ID2> <ID3>'
> > BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PYOCD_FLASH_IDS" bitbake
> > <TARGET> -c flash_usb
> > +```
> > +
> > +## Building and Running Zephyr Tests
> >
> > -Building and Running Zephyr Tests
> > -=================================
> > Presently only toolchains for ARM, x86, IAMCU and Nios2 are supported.
> > (For ARM we use CortexM3 toolchain)
> >
> > To run Zephyr Test using Yocto Image Tests, ensure following in local.conf:
> > -
> > +```
> > INHERIT += "testimage"
> > +```
> >
> > You can build and test an individual existing Zephyr test.
> > This is done by appending the actual test name to the "zephyr-kernel-test",
> > for example:
> > -
> > +```
> > $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-sleep
> > $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-sleep -c testimage
> > +```
> >
> > You can also build and run all Zephyr existing tests (as listed in the file
> > zephyr-kernel-test.inc). For example:
> > -
> > +```
> > $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all
> > $ MACHINE=qemu-x86 bitbake zephyr-kernel-test-all -c testimage
> > or
> > @@ -107,16 +140,17 @@ or
> > or
> > $ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all
> > $ MACHINE=qemu-nios2 bitbake zephyr-kernel-test-all -c testimage
> > -
> > +```
> > +
> > +## Generating OE Machines based on Zephyr board definitions
> >
> > -Generating OE Machines based on Zephyr board definitions
> > -========================================================
> > We currently have a recipe called generate-zephry-machines which will go
> through
> > and attempt to create an OE machine conf file for every board in Zephyr.
> >
> > This is run via:
> > -
> > +```
> > MACHINE=qemu-x86 bitbake generate-zephyr-machines
> > +```
> >
> > The output is then put in the normal deploy dir. This recipe is really only
> > useful for maintainers. There is currently no way to use the Zephyr
> > board @@ -125,14 +159,15 @@ you will need to run the above, copy the conf
> files from the deploy dir to the
> > machine conf directory and then run your build. This shouldn't need to happen
> > often.
> >
> > -Generating new Zephyr recipe versions
> > -=====================================
> > +## Generating new Zephyr recipe versions
> > +
> > The script meta-zephyr-core/scripts/generate-version.py is used to generate
> > Yocto configuration for a Zephyr version from the West configuration in the
> > Zephyr repository. It requires the west and jinja2 Python packages to be
> > installed on the host. Run it as follows:
> > -
> > +```
> > $ ./meta-zephyr-core/scripts/generate-version.py x.x.x
> > +```
> >
> > where x.x.x is the Zephyr version.
> >
> > @@ -140,17 +175,37 @@ The patch files added to SRC_URI in the generated
> file should be validated and
> > modified if required.
> >
> > The new version should be committed and submitted to the mailing
> > list as -described in "Contributing".
> > +described in "Maintainers, Mailing list, Patches".
> > +
> > +## Maintainers, Mailing list, Patches
> > +
> > +Please send any patches for this layer to the yocto-patches
> > +mailinglists with ['meta-zephyr'] in the subject:
> > +
> > + yocto-patches@lists.yoctoproject.org
> > +
> > +When sending patches, please make sure the email subject line
> > +includes `[meta-amd-edf][<BRANCH_NAME>][PATCH]` and cc'ing the
should be "meta-zephyr"
> maintainers.
> > +
> > +For more details follow the Yocto Project community patch submission
> > +guidelines, as described in:
> > +
> > +https://docs.yoctoproject.org/dev/contributor-guide/submit-changes.ht
> > +ml#
> > +
> > +`git send-email --to yocto-patches@lists.yoctoproject.org *.patch`
> > +
> > +> **Note:** When creating patches, please use below format. To follow
> > +> best practice, if you have more than one patch use `--cover-letter`
> > +> option while generating the patches. Edit the
> > +> 0000-cover-letter.patch and change the title and top of the body as
> appropriate.
> >
> > -Contributing
> > -============
> > +**Syntax:**
> > +`git format-patch -s
> > +--subject-prefix="meta-zephyr][<BRANCH_NAME>][PATCH" -1`
> >
> > -Patches for meta-zephyr should be sent to the
> > yocto-patches@lists.yoctoproject.org
> > -mailing list. See https://lists.yoctoproject.org/g/yocto-patches for
> > subscription -details and the list archive. Please add [meta-zephyr]
> > to the subject so -the patches are identifable.
> > +**Example:**
> > +`git format-patch -s --subject-prefix="meta-zephyr][scarthgap][PATCH"
> > +-1`
> >
> > -Git can be configured to send mails appropriately when using git send-email:
> > +**Maintainers:**
> >
> > -$ git config --local sendemail.to
> > yocto-patches@lists.yoctoproject.org
> > -$ git config --local format.subjectPrefix meta-zephyr][PATCH
> > + Lee Chee Yang <chee.yang.lee@intel.com>
> > + Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> > diff --git a/meta-zephyr-bsp/README.md b/meta-zephyr-bsp/README.md
> new
> > file mode 100644 index 0000000..e159015
> > --- /dev/null
> > +++ b/meta-zephyr-bsp/README.md
> > @@ -0,0 +1,5 @@
> > +# meta-zephyr-bsp
> > +
> > +This layer contains machine files for building Zephyr applications.
> > +
> > +For more details see [Building Instructions](../README.md)
> > diff --git a/meta-zephyr-bsp/README.txt b/meta-zephyr-bsp/README.txt
> > deleted file mode 100644 index 2644ed0..0000000
> > --- a/meta-zephyr-bsp/README.txt
> > +++ /dev/null
> > @@ -1 +0,0 @@
> > -See ../README.txt
> > diff --git a/meta-zephyr-core/README.md b/meta-zephyr-core/README.md
> > new file mode 100644 index 0000000..18db977
> > --- /dev/null
> > +++ b/meta-zephyr-core/README.md
> > @@ -0,0 +1,6 @@
> > +# meta-zephyr-core
> > +
> > +This layer enables Zephyr build metadata such as zephyr scripts,
> > +kernel include files, zephyr applications recipes and bitbake class to support
> qemu boot.
> > +
> > +For more details see [Building Instructions](../README.md)
> > diff --git a/meta-zephyr-core/README.txt b/meta-zephyr-core/README.txt
> > deleted file mode 100644 index 2644ed0..0000000
> > --- a/meta-zephyr-core/README.txt
> > +++ /dev/null
> > @@ -1 +0,0 @@
> > -See ../README.txt
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2050): https://lists.yoctoproject.org/g/yocto-
> patches/message/2050
> Mute This Topic: https://lists.yoctoproject.org/mt/114713070/1648606
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-
> patches/leave/13233161/1648606/629479993/xyzzy [chee.yang.lee@intel.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg multi services recipe
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
@ 2025-08-19 2:02 ` Lee, Chee Yang
2025-08-19 19:43 ` [yocto-patches] " Gundlupet Raju, Sandeep
0 siblings, 1 reply; 18+ messages in thread
From: Lee, Chee Yang @ 2025-08-19 2:02 UTC (permalink / raw)
To: Sandeep Gundlupet Raju, yocto-patches@lists.yoctoproject.org
> -----Original Message-----
> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> Sent: Friday, 15 August, 2025 11:55 AM
> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
> <chee.yang.lee@intel.com>
> Subject: [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg
> multi services recipe
>
> Add zephyr-openamp-rpmsg-mulit-services recipe to build out of tree
> openamp-system-reference example applications.
>
> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-
> raju@amd.com>
> ---
> .../zephyr-openamp-rpmsg-multi-srv.bb | 23 +++++++++++++++++++
> 1 file changed, 23 insertions(+)
> create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
> openamp-rpmsg-multi-srv.bb
>
> diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
> rpmsg-multi-srv.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
> openamp-rpmsg-multi-srv.bb
> new file mode 100644
> index 0000000..222ed2b
> --- /dev/null
> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
> rpmsg
> +++ -multi-srv.bb
> @@ -0,0 +1,23 @@
> +SUMMARY = "Open AMP rpmsg multi services"
> +DESCRIPTION = "Open AMP rpmsg multi services"
> +
> +inherit zephyr-sample
> +
> +SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF ?=
> "git://github.com/OpenAMP/openamp-system-reference;protocol=https"
> +
> +BRANCH ?= "v2024.05"
> +BRANCHARG = "${@['nobranch=1',
> 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
> +
> +SRC_URI:append = " \
> + ${SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF};name=open-amp-sys-
> ref;${BRANCHARG};destsuffix=git/open-amp-sys-ref \
should be " destsuffix=${P}/open-amp-sys-ref " for master branch
I was facing error while building this recipe
CMake Error at /data/master/poky/build-zephyr/tmp/work/qemu-cortex-a9-zephyr/zephyr-openamp-rpmsg-multi-srv/4.1.0+git/sources/zephyr-openamp-rpmsg-multi-srv-4.1.0+git/modules/hal/libmetal/libmetal/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [yocto-patches] [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg multi services recipe
2025-08-19 2:02 ` Lee, Chee Yang
@ 2025-08-19 19:43 ` Gundlupet Raju, Sandeep
2025-08-19 20:39 ` Gundlupet Raju, Sandeep
0 siblings, 1 reply; 18+ messages in thread
From: Gundlupet Raju, Sandeep @ 2025-08-19 19:43 UTC (permalink / raw)
To: yocto-patches
On 8/18/2025 8:02 PM, Lee Chee Yang via lists.yoctoproject.org wrote:
>
>> -----Original Message-----
>> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
>> Sent: Friday, 15 August, 2025 11:55 AM
>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>> <chee.yang.lee@intel.com>
>> Subject: [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg
>> multi services recipe
>>
>> Add zephyr-openamp-rpmsg-mulit-services recipe to build out of tree
>> openamp-system-reference example applications.
>>
>> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-
>> raju@amd.com>
>> ---
>> .../zephyr-openamp-rpmsg-multi-srv.bb | 23 +++++++++++++++++++
>> 1 file changed, 23 insertions(+)
>> create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>> openamp-rpmsg-multi-srv.bb
>>
>> diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>> rpmsg-multi-srv.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>> openamp-rpmsg-multi-srv.bb
>> new file mode 100644
>> index 0000000..222ed2b
>> --- /dev/null
>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>> rpmsg
>> +++ -multi-srv.bb
>> @@ -0,0 +1,23 @@
>> +SUMMARY = "Open AMP rpmsg multi services"
>> +DESCRIPTION = "Open AMP rpmsg multi services"
>> +
>> +inherit zephyr-sample
>> +
>> +SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF ?=
>> "git://github.com/OpenAMP/openamp-system-reference;protocol=https"
>> +
>> +BRANCH ?= "v2024.05"
>> +BRANCHARG = "${@['nobranch=1',
>> 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
>> +
>> +SRC_URI:append = " \
>> + ${SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF};name=open-amp-sys-
>> ref;${BRANCHARG};destsuffix=git/open-amp-sys-ref \
> should be " destsuffix=${P}/open-amp-sys-ref " for master branch
>
> I was facing error while building this recipe
>
> CMake Error at /data/master/poky/build-zephyr/tmp/work/qemu-cortex-a9-zephyr/zephyr-openamp-rpmsg-multi-srv/4.1.0+git/sources/zephyr-openamp-rpmsg-multi-srv-4.1.0+git/modules/hal/libmetal/libmetal/CMakeLists.txt:1 (cmake_minimum_required):
> Compatibility with CMake < 3.5 has been removed from CMake.
[Sandeep]: Let me check why I didn't see this issue. and send a v2 patch.
>
>
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2053): https://lists.yoctoproject.org/g/yocto-patches/message/2053
> Mute This Topic: https://lists.yoctoproject.org/mt/114713062/8188369
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/14211927/8188369/518048116/xyzzy [santraju@amd.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [yocto-patches] [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg multi services recipe
2025-08-19 19:43 ` [yocto-patches] " Gundlupet Raju, Sandeep
@ 2025-08-19 20:39 ` Gundlupet Raju, Sandeep
0 siblings, 0 replies; 18+ messages in thread
From: Gundlupet Raju, Sandeep @ 2025-08-19 20:39 UTC (permalink / raw)
To: yocto-patches
On 8/19/2025 1:43 PM, Sandeep Gundlupet Raju via lists.yoctoproject.org
wrote:
>
> On 8/18/2025 8:02 PM, Lee Chee Yang via lists.yoctoproject.org wrote:
>>
>>> -----Original Message-----
>>> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
>>> Sent: Friday, 15 August, 2025 11:55 AM
>>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>>> <chee.yang.lee@intel.com>
>>> Subject: [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg
>>> multi services recipe
>>>
>>> Add zephyr-openamp-rpmsg-mulit-services recipe to build out of tree
>>> openamp-system-reference example applications.
>>>
>>> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-
>>> raju@amd.com>
>>> ---
>>> .../zephyr-openamp-rpmsg-multi-srv.bb | 23
>>> +++++++++++++++++++
>>> 1 file changed, 23 insertions(+)
>>> create mode 100644
>>> meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>>> openamp-rpmsg-multi-srv.bb
>>>
>>> diff --git
>>> a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>>> rpmsg-multi-srv.bb
>>> b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>>> openamp-rpmsg-multi-srv.bb
>>> new file mode 100644
>>> index 0000000..222ed2b
>>> --- /dev/null
>>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>>> rpmsg
>>> +++ -multi-srv.bb
>>> @@ -0,0 +1,23 @@
>>> +SUMMARY = "Open AMP rpmsg multi services"
>>> +DESCRIPTION = "Open AMP rpmsg multi services"
>>> +
>>> +inherit zephyr-sample
>>> +
>>> +SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF ?=
>>> "git://github.com/OpenAMP/openamp-system-reference;protocol=https"
>>> +
>>> +BRANCH ?= "v2024.05"
>>> +BRANCHARG = "${@['nobranch=1',
>>> 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
>>> +
>>> +SRC_URI:append = " \
>>> + ${SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF};name=open-amp-sys-
>>> ref;${BRANCHARG};destsuffix=git/open-amp-sys-ref \
>> should be " destsuffix=${P}/open-amp-sys-ref " for master branch
>>
>> I was facing error while building this recipe
>>
>> CMake Error at
>> /data/master/poky/build-zephyr/tmp/work/qemu-cortex-a9-zephyr/zephyr-openamp-rpmsg-multi-srv/4.1.0+git/sources/zephyr-openamp-rpmsg-multi-srv-4.1.0+git/modules/hal/libmetal/libmetal/CMakeLists.txt:1
>> (cmake_minimum_required):
>> Compatibility with CMake < 3.5 has been removed from CMake.
> [Sandeep]: Let me check why I didn't see this issue. and send a v2 patch.
[Sandeep]: I was able to reproduce the issue on master will send a v2
patch now.
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2059):
> https://lists.yoctoproject.org/g/yocto-patches/message/2059
> Mute This Topic: https://lists.yoctoproject.org/mt/114713062/8188369
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe:
> https://lists.yoctoproject.org/g/yocto-patches/leave/14211927/8188369/518048116/xyzzy
> [santraju@amd.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2025-08-19 20:40 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 3:54 [meta-zephyr][master][PATCH 00/12] Update for master Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 01/12] zephyr-kernel-src.inc.jinja: Update script to generate srcrev Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 02/12] qemu-cortex-a9: Fix runqemu errors Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 03/12] zephyr-sdk: Add new inc file Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 04/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 05/12] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 06/12] classes: Move classes to match bbclass scope functionality Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 07/12] zephyr-qemuboot: Use image artifact file in qemuimage Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 08/12] meta-zephyr: Update README files Sandeep Gundlupet Raju
2025-08-18 22:10 ` [yocto-patches] " Gundlupet Raju, Sandeep
2025-08-19 1:55 ` Lee, Chee Yang
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 09/12] zephyr-kernel: Use relative path Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass Sandeep Gundlupet Raju
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 11/12] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
2025-08-19 2:02 ` Lee, Chee Yang
2025-08-19 19:43 ` [yocto-patches] " Gundlupet Raju, Sandeep
2025-08-19 20:39 ` Gundlupet Raju, Sandeep
2025-08-15 3:54 ` [meta-zephyr][master][PATCH 12/12] zephyr-kernel-common: Add Board extension support Sandeep Gundlupet Raju
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).