| Message ID | 20250820143951.4033778-1-sandeep.gundlupet-raju@amd.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-zephyr,master,v3,1/1] zephyr-kernel: Add rpmsg multi services recipe | expand |
Hi Sandeep Unfortunately, with these I still can't build the recipe. Looks like we need to patch CMakeLists.txt meta = "master:fb4ebd60536af8672f950376106e0b0500d7007c" meta-oe meta-python = "master:714b3adc3a92d42370a0ea57a9744ad2d031db7f" meta-zephyr-core meta-zephyr-bsp = "master:5260aea7ef135d3b23f49c8d7bf6c6f78bdc2f50" command : MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv | CMake Error at /data/master/poky/build-zephyr/tmp/work/qemu_cortex_r5-zephyr/zephyr-openamp-rpmsg-multi-srv/4.1.0+git/sources/zephyr-openamp-rpmsg-multi-srv-4.1.0+git/modules/hal/libmetal/libme tal/CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. > -----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, 20 August, 2025 10:40 PM > To: yocto-patches@lists.yoctoproject.org; Lee, Chee Yang > <chee.yang.lee@intel.com> > Subject: [yocto-patches] [meta-zephyr][master][PATCH v3 1/1] 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> > --- > Changes in v3: > - Add machine compatible for qemu-cortex-r5 and stm32mp157c-dk2 > machines only. > > Testing: > > $ MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv > $ MACHINE=stm32mp157c-dk2 bitbake zephyr-openamp-rpmsg-multi-srv > --- > .../zephyr-openamp-rpmsg-multi-srv.bb | 25 +++++++++++++++++++ > 1 file changed, 25 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..dca3b9b > --- /dev/null > +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg > +++ -multi-srv.bb > @@ -0,0 +1,25 @@ > +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=${P}/open-amp-sys-ref \ > + " > + > +SRCREV_open-amp-sys-ref = "d78315763fbacba8a74552d0ad570bd01c42ccf9" > + > +COMPATIBLE_MACHINE = "(qemu-cortex-r5|stm32mp157c-dk2)" > + > +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 (#2073): https://lists.yoctoproject.org/g/yocto- > patches/message/2073 > Mute This Topic: https://lists.yoctoproject.org/mt/114800427/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] > -=-=-=-=-=-=-=-=-=-=-=- >
Hi Chee Yang, On 8/28/2025 2:16 AM, Lee, Chee Yang wrote: > Hi Sandeep > Unfortunately, with these I still can't build the recipe. Looks like we need to patch CMakeLists.txt [Sandeep]: Not just zephyr-openamp-rpmsg-multi-srv app any of the zephyr app(MACHINE=qemu-cortex-r5 bitbake zephyr-helloworld) is not working for r5 machines unless you set the ZEPHYR_TOOLCHAIN_VARIANT = "zephyr" in local.conf We need to take a look on this issue. I see this issue in both master and scarthgap as well. Some machines doesn't build if you don't set ZEPHYR_TOOLCHAIN_VARIANT = "zephyr". Can you try adding this to your local.conf and see if you can build it? Thanks, Sandeep > > > meta = "master:fb4ebd60536af8672f950376106e0b0500d7007c" > meta-oe > meta-python = "master:714b3adc3a92d42370a0ea57a9744ad2d031db7f" > meta-zephyr-core > meta-zephyr-bsp = "master:5260aea7ef135d3b23f49c8d7bf6c6f78bdc2f50" > > > command : > MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv > > > | CMake Error at /data/master/poky/build-zephyr/tmp/work/qemu_cortex_r5-zephyr/zephyr-openamp-rpmsg-multi-srv/4.1.0+git/sources/zephyr-openamp-rpmsg-multi-srv-4.1.0+git/modules/hal/libmetal/libme > tal/CMakeLists.txt:1 (cmake_minimum_required): > | Compatibility with CMake < 3.5 has been removed from CMake. > | > | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax > | to tell CMake that the project requires at least <min> but has been updated > | to work with policies introduced by <max> or earlier. > | > | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. > > >> -----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, 20 August, 2025 10:40 PM >> To:yocto-patches@lists.yoctoproject.org; Lee, Chee Yang >> <chee.yang.lee@intel.com> >> Subject: [yocto-patches] [meta-zephyr][master][PATCH v3 1/1] 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> >> --- >> Changes in v3: >> - Add machine compatible for qemu-cortex-r5 and stm32mp157c-dk2 >> machines only. >> >> Testing: >> >> $ MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv >> $ MACHINE=stm32mp157c-dk2 bitbake zephyr-openamp-rpmsg-multi-srv >> --- >> .../zephyr-openamp-rpmsg-multi-srv.bb | 25 +++++++++++++++++++ >> 1 file changed, 25 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..dca3b9b >> --- /dev/null >> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg >> +++ -multi-srv.bb >> @@ -0,0 +1,25 @@ >> +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=${P}/open-amp-sys-ref \ >> + " >> + >> +SRCREV_open-amp-sys-ref = "d78315763fbacba8a74552d0ad570bd01c42ccf9" >> + >> +COMPATIBLE_MACHINE = "(qemu-cortex-r5|stm32mp157c-dk2)" >> + >> +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 (#2073):https://lists.yoctoproject.org/g/yocto- >> patches/message/2073 >> Mute This Topic:https://lists.yoctoproject.org/mt/114800427/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] >> -=-=-=-=-=-=-=-=-=-=-=- >>
I build with default local.conf from poky with
DISTRO = "zephyr"
ZEPHYR_TOOLCHAIN_VARIANT = "zephyr"
It works only when I set
EXTRA_OECMAKE:append:pn-zephyr-openamp-rpmsg-multi-srv = " -DCMAKE_POLICY_VERSION_MINIMUM=3.5 "
From: Gundlupet Raju, Sandeep <sandeep.gundlupet-raju@amd.com>
Sent: Friday, 29 August, 2025 2:18 AM
To: Lee, Chee Yang <chee.yang.lee@intel.com>; yocto-patches@lists.yoctoproject.org
Subject: Re: [yocto-patches] [meta-zephyr][master][PATCH v3 1/1] zephyr-kernel: Add rpmsg multi services recipe
Hi Chee Yang,
On 8/28/2025 2:16 AM, Lee, Chee Yang wrote:
Hi Sandeep
Unfortunately, with these I still can't build the recipe. Looks like we need to patch CMakeLists.txt
[Sandeep]: Not just zephyr-openamp-rpmsg-multi-srv app any of the zephyr app(MACHINE=qemu-cortex-r5 bitbake zephyr-helloworld) is not working for r5 machines unless you set the ZEPHYR_TOOLCHAIN_VARIANT = "zephyr" in local.conf
We need to take a look on this issue. I see this issue in both master and scarthgap as well.
Some machines doesn't build if you don't set ZEPHYR_TOOLCHAIN_VARIANT = "zephyr". Can you try adding this to your local.conf and see if you can build it?
Thanks,
Sandeep
meta = "master:fb4ebd60536af8672f950376106e0b0500d7007c"
meta-oe
meta-python = "master:714b3adc3a92d42370a0ea57a9744ad2d031db7f"
meta-zephyr-core
meta-zephyr-bsp = "master:5260aea7ef135d3b23f49c8d7bf6c6f78bdc2f50"
command :
MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv
| CMake Error at /data/master/poky/build-zephyr/tmp/work/qemu_cortex_r5-zephyr/zephyr-openamp-rpmsg-multi-srv/4.1.0+git/sources/zephyr-openamp-rpmsg-multi-srv-4.1.0+git/modules/hal/libmetal/libme
tal/CMakeLists.txt:1 (cmake_minimum_required):
| Compatibility with CMake < 3.5 has been removed from CMake.
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
| to tell CMake that the project requires at least <min> but has been updated
| to work with policies introduced by <max> or earlier.
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
On 8/28/2025 7:34 PM, Lee, Chee Yang wrote: > > I build with default local.conf from poky with > DISTRO = "zephyr" > > ZEPHYR_TOOLCHAIN_VARIANT = "zephyr" > [Sandeep]: Setting ZEPHYR_TOOLCHAIN_VARIANT works for zephyr-helloworld without setting CMAKE version. $ tail -n 5 conf/local.conf ZEPHYR_TOOLCHAIN_VARIANT = "zephyr" #PREFERRED_VERSION_zephyr-kernel = "4.2.0" #PREFERRED_VERSION_zephyr-sdk = "0.16.9" #EXTRA_OECMAKE:append:pn-zephyr-helloworld = " -DCMAKE_POLICY_VERSION_MINIMUM=3.5" $ time MACHINE=qemu-cortex-r5 bitbake zephyr-helloworld Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. Parsing recipes: 100% |#############################################################################################################################################################################| Time: 0:00:06 Parsing of 2643 .bb files complete (0 cached, 2643 parsed). 4709 targets, 547 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "2.15.2" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-22.04" TARGET_SYS = "arm-oe-eabi" MACHINE = "qemu-cortex-r5" DISTRO = "nodistro" DISTRO_VERSION = "nodistro.0" TUNE_FEATURES = "armv7r vfpv3d16 cortexr5 idiv" TARGET_FPU = "softfp" meta meta-poky meta-yocto-bsp = "master:ee16a5b7c1bfaf05e7d6c1a814fe095172367246" meta-oe meta-python = "master:146473ce0f79f206be34d751dba0f4a11578874e" meta-zephyr-core meta-zephyr-bsp = "master-dev:3efff04359bfb2e628317b5a1d0ecf433a0e682a" Sstate summary: Wanted 414 Local 0 Mirrors 0 Missed 414 Current 0 (0% match, 0% complete)######################################################################################### | ETA: 0:00:00 Initialising tasks: 100% |##########################################################################################################################################################################| Time: 0:00:00 NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 1281 tasks of which 0 didn't need to be rerun and all succeeded. real 9m42.268s user 0m3.887s sys 0m0.647s $ > > It works only when I set > > EXTRA_OECMAKE:append:pn-zephyr-openamp-rpmsg-multi-srv = " > -DCMAKE_POLICY_VERSION_MINIMUM=3.5 " > [Sandeep]: Yes you are right this is required for 4.1 and not for 3.7. I will send a updated patch for master. $ tail -n 6 conf/local.conf ZEPHYR_TOOLCHAIN_VARIANT = "zephyr" #PREFERRED_VERSION_zephyr-kernel = "4.2.0" #PREFERRED_VERSION_zephyr-sdk = "0.16.9" #EXTRA_OECMAKE:append:pn-zephyr-helloworld = " -DCMAKE_POLICY_VERSION_MINIMUM=3.5" EXTRA_OECMAKE:append:pn-zephyr-openamp-rpmsg-multi-srv = " -DCMAKE_POLICY_VERSION_MINIMUM=3.5" $ 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:06 Parsing of 2644 .bb files complete (0 cached, 2644 parsed). 4710 targets, 547 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "2.15.2" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-22.04" TARGET_SYS = "arm-oe-eabi" MACHINE = "qemu-cortex-r5" DISTRO = "nodistro" DISTRO_VERSION = "nodistro.0" TUNE_FEATURES = "armv7r vfpv3d16 cortexr5 idiv" TARGET_FPU = "softfp" meta meta-poky meta-yocto-bsp = "master:ee16a5b7c1bfaf05e7d6c1a814fe095172367246" meta-oe meta-python = "master:146473ce0f79f206be34d751dba0f4a11578874e" meta-zephyr-core meta-zephyr-bsp = "master-dev:5680dcdfecc5c3d4a6d4c5b5d47ecca0b0f88bba" Sstate summary: Wanted 414 Local 0 Mirrors 0 Missed 414 Current 0 (0% match, 0% complete)######################################################################################### | ETA: 0:00:00 Initialising tasks: 100% |##########################################################################################################################################################################| Time: 0:00:00 NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 1281 tasks of which 0 didn't need to be rerun and all succeeded. real 9m40.076s user 0m3.001s sys 0m0.521s $ > > > *From:*Gundlupet Raju, Sandeep <sandeep.gundlupet-raju@amd.com> > *Sent:* Friday, 29 August, 2025 2:18 AM > *To:* Lee, Chee Yang <chee.yang.lee@intel.com>; > yocto-patches@lists.yoctoproject.org > *Subject:* Re: [yocto-patches] [meta-zephyr][master][PATCH v3 1/1] > zephyr-kernel: Add rpmsg multi services recipe > > Hi Chee Yang, > > On 8/28/2025 2:16 AM, Lee, Chee Yang wrote: > > Hi Sandeep > > Unfortunately, with these I still can't build the recipe. Looks like we need to patch CMakeLists.txt > > [Sandeep]: Not just zephyr-openamp-rpmsg-multi-srv app any of the > zephyr app(MACHINE=qemu-cortex-r5 bitbake zephyr-helloworld) is not > working for r5 machines unless you set the ZEPHYR_TOOLCHAIN_VARIANT = > "zephyr" in local.conf > > We need to take a look on this issue. I see this issue in both master > and scarthgap as well. > > Some machines doesn't build if you don't set ZEPHYR_TOOLCHAIN_VARIANT > = "zephyr". Can you try adding this to your local.conf and see if you > can build it? > > Thanks, > Sandeep > > meta = "master:fb4ebd60536af8672f950376106e0b0500d7007c" > > meta-oe > > meta-python = "master:714b3adc3a92d42370a0ea57a9744ad2d031db7f" > > meta-zephyr-core > > meta-zephyr-bsp = "master:5260aea7ef135d3b23f49c8d7bf6c6f78bdc2f50" > > command : > > MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv > > | CMake Error at /data/master/poky/build-zephyr/tmp/work/qemu_cortex_r5-zephyr/zephyr-openamp-rpmsg-multi-srv/4.1.0+git/sources/zephyr-openamp-rpmsg-multi-srv-4.1.0+git/modules/hal/libmetal/libme > > tal/CMakeLists.txt:1 (cmake_minimum_required): > > | Compatibility with CMake < 3.5 has been removed from CMake. > > | > > | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax > > | to tell CMake that the project requires at least <min> but has been updated > > | to work with policies introduced by <max> or earlier. > > | > > | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. >
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..dca3b9b --- /dev/null +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-multi-srv.bb @@ -0,0 +1,25 @@ +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=${P}/open-amp-sys-ref \ + " + +SRCREV_open-amp-sys-ref = "d78315763fbacba8a74552d0ad570bd01c42ccf9" + +COMPATIBLE_MACHINE = "(qemu-cortex-r5|stm32mp157c-dk2)" + +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" \ + "
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> --- Changes in v3: - Add machine compatible for qemu-cortex-r5 and stm32mp157c-dk2 machines only. Testing: $ MACHINE=qemu-cortex-r5 bitbake zephyr-openamp-rpmsg-multi-srv $ MACHINE=stm32mp157c-dk2 bitbake zephyr-openamp-rpmsg-multi-srv --- .../zephyr-openamp-rpmsg-multi-srv.bb | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openamp-rpmsg-multi-srv.bb