diff mbox series

[meta-zephyr,scarthgap,v6,10/11] zephyr-kernel: Add rpmsg multi services recipe

Message ID 20250818220304.2300436-11-sandeep.gundlupet-raju@amd.com
State New
Headers show
Series Update for scarthgap release | expand

Commit Message

Gundlupet Raju, Sandeep Aug. 18, 2025, 10:03 p.m. UTC
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

Comments

Lee, Chee Yang Aug. 20, 2025, 8:02 a.m. UTC | #1
I got this error while building the recipe

| /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/open-amp-sys-ref/examples/zephyr/rpmsg_multi_services/src/main_remote.c:26:2: error: #error "Sample requires definition of shared memory for rpmsg"
|    26 | #error "Sample requires definition of shared memory for rpmsg"
|       |  ^~~~~
| In file included from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/toolchain/gcc.h:98,
|                  from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/toolchain.h:50,
|                  from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/kernel_includes.h:23,
|                  from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/kernel.h:17,
|                  from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/open-amp-sys-ref/examples/zephyr/rpmsg_multi_services/src/main_remote.c:7:


Build With 

meta                 = "scarthgap:6f7e929ea6ea557f107c8ccffea69a7d73439591"
meta-oe
meta-python          = "scarthgap:c29a18fa39ede952f3f6108ec007c1906e2d9a0d"


