yocto-patches.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [scarthgap][PATCH v5 0/12]
@ 2025-08-12 17:41 Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 1/12] qemu-cortex-a9: Fix runqemu errors Sandeep Gundlupet Raju
                   ` (12 more replies)
  0 siblings, 13 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 UTC (permalink / raw)
  To: yocto-patches, chee.yang.lee

Changes in v5:
   - Fix typo in zephyr-openamp-rpmsg-multi-srv recipe.
   - Merge below commits into single commit.
     [meta-zephyr][scarthgap][PATCH v4 3/13] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel
     [meta-zephyr][scarthgap][PATCH v4 4/13] layer: Set PREFERRED_VERSION for kernel and sdk

Changes in v4:
   -  Fix below patch commit message typo.
      zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel

Changes in v3:
   - Add Board extension support variables.

Changes in v2:
   - Move classes to match bbclass scope functionality.
   - Use relative path to follow best practice.
   - Convert zephyr-sample inc file to bbclass so that it can
     be inherited from custom layers to support out-of-tree
     zephyr applications.

Description of change:
1. Fix runqemu errors for qemu-cortex-a9 machine.
2. Add new inc file and update to 0.16.9 version for scathgap
3. Remove PREFERRED_VERSION_zephyr-kernel from zephyr-kernel-src and
   move to layer.conf
4. Add image artifacts to output files and use these files for qemuimage.
5. Add Zephyr LTS3.7.0 support for scarthgap release.
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

CI Build Information:
MACHINE:
BOARD:
BOARD_VARIANT:
IMAGE:
PLNX_BUILD:

Summary of changes:

meta-zephyr (scarthgap):
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-kernel: Add Zephyr LTS3.7.0 support
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 and update to 0.16.9 version
Sandeep Gundlupet Raju
    qemu-cortex-a9: Fix runqemu errors

 b/README.md                                                                                                               |  163 +++--
 b/meta-zephyr-bsp/README.md                                                                                               |    5 
 b/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf                                                                        |    1 
 b/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb                                                           |    4 
 b/meta-zephyr-core/README.md                                                                                              |    6 
 b/meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass                                                                 |    6 
 b/meta-zephyr-core/classes-recipe/zephyr-sample.bbclass                                                                   |   10 
 b/meta-zephyr-core/classes-recipe/zephyrtest.bbclass                                                                      |    1 
 b/meta-zephyr-core/conf/layer.conf                                                                                        |    4 
 b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc                                                             |    3 
 b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb                                                       |    4 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.7-x86-fix-efi-binary-generation-issue-in-cross-compila.patch |  106 +++
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb                                                          |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb                                                     |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb                                                     |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb                                                     |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb                                                        |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb                                                      |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb                                                     |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc                                                          |   28 -
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc                                                  |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.7.0.inc                                               |  274 ++++++++++
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc                                                     |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb                                                 |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb                                                     |    4 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb                                                            |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb                                                  |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-multi-srv.bb                                         |   23 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb                                               |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb                                          |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb                                                  |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb                                                  |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb                                                   |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb                                                    |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb                                                 |    2 
 b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb                                                |    2 
 meta-zephyr-bsp/README.txt                                                                                                |    1 
 meta-zephyr-core/README.txt                                                                                               |    1 
 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc                                                            |    4 
 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc                                                    |    5 
 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc                                                           |    1 
 41 files changed, 599 insertions(+), 95 deletions(-)
---


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

* [meta-zephyr][scarthgap][PATCH v5 1/12] qemu-cortex-a9: Fix runqemu errors
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 2/12] zephyr-sdk: Add new inc file and update to 0.16.9 version Sandeep Gundlupet Raju
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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 9dfee42..e1b026f 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] 20+ messages in thread

* [meta-zephyr][scarthgap][PATCH v5 2/12] zephyr-sdk: Add new inc file and update to 0.16.9 version
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 1/12] qemu-cortex-a9: Fix runqemu errors Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 3/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel Sandeep Gundlupet Raju
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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.

Also update sdk to 0.16.9 version.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
 .../zephyr-sdk/{zephyr-sdk_0.16.5-1.bb => zephyr-sdk.inc}     | 3 ---
 .../recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb          | 4 ++++
 2 files changed, 4 insertions(+), 3 deletions(-)
 rename meta-zephyr-core/recipes-devtools/zephyr-sdk/{zephyr-sdk_0.16.5-1.bb => zephyr-sdk.inc} (83%)
 create mode 100644 meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb

diff --git a/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.5-1.bb b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
similarity index 83%
rename from meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.5-1.bb
rename to meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
index 0b608bc..ee2e63b 100644
--- a/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.5-1.bb
+++ b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
@@ -14,9 +14,6 @@ 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};subdir=${S};name=${SDK_NAME}"
 
-SRC_URI[x86_64.sha256sum] = "01f942146d2fc6d6afd5afe6f4b5c315525d2c937c7e613d3312b0992b33bc68"
-SRC_URI[aarch64.sha256sum] = "1749b6891a6a6e70b013d8b31ff067c5a94891f651985a6da9a20367b2deb6c7"
-
 do_configure[noexec] = "1"
 do_compile[noexec] = "1"
 
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
new file mode 100644
index 0000000..ba20341
--- /dev/null
+++ b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb
@@ -0,0 +1,4 @@
+require zephyr-sdk.inc
+
+SRC_URI[x86_64.sha256sum] = "9b4b96f8df594801a84fce1aa112a84cdfcd430efc2a74229907b6421fb859a8"
+SRC_URI[aarch64.sha256sum] = "a8c1731ad602553304e539a7ade9cdb34caabc1850d581585cbba0372a7493b2"
-- 
2.34.1



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

* [meta-zephyr][scarthgap][PATCH v5 3/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 1/12] qemu-cortex-a9: Fix runqemu errors Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 2/12] zephyr-sdk: Add new inc file and update to 0.16.9 version Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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                              | 4 ++++
 .../recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc        | 2 --
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-zephyr-core/conf/layer.conf b/meta-zephyr-core/conf/layer.conf
index e1bb263..e355b3f 100644
--- a/meta-zephyr-core/conf/layer.conf
+++ b/meta-zephyr-core/conf/layer.conf
@@ -20,3 +20,7 @@ LAYERSERIES_COMPAT_zephyrcore = "kirkstone scarthgap"
 PYTHON3_NATIVE_SITEPACKAGES_DIR = "${libdir_native}/${PYTHON3_DIR}/site-packages"
 
 addpylib ${LAYERDIR}/lib oeqa
+
+# Default to a stable version
+PREFERRED_VERSION_zephyr-kernel ??= "3.6.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 0b9baac..6b2b697 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
@@ -11,6 +11,4 @@ inherit cmake
 FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
 S = "${WORKDIR}/git"
 
-# Default to a stable version
-PREFERRED_VERSION_zephyr-kernel ??= "3.6.0"
 require recipes-kernel/zephyr-kernel/zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
-- 
2.34.1



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

* [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (2 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 3/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-13  3:13   ` [yocto-patches] " Lee, Chee Yang
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 5/12] classes: Move classes to match bbclass scope functionality Sandeep Gundlupet Raju
                   ` (8 subsequent siblings)
  12 siblings, 1 reply; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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            | 28 +++++++++++++++----
 1 file changed, 23 insertions(+), 5 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 d6ee21f..93d36b1 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
@@ -1,29 +1,47 @@
 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
 
-    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${D}/firmware/${PN}.elf
+    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.elf
 
     if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
     then
-      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ${D}/firmware/${PN}.bin
+      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.bin
     fi
 
     if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
     then
-      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ${D}/firmware/${PN}.efi
+      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.efi
     fi
 }
+
 FILES:${PN} = "/firmware"
 INSANE_SKIP += "ldflags buildpaths"
 SYSROOT_DIRS += "/firmware"
 
 do_deploy() {
-    cp ${D}/firmware/${PN}.* ${DEPLOYDIR}/
+    cp ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.elf
+    ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.elf ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.elf
+
+    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
+    then
+       cp ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.bin
+       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.bin ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.bin
+    fi
+
+    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
+    then
+       cp ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.efi
+       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.efi ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.efi
+    fi
+
 }
 addtask deploy after do_install
-- 
2.34.1



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

* [meta-zephyr][scarthgap][PATCH v5 5/12] classes: Move classes to match bbclass scope functionality
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (3 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 6/12] zephyr-qemuboot: Use image artifact file in qemuimage Sandeep Gundlupet Raju
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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] 20+ messages in thread

* [meta-zephyr][scarthgap][PATCH v5 6/12] zephyr-qemuboot: Use image artifact file in qemuimage
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (4 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 5/12] classes: Move classes to match bbclass scope functionality Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 7/12] zephyr-kernel: Add Zephyr LTS3.7.0 support Sandeep Gundlupet Raju
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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] 20+ messages in thread

* [meta-zephyr][scarthgap][PATCH v5 7/12] zephyr-kernel: Add Zephyr LTS3.7.0 support
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (5 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 6/12] zephyr-qemuboot: Use image artifact file in qemuimage Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 8/12] meta-zephyr: Update README files Sandeep Gundlupet Raju
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 UTC (permalink / raw)
  To: yocto-patches, chee.yang.lee

Add Zephyr LTS3.7.0 support to scarthgap release. In scarthgap default
PREFERRED_VERSION_zephyr-kernel is set to 3.6.0 and if user needs LTS3
then set PREFERRED_VERSION_zephyr-kernel = "3.7.0" in local.conf file.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
---
 ...ry-generation-issue-in-cross-compila.patch | 106 +++++++
 .../zephyr-kernel/zephyr-kernel-src-3.7.0.inc | 274 ++++++++++++++++++
 2 files changed, 380 insertions(+)
 create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.7-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
 create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.7.0.inc

diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.7-x86-fix-efi-binary-generation-issue-in-cross-compila.patch b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.7-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
new file mode 100644
index 0000000..5029369
--- /dev/null
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.7-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
@@ -0,0 +1,106 @@
+From 23f6da3cf295fa84cb03c7d98dfc6ec9c6aa2cf3 Mon Sep 17 00:00:00 2001
+From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
+Date: Thu, 3 Jul 2025 00:31:50 -0600
+Subject: [PATCH] x86: fix efi binary generation issue in cross compilation env
+
+Set root directory for headers.
+
+Upstream-Status: Inappropriate [Yocto Project cross-compilation specific]
+
+Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
+---
+ arch/x86/zefi/zefi.py                                       | 5 ++++-
+ boards/intel/adl/CMakeLists.txt                             | 1 +
+ boards/intel/ehl/CMakeLists.txt                             | 1 +
+ boards/intel/rpl/CMakeLists.txt                             | 1 +
+ boards/up-bridge-the-gap/up_squared/CMakeLists.txt          | 1 +
+ boards/up-bridge-the-gap/up_squared_pro_7000/CMakeLists.txt | 1 +
+ 6 files changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/arch/x86/zefi/zefi.py b/arch/x86/zefi/zefi.py
+index 99c188ecd08..1cd86a21cd4 100755
+--- a/arch/x86/zefi/zefi.py
++++ b/arch/x86/zefi/zefi.py
+@@ -109,8 +109,10 @@ def build_elf(elf_file, include_dirs):
+     includes = []
+     for include_dir in include_dirs:
+         includes.extend(["-I", include_dir])
++    #  Pass --sysroot path for cross compilation
++    sysrootarg = "--sysroot=" + args.sysroot
+     cmd = ([args.compiler, "-shared", "-Wall", "-Werror", "-I."] + includes +
+-           ["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar",
++           ["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar", sysrootarg,
+             "-Wl,-nostdlib", "-T", ldscript, "-o", "zefi.elf", cfile])
+     verbose(" ".join(cmd))
+     subprocess.run(cmd, check = True)
+@@ -150,6 +152,7 @@ def parse_args():
+     parser.add_argument("-v", "--verbose", action="store_true", help="Verbose output")
+     parser.add_argument("-i", "--includes", required=True, nargs="+",
+                         help="Zephyr base include directories")
++    parser.add_argument("-s", "--sysroot", required=True, help="Cross compilation --sysroot=path")
+ 
+     return parser.parse_args()
+ 
+diff --git a/boards/intel/adl/CMakeLists.txt b/boards/intel/adl/CMakeLists.txt
+index 36ddcdf9d13..4cb244a777d 100644
+--- a/boards/intel/adl/CMakeLists.txt
++++ b/boards/intel/adl/CMakeLists.txt
+@@ -8,6 +8,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -o ${CMAKE_OBJCOPY}
+   -i ${ZEPHYR_BASE}/include
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/intel/ehl/CMakeLists.txt b/boards/intel/ehl/CMakeLists.txt
+index 36ddcdf9d13..4cb244a777d 100644
+--- a/boards/intel/ehl/CMakeLists.txt
++++ b/boards/intel/ehl/CMakeLists.txt
+@@ -8,6 +8,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -o ${CMAKE_OBJCOPY}
+   -i ${ZEPHYR_BASE}/include
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/intel/rpl/CMakeLists.txt b/boards/intel/rpl/CMakeLists.txt
+index 36ddcdf9d13..4cb244a777d 100644
+--- a/boards/intel/rpl/CMakeLists.txt
++++ b/boards/intel/rpl/CMakeLists.txt
+@@ -8,6 +8,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -o ${CMAKE_OBJCOPY}
+   -i ${ZEPHYR_BASE}/include
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/up-bridge-the-gap/up_squared/CMakeLists.txt b/boards/up-bridge-the-gap/up_squared/CMakeLists.txt
+index ddfd93807ff..8dfe7aa9cec 100644
+--- a/boards/up-bridge-the-gap/up_squared/CMakeLists.txt
++++ b/boards/up-bridge-the-gap/up_squared/CMakeLists.txt
+@@ -11,6 +11,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -o ${CMAKE_OBJCOPY}
+   -i ${ZEPHYR_BASE}/include
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/up-bridge-the-gap/up_squared_pro_7000/CMakeLists.txt b/boards/up-bridge-the-gap/up_squared_pro_7000/CMakeLists.txt
+index 36ddcdf9d13..4cb244a777d 100644
+--- a/boards/up-bridge-the-gap/up_squared_pro_7000/CMakeLists.txt
++++ b/boards/up-bridge-the-gap/up_squared_pro_7000/CMakeLists.txt
+@@ -8,6 +8,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -o ${CMAKE_OBJCOPY}
+   -i ${ZEPHYR_BASE}/include
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+-- 
+2.34.1
+
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.7.0.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.7.0.inc
new file mode 100644
index 0000000..1cf87a2
--- /dev/null
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.7.0.inc
@@ -0,0 +1,274 @@
+# Auto-generated from zephyr-kernel-src.inc.jinja
+
+SRCREV_FORMAT = "default"
+
+SRCREV_default = "36940db938a8f4a1e919496793ed439850a221c2"
+SRCREV_acpica = "8d24867bc9c9d81c81eeac59391cda59333affd4"
+SRCREV_bsim = "9351ae1ad44864a49c351f9704f65f43046abeb0"
+SRCREV_babblesim_base = "4bd907be0b2abec3b31a23fd8ca98db2a07209d2"
+SRCREV_babblesim_ext_2G4_libPhyComv1 = "93f5eba512c438b0c9ebc1b1a947517c865b3643"
+SRCREV_babblesim_ext_2G4_phy_v1 = "04eeb3c3794444122fbeeb3715f4233b0b50cfbb"
+SRCREV_babblesim_ext_2G4_channel_NtNcable = "20a38c997f507b0aa53817aab3d73a462fff7af1"
+SRCREV_babblesim_ext_2G4_channel_multiatt = "bde72a57384dde7a4310bcf3843469401be93074"
+SRCREV_babblesim_ext_2G4_modem_magic = "edfcda2d3937a74be0a59d6cd47e0f50183453da"
+SRCREV_babblesim_ext_2G4_modem_BLE_simple = "a38d2d24b04a6f970a225d1316047256ebf5a539"
+SRCREV_babblesim_ext_2G4_device_burst_interferer = "5b5339351d6e6a2368c686c734dc8b2fc65698fc"
+SRCREV_babblesim_ext_2G4_device_WLAN_actmod = "9cb6d8e72695f6b785e57443f0629a18069d6ce4"
+SRCREV_babblesim_ext_2G4_device_playback = "abb48cd71ddd4e2a9022f4bf49b2712524c483e8"
+SRCREV_babblesim_ext_libCryptov1 = "eed6d7038e839153e340bd333bc43541cb90ba64"
+SRCREV_cmsis = "4b96cbb174678dcd3ca86e11e1f24bc5f8726da0"
+SRCREV_cmsis-dsp = "6489e771e9c405f1763b52d64a3f17a1ec488ace"
+SRCREV_cmsis-nn = "ea987c1ca661be723de83bd159aed815d6cbd430"
+SRCREV_edtt = "8d7b543d4d2f2be0f78481e4e1d8d73a88024803"
+SRCREV_fatfs = "427159bf95ea49b7680facffaa29ad506b42709b"
+SRCREV_hal_adi = "dee9a7b1eff13a9da0560daf8842d61657f9d61e"
+SRCREV_hal_altera = "4fe4df959d4593ce66e676aeba0b57f546dba0fe"
+SRCREV_hal_ambiq = "e25327f026df1ee08f1bf01a4bbfeb5e5f4026f1"
+SRCREV_hal_atmel = "56d60ebc909ad065bf6554cee73487969857614b"
+SRCREV_hal_espressif = "87e7902d7184a8280b4d13bce79801a723f4ddd8"
+SRCREV_hal_ethos_u = "8e2cf756b474eff9a32a9bdf1775d9620f1eadcf"
+SRCREV_hal_gigadevice = "2994b7dde8b0b0fa9b9c0ccb13474b6a486cddc3"
+SRCREV_hal_infineon = "f25734a72c585f6675e8254a382e80e78a3cd03a"
+SRCREV_hal_intel = "0905a528623de56b1bedf817536321bcdbc0efae"
+SRCREV_hal_microchip = "71eba057c0cb7fc11b6f33eb40a82f1ebe2c571c"
+SRCREV_hal_nordic = "ab5cb2e2faeb1edfad7a25286dcb513929ae55da"
+SRCREV_hal_nuvoton = "466c3eed9c98453fb23953bf0e0427fea01924be"
+SRCREV_hal_nxp = "862e001504bd6e0a4feade6a718e9f973116849c"
+SRCREV_hal_openisa = "eabd530a64d71de91d907bad257cd61aacf607bc"
+SRCREV_hal_quicklogic = "bad894440fe72c814864798c8e3a76d13edffb6c"
+SRCREV_hal_renesas = "af77d7cdfeeff290593e7e99f54f0c1e2a3f91e6"
+SRCREV_hal_rpi_pico = "fba7162cc7bee06d0149622bbcaac4e41062d368"
+SRCREV_hal_silabs = "a09dd1b82b24aa3060e162c0dfa40026c0dba450"
+SRCREV_hal_st = "b77157f6bc4395e398d90ab02a7d2cbc01ab2ce7"
+SRCREV_hal_stm32 = "f1317150eac951fdd8259337a47cbbc4c2e6d335"
+SRCREV_hal_telink = "4226c7fc17d5a34e557d026d428fc766191a0800"
+SRCREV_hal_ti = "b85f86e51fc4d47c4c383d320d64d52d4d371ae4"
+SRCREV_hal_wurthelektronik = "e5bcb2eac1bb9639ce13b4dafc78eb254e014342"
+SRCREV_hal_xtensa = "a2d658525b16c57bea8dd565f5bd5167e4b9f1ee"
+SRCREV_hostap = "a90df86d7c596a5367ff70c2b50c7f599e6636f3"
+SRCREV_libmetal = "a6851ba6dba8c9e87d00c42f171a822f7a29639b"
+SRCREV_liblc3 = "1a5938ebaca4f13fe79ce074f5dee079783aa29f"
+SRCREV_littlefs = "408c16a909dd6cf128874a76f21c793798c9e423"
+SRCREV_loramac-node = "fb00b383072518c918e2258b0916c996f2d4eebe"
+SRCREV_lvgl = "2b498e6f36d6b82ae1da12c8b7742e318624ecf5"
+SRCREV_mbedtls = "2f24831ee13d399ce019c4632b0bcd440a713f7c"
+SRCREV_mcuboot = "fb2cf0ec3da3687b93f28e556ab682bdd4b85223"
+SRCREV_mipi-sys-t = "71ace1f5caa03e56c8740a09863e685efb4b2360"
+SRCREV_net-tools = "7c7a856814d7f27509c8511fef14cec21f7d0c30"
+SRCREV_nrf_hw_models = "6c389b9b5fa0a079cd4502e69d375da4c0c289b7"
+SRCREV_open-amp = "76d2168bcdfcd23a9a7dce8c21f2083b90a1e60a"
+SRCREV_openthread = "3873c6fcd5a8a9dd01b71e8efe32ef5dc7923bb1"
+SRCREV_percepio = "a49e5f3947faad0dd654eddd5a750127fb81e50d"
+SRCREV_picolibc = "764ef4e401a8f4c6a86ab723533841f072885a5b"
+SRCREV_segger = "b011c45b585e097d95d9cf93edf4f2e01588d3cd"
+SRCREV_tinycrypt = "1012a3ebee18c15ede5efc8332ee2fc37817670f"
+SRCREV_trusted-firmware-m = "069455be098383bf96eab73e3ff8e0c66c60fa5a"
+SRCREV_trusted-firmware-a = "713ffbf96c5bcbdeab757423f10f73eb304eff07"
+SRCREV_uoscore-uedhoc = "84ef879a46d7bfd9a423fbfb502b04289861f9ea"
+SRCREV_zcbor = "75d088037eb237b18e7ec1f47c9ce494b9b95aab"
+
+SRC_URI_ZEPHYR ?= "git://github.com/zephyrproject-rtos/zephyr.git;protocol=https"
+SRC_URI_ZEPHYR_ACPICA ?= "git://github.com/zephyrproject-rtos/acpica;protocol=https"
+SRC_URI_ZEPHYR_BSIM ?= "git://github.com/zephyrproject-rtos/babblesim-manifest;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_BASE ?= "git://github.com/BabbleSim/base;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_LIBPHYCOMV1 ?= "git://github.com/BabbleSim/ext_2G4_libPhyComv1;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_PHY_V1 ?= "git://github.com/BabbleSim/ext_2G4_phy_v1;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_CHANNEL_NTNCABLE ?= "git://github.com/BabbleSim/ext_2G4_channel_NtNcable;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_CHANNEL_MULTIATT ?= "git://github.com/BabbleSim/ext_2G4_channel_multiatt;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_MODEM_MAGIC ?= "git://github.com/BabbleSim/ext_2G4_modem_magic;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_MODEM_BLE_SIMPLE ?= "git://github.com/BabbleSim/ext_2G4_modem_BLE_simple;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_DEVICE_BURST_INTERFERER ?= "git://github.com/BabbleSim/ext_2G4_device_burst_interferer;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_DEVICE_WLAN_ACTMOD ?= "git://github.com/BabbleSim/ext_2G4_device_WLAN_actmod;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_DEVICE_PLAYBACK ?= "git://github.com/BabbleSim/ext_2G4_device_playback;protocol=https"
+SRC_URI_ZEPHYR_BABBLESIM_EXT_LIBCRYPTOV1 ?= "git://github.com/BabbleSim/ext_libCryptov1;protocol=https"
+SRC_URI_ZEPHYR_CMSIS ?= "git://github.com/zephyrproject-rtos/cmsis;protocol=https"
+SRC_URI_ZEPHYR_CMSIS_DSP ?= "git://github.com/zephyrproject-rtos/cmsis-dsp;protocol=https"
+SRC_URI_ZEPHYR_CMSIS_NN ?= "git://github.com/zephyrproject-rtos/cmsis-nn;protocol=https"
+SRC_URI_ZEPHYR_EDTT ?= "git://github.com/zephyrproject-rtos/edtt;protocol=https"
+SRC_URI_ZEPHYR_FATFS ?= "git://github.com/zephyrproject-rtos/fatfs;protocol=https"
+SRC_URI_ZEPHYR_HAL_ADI ?= "git://github.com/zephyrproject-rtos/hal_adi;protocol=https"
+SRC_URI_ZEPHYR_HAL_ALTERA ?= "git://github.com/zephyrproject-rtos/hal_altera;protocol=https"
+SRC_URI_ZEPHYR_HAL_AMBIQ ?= "git://github.com/zephyrproject-rtos/hal_ambiq;protocol=https"
+SRC_URI_ZEPHYR_HAL_ATMEL ?= "git://github.com/zephyrproject-rtos/hal_atmel;protocol=https"
+SRC_URI_ZEPHYR_HAL_ESPRESSIF ?= "git://github.com/zephyrproject-rtos/hal_espressif;protocol=https"
+SRC_URI_ZEPHYR_HAL_ETHOS_U ?= "git://github.com/zephyrproject-rtos/hal_ethos_u;protocol=https"
+SRC_URI_ZEPHYR_HAL_GIGADEVICE ?= "git://github.com/zephyrproject-rtos/hal_gigadevice;protocol=https"
+SRC_URI_ZEPHYR_HAL_INFINEON ?= "git://github.com/zephyrproject-rtos/hal_infineon;protocol=https"
+SRC_URI_ZEPHYR_HAL_INTEL ?= "git://github.com/zephyrproject-rtos/hal_intel;protocol=https"
+SRC_URI_ZEPHYR_HAL_MICROCHIP ?= "git://github.com/zephyrproject-rtos/hal_microchip;protocol=https"
+SRC_URI_ZEPHYR_HAL_NORDIC ?= "git://github.com/zephyrproject-rtos/hal_nordic;protocol=https"
+SRC_URI_ZEPHYR_HAL_NUVOTON ?= "git://github.com/zephyrproject-rtos/hal_nuvoton;protocol=https"
+SRC_URI_ZEPHYR_HAL_NXP ?= "git://github.com/zephyrproject-rtos/hal_nxp;protocol=https"
+SRC_URI_ZEPHYR_HAL_OPENISA ?= "git://github.com/zephyrproject-rtos/hal_openisa;protocol=https"
+SRC_URI_ZEPHYR_HAL_QUICKLOGIC ?= "git://github.com/zephyrproject-rtos/hal_quicklogic;protocol=https"
+SRC_URI_ZEPHYR_HAL_RENESAS ?= "git://github.com/zephyrproject-rtos/hal_renesas;protocol=https"
+SRC_URI_ZEPHYR_HAL_RPI_PICO ?= "git://github.com/zephyrproject-rtos/hal_rpi_pico;protocol=https"
+SRC_URI_ZEPHYR_HAL_SILABS ?= "git://github.com/zephyrproject-rtos/hal_silabs;protocol=https"
+SRC_URI_ZEPHYR_HAL_ST ?= "git://github.com/zephyrproject-rtos/hal_st;protocol=https"
+SRC_URI_ZEPHYR_HAL_STM32 ?= "git://github.com/zephyrproject-rtos/hal_stm32;protocol=https"
+SRC_URI_ZEPHYR_HAL_TELINK ?= "git://github.com/zephyrproject-rtos/hal_telink;protocol=https"
+SRC_URI_ZEPHYR_HAL_TI ?= "git://github.com/zephyrproject-rtos/hal_ti;protocol=https"
+SRC_URI_ZEPHYR_HAL_WURTHELEKTRONIK ?= "git://github.com/zephyrproject-rtos/hal_wurthelektronik;protocol=https"
+SRC_URI_ZEPHYR_HAL_XTENSA ?= "git://github.com/zephyrproject-rtos/hal_xtensa;protocol=https"
+SRC_URI_ZEPHYR_HOSTAP ?= "git://github.com/zephyrproject-rtos/hostap;protocol=https"
+SRC_URI_ZEPHYR_LIBMETAL ?= "git://github.com/zephyrproject-rtos/libmetal;protocol=https"
+SRC_URI_ZEPHYR_LIBLC3 ?= "git://github.com/zephyrproject-rtos/liblc3;protocol=https"
+SRC_URI_ZEPHYR_LITTLEFS ?= "git://github.com/zephyrproject-rtos/littlefs;protocol=https"
+SRC_URI_ZEPHYR_LORAMAC_NODE ?= "git://github.com/zephyrproject-rtos/loramac-node;protocol=https"
+SRC_URI_ZEPHYR_LVGL ?= "git://github.com/zephyrproject-rtos/lvgl;protocol=https"
+SRC_URI_ZEPHYR_MBEDTLS ?= "git://github.com/zephyrproject-rtos/mbedtls;protocol=https"
+SRC_URI_ZEPHYR_MCUBOOT ?= "git://github.com/zephyrproject-rtos/mcuboot;protocol=https"
+SRC_URI_ZEPHYR_MIPI_SYS_T ?= "git://github.com/zephyrproject-rtos/mipi-sys-t;protocol=https"
+SRC_URI_ZEPHYR_NET_TOOLS ?= "git://github.com/zephyrproject-rtos/net-tools;protocol=https"
+SRC_URI_ZEPHYR_NRF_HW_MODELS ?= "git://github.com/zephyrproject-rtos/nrf_hw_models;protocol=https"
+SRC_URI_ZEPHYR_OPEN_AMP ?= "git://github.com/zephyrproject-rtos/open-amp;protocol=https"
+SRC_URI_ZEPHYR_OPENTHREAD ?= "git://github.com/zephyrproject-rtos/openthread;protocol=https"
+SRC_URI_ZEPHYR_PERCEPIO ?= "git://github.com/zephyrproject-rtos/percepio;protocol=https"
+SRC_URI_ZEPHYR_PICOLIBC ?= "git://github.com/zephyrproject-rtos/picolibc;protocol=https"
+SRC_URI_ZEPHYR_SEGGER ?= "git://github.com/zephyrproject-rtos/segger;protocol=https"
+SRC_URI_ZEPHYR_TINYCRYPT ?= "git://github.com/zephyrproject-rtos/tinycrypt;protocol=https"
+SRC_URI_ZEPHYR_TRUSTED_FIRMWARE_M ?= "git://github.com/zephyrproject-rtos/trusted-firmware-m;protocol=https"
+SRC_URI_ZEPHYR_TRUSTED_FIRMWARE_A ?= "git://github.com/zephyrproject-rtos/trusted-firmware-a;protocol=https"
+SRC_URI_ZEPHYR_UOSCORE_UEDHOC ?= "git://github.com/zephyrproject-rtos/uoscore-uedhoc;protocol=https"
+SRC_URI_ZEPHYR_ZCBOR ?= "git://github.com/zephyrproject-rtos/zcbor;protocol=https"
+
+SRC_URI_PATCHES ?= "\
+    file://0001-3.7-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_ACPICA};name=acpica;nobranch=1;destsuffix=git/modules/lib/acpica \
+    ${SRC_URI_ZEPHYR_BSIM};name=bsim;nobranch=1;destsuffix=git/tools/bsim \
+    ${SRC_URI_ZEPHYR_BABBLESIM_BASE};name=babblesim_base;nobranch=1;destsuffix=git/tools/bsim/components \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_LIBPHYCOMV1};name=babblesim_ext_2G4_libPhyComv1;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_libPhyComv1 \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_PHY_V1};name=babblesim_ext_2G4_phy_v1;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_phy_v1 \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_CHANNEL_NTNCABLE};name=babblesim_ext_2G4_channel_NtNcable;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_channel_NtNcable \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_CHANNEL_MULTIATT};name=babblesim_ext_2G4_channel_multiatt;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_channel_multiatt \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_MODEM_MAGIC};name=babblesim_ext_2G4_modem_magic;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_modem_magic \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_MODEM_BLE_SIMPLE};name=babblesim_ext_2G4_modem_BLE_simple;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_modem_BLE_simple \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_DEVICE_BURST_INTERFERER};name=babblesim_ext_2G4_device_burst_interferer;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_device_burst_interferer \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_DEVICE_WLAN_ACTMOD};name=babblesim_ext_2G4_device_WLAN_actmod;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_device_WLAN_actmod \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_2G4_DEVICE_PLAYBACK};name=babblesim_ext_2G4_device_playback;nobranch=1;destsuffix=git/tools/bsim/components/ext_2G4_device_playback \
+    ${SRC_URI_ZEPHYR_BABBLESIM_EXT_LIBCRYPTOV1};name=babblesim_ext_libCryptov1;nobranch=1;destsuffix=git/tools/bsim/components/ext_libCryptov1 \
+    ${SRC_URI_ZEPHYR_CMSIS};name=cmsis;nobranch=1;destsuffix=git/modules/hal/cmsis \
+    ${SRC_URI_ZEPHYR_CMSIS_DSP};name=cmsis-dsp;nobranch=1;destsuffix=git/modules/lib/cmsis-dsp \
+    ${SRC_URI_ZEPHYR_CMSIS_NN};name=cmsis-nn;nobranch=1;destsuffix=git/modules/lib/cmsis-nn \
+    ${SRC_URI_ZEPHYR_EDTT};name=edtt;nobranch=1;destsuffix=git/tools/edtt \
+    ${SRC_URI_ZEPHYR_FATFS};name=fatfs;nobranch=1;destsuffix=git/modules/fs/fatfs \
+    ${SRC_URI_ZEPHYR_HAL_ADI};name=hal_adi;nobranch=1;destsuffix=git/modules/hal/adi \
+    ${SRC_URI_ZEPHYR_HAL_ALTERA};name=hal_altera;nobranch=1;destsuffix=git/modules/hal/altera \
+    ${SRC_URI_ZEPHYR_HAL_AMBIQ};name=hal_ambiq;nobranch=1;destsuffix=git/modules/hal/ambiq \
+    ${SRC_URI_ZEPHYR_HAL_ATMEL};name=hal_atmel;nobranch=1;destsuffix=git/modules/hal/atmel \
+    ${SRC_URI_ZEPHYR_HAL_ESPRESSIF};name=hal_espressif;nobranch=1;destsuffix=git/modules/hal/espressif \
+    ${SRC_URI_ZEPHYR_HAL_ETHOS_U};name=hal_ethos_u;nobranch=1;destsuffix=git/modules/hal/ethos_u \
+    ${SRC_URI_ZEPHYR_HAL_GIGADEVICE};name=hal_gigadevice;nobranch=1;destsuffix=git/modules/hal/gigadevice \
+    ${SRC_URI_ZEPHYR_HAL_INFINEON};name=hal_infineon;nobranch=1;destsuffix=git/modules/hal/infineon \
+    ${SRC_URI_ZEPHYR_HAL_INTEL};name=hal_intel;nobranch=1;destsuffix=git/modules/hal/intel \
+    ${SRC_URI_ZEPHYR_HAL_MICROCHIP};name=hal_microchip;nobranch=1;destsuffix=git/modules/hal/microchip \
+    ${SRC_URI_ZEPHYR_HAL_NORDIC};name=hal_nordic;nobranch=1;destsuffix=git/modules/hal/nordic \
+    ${SRC_URI_ZEPHYR_HAL_NUVOTON};name=hal_nuvoton;nobranch=1;destsuffix=git/modules/hal/nuvoton \
+    ${SRC_URI_ZEPHYR_HAL_NXP};name=hal_nxp;nobranch=1;destsuffix=git/modules/hal/nxp \
+    ${SRC_URI_ZEPHYR_HAL_OPENISA};name=hal_openisa;nobranch=1;destsuffix=git/modules/hal/openisa \
+    ${SRC_URI_ZEPHYR_HAL_QUICKLOGIC};name=hal_quicklogic;nobranch=1;destsuffix=git/modules/hal/quicklogic \
+    ${SRC_URI_ZEPHYR_HAL_RENESAS};name=hal_renesas;nobranch=1;destsuffix=git/modules/hal/renesas \
+    ${SRC_URI_ZEPHYR_HAL_RPI_PICO};name=hal_rpi_pico;nobranch=1;destsuffix=git/modules/hal/rpi_pico \
+    ${SRC_URI_ZEPHYR_HAL_SILABS};name=hal_silabs;nobranch=1;destsuffix=git/modules/hal/silabs \
+    ${SRC_URI_ZEPHYR_HAL_ST};name=hal_st;nobranch=1;destsuffix=git/modules/hal/st \
+    ${SRC_URI_ZEPHYR_HAL_STM32};name=hal_stm32;nobranch=1;destsuffix=git/modules/hal/stm32 \
+    ${SRC_URI_ZEPHYR_HAL_TELINK};name=hal_telink;nobranch=1;destsuffix=git/modules/hal/telink \
+    ${SRC_URI_ZEPHYR_HAL_TI};name=hal_ti;nobranch=1;destsuffix=git/modules/hal/ti \
+    ${SRC_URI_ZEPHYR_HAL_WURTHELEKTRONIK};name=hal_wurthelektronik;nobranch=1;destsuffix=git/modules/hal/wurthelektronik \
+    ${SRC_URI_ZEPHYR_HAL_XTENSA};name=hal_xtensa;nobranch=1;destsuffix=git/modules/hal/xtensa \
+    ${SRC_URI_ZEPHYR_HOSTAP};name=hostap;nobranch=1;destsuffix=git/modules/lib/hostap \
+    ${SRC_URI_ZEPHYR_LIBMETAL};name=libmetal;nobranch=1;destsuffix=git/modules/hal/libmetal \
+    ${SRC_URI_ZEPHYR_LIBLC3};name=liblc3;nobranch=1;destsuffix=git/modules/lib/liblc3 \
+    ${SRC_URI_ZEPHYR_LITTLEFS};name=littlefs;nobranch=1;destsuffix=git/modules/fs/littlefs \
+    ${SRC_URI_ZEPHYR_LORAMAC_NODE};name=loramac-node;nobranch=1;destsuffix=git/modules/lib/loramac-node \
+    ${SRC_URI_ZEPHYR_LVGL};name=lvgl;nobranch=1;destsuffix=git/modules/lib/gui/lvgl \
+    ${SRC_URI_ZEPHYR_MBEDTLS};name=mbedtls;nobranch=1;destsuffix=git/modules/crypto/mbedtls \
+    ${SRC_URI_ZEPHYR_MCUBOOT};name=mcuboot;nobranch=1;destsuffix=git/bootloader/mcuboot \
+    ${SRC_URI_ZEPHYR_MIPI_SYS_T};name=mipi-sys-t;nobranch=1;destsuffix=git/modules/debug/mipi-sys-t \
+    ${SRC_URI_ZEPHYR_NET_TOOLS};name=net-tools;nobranch=1;destsuffix=git/tools/net-tools \
+    ${SRC_URI_ZEPHYR_NRF_HW_MODELS};name=nrf_hw_models;nobranch=1;destsuffix=git/modules/bsim_hw_models/nrf_hw_models \
+    ${SRC_URI_ZEPHYR_OPEN_AMP};name=open-amp;nobranch=1;destsuffix=git/modules/lib/open-amp \
+    ${SRC_URI_ZEPHYR_OPENTHREAD};name=openthread;nobranch=1;destsuffix=git/modules/lib/openthread \
+    ${SRC_URI_ZEPHYR_PERCEPIO};name=percepio;nobranch=1;destsuffix=git/modules/debug/percepio \
+    ${SRC_URI_ZEPHYR_PICOLIBC};name=picolibc;nobranch=1;destsuffix=git/modules/lib/picolibc \
+    ${SRC_URI_ZEPHYR_SEGGER};name=segger;nobranch=1;destsuffix=git/modules/debug/segger \
+    ${SRC_URI_ZEPHYR_TINYCRYPT};name=tinycrypt;nobranch=1;destsuffix=git/modules/crypto/tinycrypt \
+    ${SRC_URI_ZEPHYR_TRUSTED_FIRMWARE_M};name=trusted-firmware-m;nobranch=1;destsuffix=git/modules/tee/tf-m/trusted-firmware-m \
+    ${SRC_URI_ZEPHYR_TRUSTED_FIRMWARE_A};name=trusted-firmware-a;nobranch=1;destsuffix=git/modules/tee/tf-a/trusted-firmware-a \
+    ${SRC_URI_ZEPHYR_UOSCORE_UEDHOC};name=uoscore-uedhoc;nobranch=1;destsuffix=git/modules/lib/uoscore-uedhoc \
+    ${SRC_URI_ZEPHYR_ZCBOR};name=zcbor;nobranch=1;destsuffix=git/modules/lib/zcbor \
+    ${SRC_URI_PATCHES} \
+"
+
+ZEPHYR_MODULES = "\
+${S}/modules/lib/acpica\;\
+${S}/tools/bsim\;\
+${S}/tools/bsim/components\;\
+${S}/tools/bsim/components/ext_2G4_libPhyComv1\;\
+${S}/tools/bsim/components/ext_2G4_phy_v1\;\
+${S}/tools/bsim/components/ext_2G4_channel_NtNcable\;\
+${S}/tools/bsim/components/ext_2G4_channel_multiatt\;\
+${S}/tools/bsim/components/ext_2G4_modem_magic\;\
+${S}/tools/bsim/components/ext_2G4_modem_BLE_simple\;\
+${S}/tools/bsim/components/ext_2G4_device_burst_interferer\;\
+${S}/tools/bsim/components/ext_2G4_device_WLAN_actmod\;\
+${S}/tools/bsim/components/ext_2G4_device_playback\;\
+${S}/tools/bsim/components/ext_libCryptov1\;\
+${S}/modules/hal/cmsis\;\
+${S}/modules/lib/cmsis-dsp\;\
+${S}/modules/lib/cmsis-nn\;\
+${S}/tools/edtt\;\
+${S}/modules/fs/fatfs\;\
+${S}/modules/hal/adi\;\
+${S}/modules/hal/altera\;\
+${S}/modules/hal/ambiq\;\
+${S}/modules/hal/atmel\;\
+${S}/modules/hal/espressif\;\
+${S}/modules/hal/ethos_u\;\
+${S}/modules/hal/gigadevice\;\
+${S}/modules/hal/infineon\;\
+${S}/modules/hal/intel\;\
+${S}/modules/hal/microchip\;\
+${S}/modules/hal/nordic\;\
+${S}/modules/hal/nuvoton\;\
+${S}/modules/hal/nxp\;\
+${S}/modules/hal/openisa\;\
+${S}/modules/hal/quicklogic\;\
+${S}/modules/hal/renesas\;\
+${S}/modules/hal/rpi_pico\;\
+${S}/modules/hal/silabs\;\
+${S}/modules/hal/st\;\
+${S}/modules/hal/stm32\;\
+${S}/modules/hal/telink\;\
+${S}/modules/hal/ti\;\
+${S}/modules/hal/wurthelektronik\;\
+${S}/modules/hal/xtensa\;\
+${S}/modules/lib/hostap\;\
+${S}/modules/hal/libmetal\;\
+${S}/modules/lib/liblc3\;\
+${S}/modules/fs/littlefs\;\
+${S}/modules/lib/loramac-node\;\
+${S}/modules/lib/gui/lvgl\;\
+${S}/modules/crypto/mbedtls\;\
+${S}/bootloader/mcuboot\;\
+${S}/modules/debug/mipi-sys-t\;\
+${S}/tools/net-tools\;\
+${S}/modules/bsim_hw_models/nrf_hw_models\;\
+${S}/modules/lib/open-amp\;\
+${S}/modules/lib/openthread\;\
+${S}/modules/debug/percepio\;\
+${S}/modules/lib/picolibc\;\
+${S}/modules/debug/segger\;\
+${S}/modules/crypto/tinycrypt\;\
+${S}/modules/tee/tf-m/trusted-firmware-m\;\
+${S}/modules/tee/tf-a/trusted-firmware-a\;\
+${S}/modules/lib/uoscore-uedhoc\;\
+${S}/modules/lib/zcbor\;\
+"
+
+ZEPHYR_BRANCH = "v3.7-branch"
+PV = "3.7.0+git${SRCPV}"
-- 
2.34.1



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

* [meta-zephyr][scarthgap][PATCH v5 8/12] meta-zephyr: Update README files
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (6 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 7/12] zephyr-kernel: Add Zephyr LTS3.7.0 support Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 9/12] zephyr-kernel: Use relative path Sandeep Gundlupet Raju
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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 d3694a6..16951b0 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] 20+ messages in thread

* [meta-zephyr][scarthgap][PATCH v5 9/12] zephyr-kernel: Use relative path
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (7 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 8/12] meta-zephyr: Update README files Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass Sandeep Gundlupet Raju
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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 93d36b1..ca728b9 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 ba70a29..5191b9a 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"
 ZEPHYR_MAKE_BIN_OUTPUT = "zephyr.bin"
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] 20+ messages in thread

* [meta-zephyr][scarthgap][PATCH v5 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (8 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 9/12] zephyr-kernel: Use relative path Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 11/12] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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, 29 insertions(+), 20 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..a52ffba 100644
--- a/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb
+++ b/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb
@@ -2,11 +2,11 @@
 # 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
+#require recipes-kernel/zephyr-kernel/zephyr-sample.inc
 
 SRC_URI:append = " file://0001-zephyr-Export-an-OpenEmbedded-machine-config.patch"
 
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 a635da2..3878937 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 5e51c23..2932b53 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 = "zephyr_openamp_rsc_table.elf"
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] 20+ messages in thread

* [meta-zephyr][scarthgap][PATCH v5 11/12] zephyr-kernel: Add rpmsg multi services recipe
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (9 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 12/12] zephyr-kernel-common: Add Board extension support Sandeep Gundlupet Raju
  2025-08-13  3:05 ` [meta-zephyr] RE: [scarthgap][PATCH v5 0/12] Lee, Chee Yang
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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] 20+ messages in thread

