diff mbox series

[meta-zephyr,walnascar,scarthgap,master] layer.conf: Add LAYERBASE_zephyrcore variable

Message ID 20250605032306.3073101-1-sandeep.gundlupet-raju@amd.com
State New
Headers show
Series [meta-zephyr,walnascar,scarthgap,master] layer.conf: Add LAYERBASE_zephyrcore variable | expand

Commit Message

Sandeep Gundlupet Raju June 5, 2025, 3:23 a.m. UTC
Add LAYERBASE_zephyrcore variable so that files from
meta-zephyr-core can be accessed from other layers.

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Sandeep Gundlupet Raju <grsandeep85@gmail.com>
---
 meta-zephyr-core/conf/layer.conf | 3 +++
 1 file changed, 3 insertions(+)

Comments

Lee, Chee Yang June 6, 2025, 10:59 a.m. UTC | #1
> -----Original Message-----
> From: yocto-patches@lists.yoctoproject.org <yocto-
> patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju via
> lists.yoctoproject.org
> Sent: Thursday, 5 June, 2025 11:23 AM
> To: yocto-patches@lists.yoctoproject.org
> Cc: naveen.kumar.saini@intel.com
> Subject: [yocto-patches] [meta-zephyr][walnascar,scarthgap,master][PATCH]
> layer.conf: Add LAYERBASE_zephyrcore variable
> 
> Add LAYERBASE_zephyrcore variable so that files from meta-zephyr-core can be
> accessed from other layers.
> 
> Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
> Signed-off-by: Sandeep Gundlupet Raju <grsandeep85@gmail.com>
> ---
>  meta-zephyr-core/conf/layer.conf | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta-zephyr-core/conf/layer.conf b/meta-zephyr-core/conf/layer.conf
> index e1bb263..a4b3555 100644
> --- a/meta-zephyr-core/conf/layer.conf
> +++ b/meta-zephyr-core/conf/layer.conf
> @@ -20,3 +20,6 @@ LAYERSERIES_COMPAT_zephyrcore = "kirkstone scarthgap"
>  PYTHON3_NATIVE_SITEPACKAGES_DIR =
> "${libdir_native}/${PYTHON3_DIR}/site-packages"
> 
>  addpylib ${LAYERDIR}/lib oeqa
> +
> +# Allow other layers to find the root of this layer if necessary.
> +LAYERBASE_zephyrcore = "${LAYERDIR}"[] 


can you please further explain the problem and the usage for this variable? 
LAYERBASE doesn't seems like standard variable

> --
> 2.34.1
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1617): https://lists.yoctoproject.org/g/yocto-
> patches/message/1617
> Mute This Topic: https://lists.yoctoproject.org/mt/113479750/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]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Sandeep Gundlupet Raju June 9, 2025, 3:59 p.m. UTC | #2
On 6/6/2025 4:59 AM, Lee Chee Yang via lists.yoctoproject.org wrote:
>> -----Original Message-----
>> From:yocto-patches@lists.yoctoproject.org <yocto-
>> patches@lists.yoctoproject.org> On Behalf Of Sandeep Gundlupet Raju via
>> lists.yoctoproject.org
>> Sent: Thursday, 5 June, 2025 11:23 AM
>> To:yocto-patches@lists.yoctoproject.org
>> Cc:naveen.kumar.saini@intel.com
>> Subject: [yocto-patches] [meta-zephyr][walnascar,scarthgap,master][PATCH]
>> layer.conf: Add LAYERBASE_zephyrcore variable
>>
>> Add LAYERBASE_zephyrcore variable so that files from meta-zephyr-core can be
>> accessed from other layers.
>>
>> Signed-off-by: Sandeep Gundlupet Raju<sandeep.gundlupet-raju@amd.com>
>> Signed-off-by: Sandeep Gundlupet Raju<grsandeep85@gmail.com>
>> ---
>>   meta-zephyr-core/conf/layer.conf | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/meta-zephyr-core/conf/layer.conf b/meta-zephyr-core/conf/layer.conf
>> index e1bb263..a4b3555 100644
>> --- a/meta-zephyr-core/conf/layer.conf
>> +++ b/meta-zephyr-core/conf/layer.conf
>> @@ -20,3 +20,6 @@ LAYERSERIES_COMPAT_zephyrcore = "kirkstone scarthgap"
>>   PYTHON3_NATIVE_SITEPACKAGES_DIR =
>> "${libdir_native}/${PYTHON3_DIR}/site-packages"
>>
>>   addpylib ${LAYERDIR}/lib oeqa
>> +
>> +# Allow other layers to find the root of this layer if necessary.
>> +LAYERBASE_zephyrcore = "${LAYERDIR}"[]
>
> can you please further explain the problem and the usage for this variable?
> LAYERBASE doesn't seems like standard variable
[Sandeep]: The problem is I need to access 
https://git.yoctoproject.org/meta-zephyr/tree/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc 
file from vendor layer to manipulate the do_configure:prepend to copy 
files before the zephyr builds are started. Hence I requested to meet 
you guys and walk through some of my proposals for this layer.
>> --
>> 2.34.1
>>
>>
>>
>>
>>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1621):https://lists.yoctoproject.org/g/yocto-patches/message/1621
> Mute This Topic:https://lists.yoctoproject.org/mt/113479750/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]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/meta-zephyr-core/conf/layer.conf b/meta-zephyr-core/conf/layer.conf
index e1bb263..a4b3555 100644
--- a/meta-zephyr-core/conf/layer.conf
+++ b/meta-zephyr-core/conf/layer.conf
@@ -20,3 +20,6 @@  LAYERSERIES_COMPAT_zephyrcore = "kirkstone scarthgap"
 PYTHON3_NATIVE_SITEPACKAGES_DIR = "${libdir_native}/${PYTHON3_DIR}/site-packages"
 
 addpylib ${LAYERDIR}/lib oeqa
+
+# Allow other layers to find the root of this layer if necessary.
+LAYERBASE_zephyrcore = "${LAYERDIR}"