> -----Original Message-----
> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> Sent: Tuesday, 19 August, 2025 6:03 AM
> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
> <chee.yang.lee@intel.com>
> Subject: [meta-zephyr][scarthgap][PATCH v6 10/11] zephyr-kernel: Add
> rpmsg multi services recipe
> 
> Add zephyr-openamp-rpmsg-mulit-services recipe to build out of tree
> openamp-system-reference example applications.
> 
> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-
> raju@amd.com>
> ---
>  .../zephyr-openamp-rpmsg-multi-srv.bb         | 23 +++++++++++++++++++
>  1 file changed, 23 insertions(+)
>  create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
> openamp-rpmsg-multi-srv.bb
> 
> diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
> rpmsg-multi-srv.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
> openamp-rpmsg-multi-srv.bb
> new file mode 100644
> index 0000000..222ed2b
> --- /dev/null
> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
> rpmsg
> +++ -multi-srv.bb
> @@ -0,0 +1,23 @@
> +SUMMARY = "Open AMP rpmsg multi services"
> +DESCRIPTION = "Open AMP rpmsg multi services"
> +
> +inherit zephyr-sample
> +
> +SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF ?=
> "git://github.com/OpenAMP/openamp-system-reference;protocol=https"
> +
> +BRANCH ?= "v2024.05"
> +BRANCHARG = "${@['nobranch=1',
> 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
> +
> +SRC_URI:append = " \
> +    ${SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF};name=open-amp-sys-
> ref;${BRANCHARG};destsuffix=git/open-amp-sys-ref \
> +    "
> +
> +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
Gundlupet Raju, Sandeep Aug. 20, 2025, 1:47 p.m. UTC | #2
On 8/20/2025 2:02 AM, Lee, Chee Yang wrote:
> I got this error while building the recipe
>
> | /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/open-amp-sys-ref/examples/zephyr/rpmsg_multi_services/src/main_remote.c:26:2: error: #error "Sample requires definition of shared memory for rpmsg"
> |    26 | #error "Sample requires definition of shared memory for rpmsg"
> |       |  ^~~~~
> | In file included from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/toolchain/gcc.h:98,
> |                  from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/toolchain.h:50,
> |                  from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/kernel_includes.h:23,
> |                  from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/kernel.h:17,
> |                  from /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/open-amp-sys-ref/examples/zephyr/rpmsg_multi_services/src/main_remote.c:7:
>
>
> Build With
>
> meta                 = "scarthgap:6f7e929ea6ea557f107c8ccffea69a7d73439591"
> meta-oe
> meta-python          = "scarthgap:c29a18fa39ede952f3f6108ec007c1906e2d9a0d"
[Sandeep]: Looks like you are building for cortex-a processor. rpmsg 
works for only these platforms 
https://github.com/OpenAMP/openamp-system-reference/blob/main/examples/zephyr/rpmsg_multi_services/sample.yaml#L8-L10 
I used "MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv" 
to test this recipe.,this way we can avoid the issues. I can add a 
machine compatible for only these available machines. I will send a v2 
patch.
>
>> -----Original Message-----
>> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
>> Sent: Tuesday, 19 August, 2025 6:03 AM
>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>> <chee.yang.lee@intel.com>
>> Subject: [meta-zephyr][scarthgap][PATCH v6 10/11] zephyr-kernel: Add
>> rpmsg multi services recipe
>>
>> Add zephyr-openamp-rpmsg-mulit-services recipe to build out of tree
>> openamp-system-reference example applications.
>>
>> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-
>> raju@amd.com>
>> ---
>>   .../zephyr-openamp-rpmsg-multi-srv.bb         | 23 +++++++++++++++++++
>>   1 file changed, 23 insertions(+)
>>   create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>> openamp-rpmsg-multi-srv.bb
>>
>> diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>> rpmsg-multi-srv.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>> openamp-rpmsg-multi-srv.bb
>> new file mode 100644
>> index 0000000..222ed2b
>> --- /dev/null
>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>> rpmsg
>> +++ -multi-srv.bb
>> @@ -0,0 +1,23 @@
>> +SUMMARY = "Open AMP rpmsg multi services"
>> +DESCRIPTION = "Open AMP rpmsg multi services"
>> +
>> +inherit zephyr-sample
>> +
>> +SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF ?=
>> "git://github.com/OpenAMP/openamp-system-reference;protocol=https"
>> +
>> +BRANCH ?= "v2024.05"
>> +BRANCHARG = "${@['nobranch=1',
>> 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
>> +
>> +SRC_URI:append = " \
>> +    ${SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF};name=open-amp-sys-
>> ref;${BRANCHARG};destsuffix=git/open-amp-sys-ref \
>> +    "
>> +
>> +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
Gundlupet Raju, Sandeep Aug. 20, 2025, 6:58 p.m. UTC | #3
On 8/20/2025 7:47 AM, Sandeep Gundlupet Raju via lists.yoctoproject.org 
wrote:
>
> On 8/20/2025 2:02 AM, Lee, Chee Yang wrote:
>> I got this error while building the recipe
>>
>> | 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/open-amp-sys-ref/examples/zephyr/rpmsg_multi_services/src/main_remote.c:26:2: 
>> error: #error "Sample requires definition of shared memory for rpmsg"
>> |    26 | #error "Sample requires definition of shared memory for rpmsg"
>> |       |  ^~~~~
>> | In file included from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/toolchain/gcc.h:98,
>> |                  from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/toolchain.h:50,
>> |                  from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/kernel_includes.h:23,
>> |                  from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/zephyr/include/zephyr/kernel.h:17,
>> |                  from 
>> /data/scarthgap/poky/build-zephyr/tmp-newlib/work/cortexa9-vfp-yocto-eabi/zephyr-openamp-rpmsg-multi-srv/3.7.0+git/git/open-amp-sys-ref/examples/zephyr/rpmsg_multi_services/src/main_remote.c:7:
>>
>>
>> Build With
>>
>> meta                 = 
>> "scarthgap:6f7e929ea6ea557f107c8ccffea69a7d73439591"
>> meta-oe
>> meta-python          = 
>> "scarthgap:c29a18fa39ede952f3f6108ec007c1906e2d9a0d"
> [Sandeep]: Looks like you are building for cortex-a processor. rpmsg 
> works for only these platforms 
> https://github.com/OpenAMP/openamp-system-reference/blob/main/examples/zephyr/rpmsg_multi_services/sample.yaml#L8-L10 
> I used "MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv" 
> to test this recipe.,this way we can avoid the issues. I can add a 
> machine compatible for only these available machines. I will send a v2 
> patch.

[Sandeep]: Sent v2 patch here is the testing logs.

$ time MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv
Loading cache: 100% | | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% 
|#############################################################################################################################################################################| 
Time: 0:00:07
Parsing of 2495 .bb files complete (0 cached, 2495 parsed). 4348 
targets, 491 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-22.04"
TARGET_SYS           = "arm-yocto-eabi"
MACHINE              = "qemu-cortex-r5"
DISTRO               = "zephyr"
DISTRO_VERSION       = "1.0"
TUNE_FEATURES        = "armv7r vfpv3d16 cortexr5 idiv"
TARGET_FPU           = "softfp"
meta
meta-poky
meta-yocto-bsp       = "scarthgap:6f7e929ea6ea557f107c8ccffea69a7d73439591"
meta-oe
meta-python          = "scarthgap:c29a18fa39ede952f3f6108ec007c1906e2d9a0d"
meta-zephyr-core
meta-zephyr-bsp      = 
"scarthgap-dev:a6a77268ce663082b6b33644fa2ba8521ceee147"