* [meta-zephyr][scarthgap][PATCH v5 12/12] zephyr-kernel-common: Add Board extension support
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (10 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 11/12] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
@ 2025-08-12 17:41 ` Sandeep Gundlupet Raju
  2025-08-13  3:05 ` [meta-zephyr] RE: [scarthgap][PATCH v5 0/12] Lee, Chee Yang
  12 siblings, 0 replies; 20+ messages in thread
From: Sandeep Gundlupet Raju @ 2025-08-12 17:41 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 5191b9a..579fd6c 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
@@ -18,6 +18,11 @@ EXTRA_OECMAKE = "\
     -DZEPHYR_BASE=${ZEPHYR_BASE} \
     -DBOARD=${BOARD} \
     -DARCH=${ARCH} \
+    -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] 20+ messages in thread

* [meta-zephyr] RE: [scarthgap][PATCH v5 0/12]
  2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
                   ` (11 preceding siblings ...)
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 12/12] zephyr-kernel-common: Add Board extension support Sandeep Gundlupet Raju
@ 2025-08-13  3:05 ` Lee, Chee Yang
  2025-08-13 17:40   ` [yocto-patches] " Gundlupet Raju, Sandeep
  12 siblings, 1 reply; 20+ messages in thread
From: Lee, Chee Yang @ 2025-08-13  3:05 UTC (permalink / raw)
  To: Sandeep Gundlupet Raju, yocto-patches@lists.yoctoproject.org

Hi Sandeep

Thank you for the patches.
I think some of the refactoring patches ( 5, 9, 10 ) and patch 11 which add new recipe should apply to master first before backport to stable branch.
There is conflict when applying the same patches to master branch, would you be sending updated patch for master branch ? 

Chee Yang

> -----Original Message-----
> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> Sent: Wednesday, 13 August, 2025 1:42 AM
> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
> <chee.yang.lee@intel.com>
> Subject: [scarthgap][PATCH v5 0/12]
> 
> Changes in v5:
>    - Fix typo in zephyr-openamp-rpmsg-multi-srv recipe.
>    - Merge below commits into single commit.
>      [meta-zephyr][scarthgap][PATCH v4 3/13] zephyr-kernel-src: Remove
> PREFERRED_VERSION_zephyr-kernel
>      [meta-zephyr][scarthgap][PATCH v4 4/13] layer: Set PREFERRED_VERSION
> for kernel and sdk
> 
> Changes in v4:
>    -  Fix below patch commit message typo.
>       zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel
> 
> Changes in v3:
>    - Add Board extension support variables.
> 
> Changes in v2:
>    - Move classes to match bbclass scope functionality.
>    - Use relative path to follow best practice.
>    - Convert zephyr-sample inc file to bbclass so that it can
>      be inherited from custom layers to support out-of-tree
>      zephyr applications.
> 
> Description of change:
> 1. Fix runqemu errors for qemu-cortex-a9 machine.
> 2. Add new inc file and update to 0.16.9 version for scathgap 3. Remove
> PREFERRED_VERSION_zephyr-kernel from zephyr-kernel-src and
>    move to layer.conf
> 4. Add image artifacts to output files and use these files for qemuimage.
> 5. Add Zephyr LTS3.7.0 support for scarthgap release.
> 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
> 
> CI Build Information:
> MACHINE:
> BOARD:
> BOARD_VARIANT:
> IMAGE:
> PLNX_BUILD:
> 
> Summary of changes:
> 
> meta-zephyr (scarthgap):
> 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-kernel: Add Zephyr LTS3.7.0 support 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 and update to 0.16.9 version Sandeep
> Gundlupet Raju
>     qemu-cortex-a9: Fix runqemu errors
> 
>  b/README.md                                                                                                               |  163
> +++--
>  b/meta-zephyr-bsp/README.md
> |    5
>  b/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
> |    1
>  b/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb
> |    4
>  b/meta-zephyr-core/README.md
> |    6
>  b/meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass
> |    6
>  b/meta-zephyr-core/classes-recipe/zephyr-sample.bbclass
> |   10
>  b/meta-zephyr-core/classes-recipe/zephyrtest.bbclass
> |    1
>  b/meta-zephyr-core/conf/layer.conf
> |    4
>  b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
> |    3
>  b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb
> |    4
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.7-x86-fix-efi-
> binary-generation-issue-in-cross-compila.patch |  106 +++
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
> |   28 -
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.7.0.inc
> |  274 ++++++++++
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb
> |    4
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-
> multi-srv.bb                                         |   23
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-
> table.bb                                               |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-
> client.bb                                          |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb
> |    2
>  b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-
> client.bb                                                |    2
>  meta-zephyr-bsp/README.txt
> |    1
>  meta-zephyr-core/README.txt
> |    1
>  meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
> |    4
>  meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> |    5
>  meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc
> |    1
>  41 files changed, 599 insertions(+), 95 deletions(-)
> ---


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

* RE: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files
  2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
@ 2025-08-13  3:13   ` Lee, Chee Yang
  2025-08-14  1:02     ` Gundlupet Raju, Sandeep
  0 siblings, 1 reply; 20+ messages in thread
From: Lee, Chee Yang @ 2025-08-13  3:13 UTC (permalink / raw)
  To: yocto-patches@lists.yoctoproject.org



> -----Original Message-----
> From: yocto-patches@lists.yoctoproject.org <yocto-
> patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju via
> lists.yoctoproject.org
> Sent: Wednesday, 13 August, 2025 1:42 AM
> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
> <chee.yang.lee@intel.com>
> Subject: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-
> image: Add image artifacts to output files
> 
> 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            | 28 +++++++++++++++----
>  1 file changed, 23 insertions(+), 5 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 d6ee21f..93d36b1 100644
> --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
> @@ -1,29 +1,47 @@
>  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
> 
> -    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${D}/firmware/${PN}.elf

Since this is for stable branch, I think we should keep the elf/bin/efi file with old naming. We can deploy both ${PN}.elf and ${ZEPHYR_IMAGE_BASE_NAME}.elf,  ${PN}.elf can be copy of/soft link to latest  ${ZEPHYR_IMAGE_BASE_NAME}.elf, same for .bin and .efi.





> +    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.elf
> 
>      if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
>      then
> -      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> ${D}/firmware/${PN}.bin
> +      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.bin
>      fi
> 
>      if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
>      then
> -      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> ${D}/firmware/${PN}.efi
> +      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.efi
>      fi
>  }
> +
>  FILES:${PN} = "/firmware"
>  INSANE_SKIP += "ldflags buildpaths"
>  SYSROOT_DIRS += "/firmware"
> 
>  do_deploy() {
> -    cp ${D}/firmware/${PN}.* ${DEPLOYDIR}/
> +    cp ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.elf
> +    ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.elf
> + ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.elf
> +
> +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
> +    then
> +       cp ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.bin
> +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.bin
> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.bin
> +    fi
> +
> +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
> +    then
> +       cp ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.efi
> +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.efi
> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.efi
> +    fi
> +
>  }
>  addtask deploy after do_install
> --
> 2.34.1
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1966): https://lists.yoctoproject.org/g/yocto-
> patches/message/1966
> Mute This Topic: https://lists.yoctoproject.org/mt/114670142/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] 20+ messages in thread

* Re: [yocto-patches] [meta-zephyr] RE: [scarthgap][PATCH v5 0/12]
  2025-08-13  3:05 ` [meta-zephyr] RE: [scarthgap][PATCH v5 0/12] Lee, Chee Yang
@ 2025-08-13 17:40   ` Gundlupet Raju, Sandeep
  0 siblings, 0 replies; 20+ messages in thread
From: Gundlupet Raju, Sandeep @ 2025-08-13 17:40 UTC (permalink / raw)
  To: yocto-patches


On 8/12/2025 9:05 PM, Lee Chee Yang via lists.yoctoproject.org wrote:
> Hi Sandeep
>
> Thank you for the patches.
> I think some of the refactoring patches ( 5, 9, 10 ) and patch 11 which add new recipe should apply to master first before backport to stable branch.
> There is conflict when applying the same patches to master branch, would you be sending updated patch for master branch ?
[Sandeep]: Yes I can send the patches for master and then we can 
backport to scarthgap.
>
> Chee Yang
>
>> -----Original Message-----
>> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
>> Sent: Wednesday, 13 August, 2025 1:42 AM
>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>> <chee.yang.lee@intel.com>
>> Subject: [scarthgap][PATCH v5 0/12]
>>
>> Changes in v5:
>>     - Fix typo in zephyr-openamp-rpmsg-multi-srv recipe.
>>     - Merge below commits into single commit.
>>       [meta-zephyr][scarthgap][PATCH v4 3/13] zephyr-kernel-src: Remove
>> PREFERRED_VERSION_zephyr-kernel
>>       [meta-zephyr][scarthgap][PATCH v4 4/13] layer: Set PREFERRED_VERSION
>> for kernel and sdk
>>
>> Changes in v4:
>>     -  Fix below patch commit message typo.
>>        zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel
>>
>> Changes in v3:
>>     - Add Board extension support variables.
>>
>> Changes in v2:
>>     - Move classes to match bbclass scope functionality.
>>     - Use relative path to follow best practice.
>>     - Convert zephyr-sample inc file to bbclass so that it can
>>       be inherited from custom layers to support out-of-tree
>>       zephyr applications.
>>
>> Description of change:
>> 1. Fix runqemu errors for qemu-cortex-a9 machine.
>> 2. Add new inc file and update to 0.16.9 version for scathgap 3. Remove
>> PREFERRED_VERSION_zephyr-kernel from zephyr-kernel-src and
>>     move to layer.conf
>> 4. Add image artifacts to output files and use these files for qemuimage.
>> 5. Add Zephyr LTS3.7.0 support for scarthgap release.
>> 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
>>
>> CI Build Information:
>> MACHINE:
>> BOARD:
>> BOARD_VARIANT:
>> IMAGE:
>> PLNX_BUILD:
>>
>> Summary of changes:
>>
>> meta-zephyr (scarthgap):
>> 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-kernel: Add Zephyr LTS3.7.0 support 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 and update to 0.16.9 version Sandeep
>> Gundlupet Raju
>>      qemu-cortex-a9: Fix runqemu errors
>>
>>   b/README.md                                                                                                               |  163
>> +++--
>>   b/meta-zephyr-bsp/README.md
>> |    5
>>   b/meta-zephyr-bsp/conf/machine/qemu-cortex-a9.conf
>> |    1
>>   b/meta-zephyr-bsp/recipes-meta/meta/generate-zephyr-machines.bb
>> |    4
>>   b/meta-zephyr-core/README.md
>> |    6
>>   b/meta-zephyr-core/classes-recipe/zephyr-qemuboot.bbclass
>> |    6
>>   b/meta-zephyr-core/classes-recipe/zephyr-sample.bbclass
>> |   10
>>   b/meta-zephyr-core/classes-recipe/zephyrtest.bbclass
>> |    1
>>   b/meta-zephyr-core/conf/layer.conf
>> |    4
>>   b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk.inc
>> |    3
>>   b/meta-zephyr-core/recipes-devtools/zephyr-sdk/zephyr-sdk_0.16.9.bb
>> |    4
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.7-x86-fix-efi-
>> binary-generation-issue-in-cross-compila.patch |  106 +++
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-blinky.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-client.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-coap-server.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-http-client.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>> |   28 -
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.7.0.inc
>> |  274 ++++++++++
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test-all.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-test.bb
>> |    4
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-lvgl.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-
>> multi-srv.bb                                         |   23
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-
>> table.bb                                               |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-
>> client.bb                                          |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-peripheral-hr.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb
>> |    2
>>   b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-websocket-
>> client.bb                                                |    2
>>   meta-zephyr-bsp/README.txt
>> |    1
>>   meta-zephyr-core/README.txt
>> |    1
>>   meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>> |    4
>>   meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
>> |    5
>>   meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-sample.inc
>> |    1
>>   41 files changed, 599 insertions(+), 95 deletions(-)
>> ---
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1974): https://lists.yoctoproject.org/g/yocto-patches/message/1974
> Mute This Topic: https://lists.yoctoproject.org/mt/114678017/3619217
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/14411013/3619217/657730681/xyzzy [sandeep.gundlupet-raju@amd.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>


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

* RE: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files
  2025-08-13  3:13   ` [yocto-patches] " Lee, Chee Yang