Sstate summary: Wanted 427 Local 0 Mirrors 0 Missed 427 Current 0 (0% 
match, 0% 
complete)######################################################################################### 
| ETA:  0:00:00
Initialising tasks: 100% 
|##########################################################################################################################################################################| 
Time: 0:00:00
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 1314 tasks of which 0 didn't need to be 
rerun and all succeeded.

real    9m36.340s
user    0m3.668s
sys    0m1.022s
$ time MACHINE=stm32mp157c-dk2 bitbake zephyr-openamp-rpmsg-multi-srv
Loading cache: 100% | | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% 
|#############################################################################################################################################################################| 
Time: 0:00:05
Parsing of 2495 .bb files complete (0 cached, 2495 parsed). 4343 
targets, 490 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-yocto-eabi"
MACHINE              = "stm32mp157c-dk2"
DISTRO               = "zephyr"
DISTRO_VERSION       = "1.0"
TUNE_FEATURES        = "armv7em cortexm4"
TARGET_FPU           = "soft"
meta
meta-poky
meta-yocto-bsp       = "scarthgap:6f7e929ea6ea557f107c8ccffea69a7d73439591"
meta-oe
meta-python          = "scarthgap:c29a18fa39ede952f3f6108ec007c1906e2d9a0d"
meta-zephyr-core
meta-zephyr-bsp      = 
"scarthgap-dev:a6a77268ce663082b6b33644fa2ba8521ceee147"

Sstate summary: Wanted 11 Local 0 Mirrors 0 Missed 11 Current 308 (0% 
match, 96% 
complete)######################################################################################## 
| ETA:  0:00:00
Initialising tasks: 100% 
|##########################################################################################################################################################################| 
Time: 0:00:00
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 990 tasks of which 970 didn't need to be 
rerun and all succeeded.

real    0m51.588s
user    0m0.372s
sys    0m0.096s
$

>>
>>> -----Original Message-----
>>> From: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
>>> Sent: Tuesday, 19 August, 2025 6:03 AM
>>> To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang
>>> <chee.yang.lee@intel.com>
>>> Subject: [meta-zephyr][scarthgap][PATCH v6 10/11] zephyr-kernel: Add
>>> rpmsg multi services recipe
>>>
>>> Add zephyr-openamp-rpmsg-mulit-services recipe to build out of tree
>>> openamp-system-reference example applications.
>>>
>>> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-
>>> raju@amd.com>
>>> ---
>>>   .../zephyr-openamp-rpmsg-multi-srv.bb         | 23 
>>> +++++++++++++++++++
>>>   1 file changed, 23 insertions(+)
>>>   create mode 100644 
>>> meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>>> openamp-rpmsg-multi-srv.bb
>>>
>>> diff --git 
>>> a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>>> rpmsg-multi-srv.bb 
>>> b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
>>> openamp-rpmsg-multi-srv.bb
>>> new file mode 100644
>>> index 0000000..222ed2b
>>> --- /dev/null
>>> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-
>>> rpmsg
>>> +++ -multi-srv.bb
>>> @@ -0,0 +1,23 @@
>>> +SUMMARY = "Open AMP rpmsg multi services"
>>> +DESCRIPTION = "Open AMP rpmsg multi services"
>>> +
>>> +inherit zephyr-sample
>>> +
>>> +SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF ?=
>>> "git://github.com/OpenAMP/openamp-system-reference;protocol=https"
>>> +
>>> +BRANCH ?= "v2024.05"
>>> +BRANCHARG = "${@['nobranch=1',
>>> 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
>>> +
>>> +SRC_URI:append = " \
>>> +    ${SRC_URI_ZEPHYR_OPEN_AMP_SYS_REF};name=open-amp-sys-
>>> ref;${BRANCHARG};destsuffix=git/open-amp-sys-ref \
>>> +    "
>>> +
>>> +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
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2070): 
> https://lists.yoctoproject.org/g/yocto-patches/message/2070
> Mute This Topic: https://lists.yoctoproject.org/mt/114772377/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]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

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" \
+    "