@ 2025-08-14  1:02     ` Gundlupet Raju, Sandeep
  2025-08-16  2:32       ` Gundlupet Raju, Sandeep
  0 siblings, 1 reply; 20+ messages in thread
From: Gundlupet Raju, Sandeep @ 2025-08-14  1:02 UTC (permalink / raw)
  To: yocto-patches@lists.yoctoproject.org

[AMD Official Use Only - AMD Internal Distribution Only]

Thanks,
Sandeep
> -----Original Message-----
> From: yocto-patches@lists.yoctoproject.org <yocto-
> patches@lists.yoctoproject.org> On Behalf Of Lee Chee Yang via
> lists.yoctoproject.org
> Sent: Tuesday, August 12, 2025 9:13 PM
> To: yocto-patches@lists.yoctoproject.org
> Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-
> image: Add image artifacts to output files
>
>
>
> > -----Original Message-----
> > From: yocto-patches@lists.yoctoproject.org <yocto-
> > patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju
> > via lists.yoctoproject.org
> > Sent: Wednesday, 13 August, 2025 1:42 AM
> > To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
> > <chee.yang.lee@intel.com>
> > Subject: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12]
> > zephyr-
> > image: Add image artifacts to output files
> >
> > 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            | 28 +++++++++++++++----
> >  1 file changed, 23 insertions(+), 5 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 d6ee21f..93d36b1 100644
> > --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
> > +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
> > @@ -1,29 +1,47 @@
> >  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
> >
> > -    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
> ${D}/firmware/${PN}.elf
>
> Since this is for stable branch, I think we should keep the elf/bin/efi file with
> old naming. We can deploy both ${PN}.elf and
> ${ZEPHYR_IMAGE_BASE_NAME}.elf,  ${PN}.elf can be copy of/soft link to
> latest  ${ZEPHYR_IMAGE_BASE_NAME}.elf, same for .bin and .efi.
>
[Sandeep] : Agreed this is for stable branch but to me this seems to be a bug. Deploying ${PN}.elf is not a YP best practice. What do you think?
>
>
>
>
> > +    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
> > + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.elf
> >
> >      if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
> >      then
> > -      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> > ${D}/firmware/${PN}.bin
> > +      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> > + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.bin
> >      fi
> >
> >      if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
> >      then
> > -      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> > ${D}/firmware/${PN}.efi
> > +      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> > + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.efi
> >      fi
> >  }
> > +
> >  FILES:${PN} = "/firmware"
> >  INSANE_SKIP += "ldflags buildpaths"
> >  SYSROOT_DIRS += "/firmware"
> >
> >  do_deploy() {
> > -    cp ${D}/firmware/${PN}.* ${DEPLOYDIR}/
> > +    cp ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
> > ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.elf
> > +    ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.elf
> > + ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.elf
> > +
> > +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
> > +    then
> > +       cp ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> > ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.bin
> > +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.bin
> > ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.bin
> > +    fi
> > +
> > +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
> > +    then
> > +       cp ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> > ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.efi
> > +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.efi
> > ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.efi
> > +    fi
> > +
> >  }
> >  addtask deploy after do_install
> > --
> > 2.34.1
> >
> >
> >
> >
> >
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1975): https://lists.yoctoproject.org/g/yocto-
> patches/message/1975
> Mute This Topic: https://lists.yoctoproject.org/mt/114670142/3619217
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-
> patches/leave/14411013/3619217/657730681/xyzzy [sandeep.gundlupet-
> raju@amd.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>



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

* Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files
  2025-08-14  1:02     ` Gundlupet Raju, Sandeep
@ 2025-08-16  2:32       ` Gundlupet Raju, Sandeep
  2025-08-18  3:51         ` Lee, Chee Yang
  0 siblings, 1 reply; 20+ messages in thread
From: Gundlupet Raju, Sandeep @ 2025-08-16  2:32 UTC (permalink / raw)
  To: yocto-patches, Lee Chee Yang


On 8/13/2025 7:02 PM, Sandeep Gundlupet Raju via lists.yoctoproject.org 
wrote:
> [AMD Official Use Only - AMD Internal Distribution Only]
>
> Thanks,
> Sandeep
>> -----Original Message-----
>> From: yocto-patches@lists.yoctoproject.org <yocto-
>> patches@lists.yoctoproject.org> On Behalf Of Lee Chee Yang via
>> lists.yoctoproject.org
>> Sent: Tuesday, August 12, 2025 9:13 PM
>> To: yocto-patches@lists.yoctoproject.org
>> Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-
>> image: Add image artifacts to output files
>>
>>
>>
>>> -----Original Message-----
>>> From: yocto-patches@lists.yoctoproject.org <yocto-
>>> patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju
>>> via lists.yoctoproject.org
>>> Sent: Wednesday, 13 August, 2025 1:42 AM
>>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>>> <chee.yang.lee@intel.com>
>>> Subject: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12]
>>> zephyr-
>>> image: Add image artifacts to output files
>>>
>>> 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            | 28 +++++++++++++++----
>>>   1 file changed, 23 insertions(+), 5 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 d6ee21f..93d36b1 100644
>>> --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>>> @@ -1,29 +1,47 @@
>>>   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
>>>
>>> -    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>> ${D}/firmware/${PN}.elf
>>
>> Since this is for stable branch, I think we should keep the elf/bin/efi file with
>> old naming. We can deploy both ${PN}.elf and
>> ${ZEPHYR_IMAGE_BASE_NAME}.elf,  ${PN}.elf can be copy of/soft link to
>> latest  ${ZEPHYR_IMAGE_BASE_NAME}.elf, same for .bin and .efi.
>>
> [Sandeep] : Agreed this is for stable branch but to me this seems to be a bug. Deploying ${PN}.elf is not a YP best practice. What do you think?
[Sandeep]: Chee Yang, ping on above question.
>>
>>
>>
>>> +    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.elf
>>>
>>>       if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
>>>       then
>>> -      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>> ${D}/firmware/${PN}.bin
>>> +      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.bin
>>>       fi
>>>
>>>       if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
>>>       then
>>> -      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>> ${D}/firmware/${PN}.efi
>>> +      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.efi
>>>       fi
>>>   }
>>> +
>>>   FILES:${PN} = "/firmware"
>>>   INSANE_SKIP += "ldflags buildpaths"
>>>   SYSROOT_DIRS += "/firmware"
>>>
>>>   do_deploy() {
>>> -    cp ${D}/firmware/${PN}.* ${DEPLOYDIR}/
>>> +    cp ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.elf
>>> +    ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.elf
>>> + ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.elf
>>> +
>>> +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
>>> +    then
>>> +       cp ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.bin
>>> +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.bin
>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.bin
>>> +    fi
>>> +
>>> +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
>>> +    then
>>> +       cp ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.efi
>>> +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.efi
>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.efi
>>> +    fi
>>> +
>>>   }
>>>   addtask deploy after do_install
>>> --
>>> 2.34.1
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1986): https://lists.yoctoproject.org/g/yocto-patches/message/1986
> Mute This Topic: https://lists.yoctoproject.org/mt/114670142/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] 20+ messages in thread

* RE: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files
  2025-08-16  2:32       ` Gundlupet Raju, Sandeep
@ 2025-08-18  3:51         ` Lee, Chee Yang
  2025-08-18 14:32           ` Gundlupet Raju, Sandeep
  0 siblings, 1 reply; 20+ messages in thread
From: Lee, Chee Yang @ 2025-08-18  3:51 UTC (permalink / raw)
  To: Gundlupet Raju, Sandeep, yocto-patches@lists.yoctoproject.org



> -----Original Message-----
> From: Gundlupet Raju, Sandeep <sandeep.gundlupet-raju@amd.com>
> Sent: Saturday, 16 August, 2025 10:32 AM
> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
> <chee.yang.lee@intel.com>
> Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-
> image: Add image artifacts to output files
> 
> 
> On 8/13/2025 7:02 PM, Sandeep Gundlupet Raju via lists.yoctoproject.org
> wrote:
> > [AMD Official Use Only - AMD Internal Distribution Only]
> >
> > Thanks,
> > Sandeep
> >> -----Original Message-----
> >> From: yocto-patches@lists.yoctoproject.org <yocto-
> >> patches@lists.yoctoproject.org> On Behalf Of Lee Chee Yang via
> >> lists.yoctoproject.org
> >> Sent: Tuesday, August 12, 2025 9:13 PM
> >> To: yocto-patches@lists.yoctoproject.org
> >> Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12]
> >> zephyr-
> >> image: Add image artifacts to output files
> >>
> >>
> >>
> >>> -----Original Message-----
> >>> From: yocto-patches@lists.yoctoproject.org <yocto-
> >>> patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju
> >>> via lists.yoctoproject.org
> >>> Sent: Wednesday, 13 August, 2025 1:42 AM
> >>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
> >>> <chee.yang.lee@intel.com>
> >>> Subject: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12]
> >>> zephyr-
> >>> image: Add image artifacts to output files
> >>>
> >>> 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            | 28 +++++++++++++++----
> >>>   1 file changed, 23 insertions(+), 5 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 d6ee21f..93d36b1 100644
> >>> --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
> >>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
> >>> @@ -1,29 +1,47 @@
> >>>   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
> >>>
> >>> -    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
> >> ${D}/firmware/${PN}.elf
> >>
> >> Since this is for stable branch, I think we should keep the
> >> elf/bin/efi file with old naming. We can deploy both ${PN}.elf and
> >> ${ZEPHYR_IMAGE_BASE_NAME}.elf,  ${PN}.elf can be copy of/soft link to
> >> latest  ${ZEPHYR_IMAGE_BASE_NAME}.elf, same for .bin and .efi.
> >>
> > [Sandeep] : Agreed this is for stable branch but to me this seems to be a bug.
> Deploying ${PN}.elf is not a YP best practice. What do you think?
> [Sandeep]: Chee Yang, ping on above question.[] 

This has been default behaviour for long time, I think some existing build might have expected latest build deploy with ${PN}.elf. Agree that we can drop ${PN}.elf for master.


> >>
> >>
> >>
> >>> +    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
> >>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.elf
> >>>
> >>>       if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
> >>>       then
> >>> -      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> >>> ${D}/firmware/${PN}.bin
> >>> +      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> >>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.bin
> >>>       fi
> >>>
> >>>       if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
> >>>       then
> >>> -      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> >>> ${D}/firmware/${PN}.efi
> >>> +      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> >>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.efi
> >>>       fi
> >>>   }
> >>> +
> >>>   FILES:${PN} = "/firmware"
> >>>   INSANE_SKIP += "ldflags buildpaths"
> >>>   SYSROOT_DIRS += "/firmware"
> >>>
> >>>   do_deploy() {
> >>> -    cp ${D}/firmware/${PN}.* ${DEPLOYDIR}/
> >>> +    cp ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
> >>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.elf
> >>> +    ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.elf
> >>> + ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.elf
> >>> +
> >>> +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
> >>> +    then
> >>> +       cp ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
> >>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.bin
> >>> +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.bin
> >>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.bin
> >>> +    fi
> >>> +
> >>> +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
> >>> +    then
> >>> +       cp ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
> >>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.efi
> >>> +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.efi
> >>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.efi
> >>> +    fi
> >>> +
> >>>   }
> >>>   addtask deploy after do_install
> >>> --
> >>> 2.34.1
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >>
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#1986):
> > https://lists.yoctoproject.org/g/yocto-patches/message/1986
> > Mute This Topic: https://lists.yoctoproject.org/mt/114670142/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] 20+ messages in thread

* Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files
  2025-08-18  3:51         ` Lee, Chee Yang
@ 2025-08-18 14:32           ` Gundlupet Raju, Sandeep
  0 siblings, 0 replies; 20+ messages in thread
From: Gundlupet Raju, Sandeep @ 2025-08-18 14:32 UTC (permalink / raw)
  To: yocto-patches


On 8/17/2025 9:51 PM, Lee Chee Yang via lists.yoctoproject.org wrote:
>
>> -----Original Message-----
>> From: Gundlupet Raju, Sandeep <sandeep.gundlupet-raju@amd.com>
>> Sent: Saturday, 16 August, 2025 10:32 AM
>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>> <chee.yang.lee@intel.com>
>> Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-
>> image: Add image artifacts to output files
>>
>>
>> On 8/13/2025 7:02 PM, Sandeep Gundlupet Raju via lists.yoctoproject.org
>> wrote:
>>> [AMD Official Use Only - AMD Internal Distribution Only]
>>>
>>> Thanks,
>>> Sandeep
>>>> -----Original Message-----
>>>> From: yocto-patches@lists.yoctoproject.org <yocto-
>>>> patches@lists.yoctoproject.org> On Behalf Of Lee Chee Yang via
>>>> lists.yoctoproject.org
>>>> Sent: Tuesday, August 12, 2025 9:13 PM
>>>> To: yocto-patches@lists.yoctoproject.org
>>>> Subject: Re: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12]
>>>> zephyr-
>>>> image: Add image artifacts to output files
>>>>
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: yocto-patches@lists.yoctoproject.org <yocto-
>>>>> patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju
>>>>> via lists.yoctoproject.org
>>>>> Sent: Wednesday, 13 August, 2025 1:42 AM
>>>>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>>>>> <chee.yang.lee@intel.com>
>>>>> Subject: [yocto-patches] [meta-zephyr][scarthgap][PATCH v5 4/12]
>>>>> zephyr-
>>>>> image: Add image artifacts to output files
>>>>>
>>>>> 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            | 28 +++++++++++++++----
>>>>>    1 file changed, 23 insertions(+), 5 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 d6ee21f..93d36b1 100644
>>>>> --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>>>>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
>>>>> @@ -1,29 +1,47 @@
>>>>>    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
>>>>>
>>>>> -    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>>>> ${D}/firmware/${PN}.elf
>>>>
>>>> Since this is for stable branch, I think we should keep the
>>>> elf/bin/efi file with old naming. We can deploy both ${PN}.elf and
>>>> ${ZEPHYR_IMAGE_BASE_NAME}.elf,  ${PN}.elf can be copy of/soft link to
>>>> latest  ${ZEPHYR_IMAGE_BASE_NAME}.elf, same for .bin and .efi.
>>>>
>>> [Sandeep] : Agreed this is for stable branch but to me this seems to be a bug.
>> Deploying ${PN}.elf is not a YP best practice. What do you think?
>> [Sandeep]: Chee Yang, ping on above question.[]
> This has been default behaviour for long time, I think some existing build might have expected latest build deploy with ${PN}.elf. Agree that we can drop ${PN}.elf for master.
[Sandeep]: Ok sounds good I will put it back.
>
>
>>>>
>>>>
>>>>> +    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>>>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.elf
>>>>>
>>>>>        if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
>>>>>        then
>>>>> -      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>>>> ${D}/firmware/${PN}.bin
>>>>> +      install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.bin
>>>>>        fi
>>>>>
>>>>>        if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
>>>>>        then
>>>>> -      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>>>> ${D}/firmware/${PN}.efi
>>>>> +      install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>>>> + ${D}/firmware/${ZEPHYR_IMAGE_BASE_NAME}.efi
>>>>>        fi
>>>>>    }
>>>>> +
>>>>>    FILES:${PN} = "/firmware"
>>>>>    INSANE_SKIP += "ldflags buildpaths"
>>>>>    SYSROOT_DIRS += "/firmware"
>>>>>
>>>>>    do_deploy() {
>>>>> -    cp ${D}/firmware/${PN}.* ${DEPLOYDIR}/
>>>>> +    cp ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.elf
>>>>> +    ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.elf
>>>>> + ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.elf
>>>>> +
>>>>> +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
>>>>> +    then
>>>>> +       cp ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT}
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.bin
>>>>> +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.bin
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.bin
>>>>> +    fi
>>>>> +
>>>>> +    if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
>>>>> +    then
>>>>> +       cp ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT}
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_BASE_NAME}.efi
>>>>> +       ln -sf ${ZEPHYR_IMAGE_BASE_NAME}.efi
>>>>> ${DEPLOYDIR}/${ZEPHYR_IMAGE_LINK_NAME}.efi
>>>>> +    fi
>>>>> +
>>>>>    }
>>>>>    addtask deploy after do_install
>>>>> --
>>>>> 2.34.1
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2032): https://lists.yoctoproject.org/g/yocto-patches/message/2032
> Mute This Topic: https://lists.yoctoproject.org/mt/114670142/3619217
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/14411013/3619217/657730681/xyzzy [sandeep.gundlupet-raju@amd.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>


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

end of thread, other threads:[~2025-08-18 14:32 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12 17:41 [scarthgap][PATCH v5 0/12] Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 1/12] qemu-cortex-a9: Fix runqemu errors Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 2/12] zephyr-sdk: Add new inc file and update to 0.16.9 version Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 3/12] zephyr-kernel-src: Remove PREFERRED_VERSION_zephyr-kernel Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 4/12] zephyr-image: Add image artifacts to output files Sandeep Gundlupet Raju
2025-08-13  3:13   ` [yocto-patches] " Lee, Chee Yang
2025-08-14  1:02     ` Gundlupet Raju, Sandeep
2025-08-16  2:32       ` Gundlupet Raju, Sandeep
2025-08-18  3:51         ` Lee, Chee Yang
2025-08-18 14:32           ` Gundlupet Raju, Sandeep
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 5/12] classes: Move classes to match bbclass scope functionality Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 6/12] zephyr-qemuboot: Use image artifact file in qemuimage Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 7/12] zephyr-kernel: Add Zephyr LTS3.7.0 support Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 8/12] meta-zephyr: Update README files Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 9/12] zephyr-kernel: Use relative path Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 10/12] classes-recipe: Convert zephyr-sample inc file to bbclass Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 11/12] zephyr-kernel: Add rpmsg multi services recipe Sandeep Gundlupet Raju
2025-08-12 17:41 ` [meta-zephyr][scarthgap][PATCH v5 12/12] zephyr-kernel-common: Add Board extension support Sandeep Gundlupet Raju
2025-08-13  3:05 ` [meta-zephyr] RE: [scarthgap][PATCH v5 0/12] Lee, Chee Yang
2025-08-13 17:40   ` [yocto-patches] " Gundlupet Raju, Sandeep

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).