* [kirkstone][RFC] ti-extras: Add support for extra kernel features for RT
@ 2023-11-07 16:05 Paresh Bhagat
2023-11-07 16:28 ` Ryan Eatmon
0 siblings, 1 reply; 4+ messages in thread
From: Paresh Bhagat @ 2023-11-07 16:05 UTC (permalink / raw)
To: meta-ti, praneeth, reatmon, denys; +Cc: c-shilwant, s-adivi, khasim, g-gupta
Add support for ti-extras features for rt as it was added for non
rt kernel and u-boot earlier. It will also be accessible via the
TI_EXTRAS variable in the local.conf file.
Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
---
.../recipes-kernel/linux/linux-ti-staging-rt_6.1.bb | 5 +++--
| 11 +++++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
create mode 100644 meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
index a600630e..93e1be39 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
@@ -1,10 +1,11 @@
require linux-ti-staging_6.1.bb
+include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''}
# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:"
-BRANCH = "ti-rt-linux-6.1.y"
+BRANCH ?= "ti-rt-linux-6.1.y"
-SRCREV = "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
+SRCREV ?= "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
PV = "6.1.46+git${SRCPV}"
--git a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
new file mode 100644
index 00000000..1fc40934
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
@@ -0,0 +1,11 @@
+
+# Use different commit, repo and branch for TI extras build
+# This will have priority over generic rt path
+
+COMPATIBLE_MACHINE = "am62xx"
+
+BRANCH = "ti-rt-linux-6.1.y"
+BRANCH:tie-jailhouse = "ti-rt-linux-6.1.y-jailhouse"
+
+SRCREV = "685e77152461bd6b791500f717bec62d17c1b36d"
+SRCREV:tie-jailhouse = "a74088b40b4d27478a2af5c20cdc0b4ec8ed9470"
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [kirkstone][RFC] ti-extras: Add support for extra kernel features for RT
2023-11-07 16:05 [kirkstone][RFC] ti-extras: Add support for extra kernel features for RT Paresh Bhagat
@ 2023-11-07 16:28 ` Ryan Eatmon
2023-11-07 20:30 ` [meta-ti] " Denys Dmytriyenko
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Eatmon @ 2023-11-07 16:28 UTC (permalink / raw)
To: Paresh Bhagat, meta-ti, praneeth, denys
Cc: c-shilwant, s-adivi, khasim, g-gupta
On 11/7/2023 10:05 AM, Paresh Bhagat wrote:
> Add support for ti-extras features for rt as it was added for non
> rt kernel and u-boot earlier. It will also be accessible via the
> TI_EXTRAS variable in the local.conf file.
>
> Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
> ---
> .../recipes-kernel/linux/linux-ti-staging-rt_6.1.bb | 5 +++--
> meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc | 11 +++++++++++
> 2 files changed, 14 insertions(+), 2 deletions(-)
> create mode 100644 meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
>
> diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> index a600630e..93e1be39 100644
> --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> @@ -1,10 +1,11 @@
> require linux-ti-staging_6.1.bb
> +include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''}
>
> # Look in the generic major.minor directory for files
> # This will have priority over generic non-rt path
> FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:"
>
> -BRANCH = "ti-rt-linux-6.1.y"
> +BRANCH ?= "ti-rt-linux-6.1.y"
>
> -SRCREV = "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
> +SRCREV ?= "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
I may need Denys to weigh on these comments:
You cannot use the ?= here. This recipe includes the
linux-ti-staging_6.1.bb recipe which has the default lines already in
there. And the ?= is a soft default which will only set the value IF it
is not already set. So this will break RT builds.
Bitbake also processes the = at the moment you see it. So the "last"
time a variable is set with = it will be the value that wins.
So for the RT recipe, you will likely need to move the include to AFTER
the above BRANCH/SRCREV settings.
Basically, I think you need:
BRANCH = "ti-rt-linux-6.1.y"
SRCREV = "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if
d.getVar('TI_EXTRAS') else ''}
So this inclusion of the extra will need to be different in the RT
recipe versus the non-RT recipe. All because the RT recipe includes the
non-RT recipe.
> PV = "6.1.46+git${SRCPV}"
> diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> new file mode 100644
> index 00000000..1fc40934
> --- /dev/null
> +++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> @@ -0,0 +1,11 @@
> +
> +# Use different commit, repo and branch for TI extras build
> +# This will have priority over generic rt path
> +
> +COMPATIBLE_MACHINE = "am62xx"
> +
> +BRANCH = "ti-rt-linux-6.1.y"
> +BRANCH:tie-jailhouse = "ti-rt-linux-6.1.y-jailhouse"
> +
> +SRCREV = "685e77152461bd6b791500f717bec62d17c1b36d"
> +SRCREV:tie-jailhouse = "a74088b40b4d27478a2af5c20cdc0b4ec8ed9470"
This file should be fine.
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-ti] [kirkstone][RFC] ti-extras: Add support for extra kernel features for RT
2023-11-07 16:28 ` Ryan Eatmon
@ 2023-11-07 20:30 ` Denys Dmytriyenko
2023-11-08 2:57 ` [EXTERNAL] " Bhagat, Paresh
0 siblings, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2023-11-07 20:30 UTC (permalink / raw)
To: reatmon
Cc: Paresh Bhagat, meta-ti, praneeth, denys, c-shilwant, s-adivi,
khasim, g-gupta
On Tue, Nov 07, 2023 at 10:28:11AM -0600, Ryan Eatmon via lists.yoctoproject.org wrote:
>
>
> On 11/7/2023 10:05 AM, Paresh Bhagat wrote:
> >Add support for ti-extras features for rt as it was added for non
> >rt kernel and u-boot earlier. It will also be accessible via the
> >TI_EXTRAS variable in the local.conf file.
> >
> >Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
> >---
> > .../recipes-kernel/linux/linux-ti-staging-rt_6.1.bb | 5 +++--
> > meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc | 11 +++++++++++
> > 2 files changed, 14 insertions(+), 2 deletions(-)
> > create mode 100644 meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> >
> >diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> >index a600630e..93e1be39 100644
> >--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> >+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> >@@ -1,10 +1,11 @@
> > require linux-ti-staging_6.1.bb
> >+include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''}
> > # Look in the generic major.minor directory for files
> > # This will have priority over generic non-rt path
> > FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:"
> >-BRANCH = "ti-rt-linux-6.1.y"
> >+BRANCH ?= "ti-rt-linux-6.1.y"
> >-SRCREV = "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
> >+SRCREV ?= "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
>
> I may need Denys to weigh on these comments:
>
> You cannot use the ?= here. This recipe includes the
> linux-ti-staging_6.1.bb recipe which has the default lines already
> in there. And the ?= is a soft default which will only set the
> value IF it is not already set. So this will break RT builds.
>
> Bitbake also processes the = at the moment you see it. So the
> "last" time a variable is set with = it will be the value that wins.
>
> So for the RT recipe, you will likely need to move the include to
> AFTER the above BRANCH/SRCREV settings.
>
> Basically, I think you need:
>
> BRANCH = "ti-rt-linux-6.1.y"
>
> SRCREV = "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
>
> include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if
> d.getVar('TI_EXTRAS') else ''}
>
>
> So this inclusion of the extra will need to be different in the RT
> recipe versus the non-RT recipe. All because the RT recipe includes
> the non-RT recipe.
Yes, this explanation is correct. Some re-ordering is required. Simply making
those assignments as weak at the end of -rt recipe is incorrect - that will
break -rt recipe regardless of whether ti-extras is enabled or not.
> > PV = "6.1.46+git${SRCPV}"
> >diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> >new file mode 100644
> >index 00000000..1fc40934
> >--- /dev/null
> >+++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> >@@ -0,0 +1,11 @@
> >+
> >+# Use different commit, repo and branch for TI extras build
> >+# This will have priority over generic rt path
> >+
> >+COMPATIBLE_MACHINE = "am62xx"
> >+
> >+BRANCH = "ti-rt-linux-6.1.y"
> >+BRANCH:tie-jailhouse = "ti-rt-linux-6.1.y-jailhouse"
> >+
> >+SRCREV = "685e77152461bd6b791500f717bec62d17c1b36d"
> >+SRCREV:tie-jailhouse = "a74088b40b4d27478a2af5c20cdc0b4ec8ed9470"
>
> This file should be fine.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [EXTERNAL] Re: [meta-ti] [kirkstone][RFC] ti-extras: Add support for extra kernel features for RT
2023-11-07 20:30 ` [meta-ti] " Denys Dmytriyenko
@ 2023-11-08 2:57 ` Bhagat, Paresh
0 siblings, 0 replies; 4+ messages in thread
From: Bhagat, Paresh @ 2023-11-08 2:57 UTC (permalink / raw)
To: Denys Dmytriyenko, Eatmon, Ryan
Cc: meta-ti@lists.yoctoproject.org, Bajjuri, Praneeth,
Shilwant, Chirag, Adivi, Sai Sree Kartheek, Khasim, Syed Mohammed,
Gupta, Gyan
Hi Denys and Ryan,
Thanks for the review. I will address the comments and send an updated patch.
-----Original Message-----
From: Denys Dmytriyenko <denis@denix.org>
Sent: Wednesday, November 8, 2023 2:01 AM
To: Eatmon, Ryan <reatmon@ti.com>
Cc: Bhagat, Paresh <p-bhagat@ti.com>; meta-ti@lists.yoctoproject.org; Bajjuri, Praneeth <praneeth@ti.com>; denys@konsulko.com; Shilwant, Chirag <c-shilwant@ti.com>; Adivi, Sai Sree Kartheek <s-adivi@ti.com>; Khasim, Syed Mohammed <khasim@ti.com>; Gupta, Gyan <g-gupta@ti.com>
Subject: [EXTERNAL] Re: [meta-ti] [kirkstone][RFC] ti-extras: Add support for extra kernel features for RT
On Tue, Nov 07, 2023 at 10:28:11AM -0600, Ryan Eatmon via lists.yoctoproject.org wrote:
>
>
> On 11/7/2023 10:05 AM, Paresh Bhagat wrote:
> >Add support for ti-extras features for rt as it was added for non rt
> >kernel and u-boot earlier. It will also be accessible via the
> >TI_EXTRAS variable in the local.conf file.
> >
> >Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
> >---
> > .../recipes-kernel/linux/linux-ti-staging-rt_6.1.bb | 5 +++--
> > meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc | 11 +++++++++++
> > 2 files changed, 14 insertions(+), 2 deletions(-)
> > create mode 100644
> >meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> >
> >diff --git
> >a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> >b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> >index a600630e..93e1be39 100644
> >--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> >+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb
> >@@ -1,10 +1,11 @@
> > require linux-ti-staging_6.1.bb
> >+include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if
> >+d.getVar('TI_EXTRAS') else ''}
> > # Look in the generic major.minor directory for files
> > # This will have priority over generic non-rt path
> > FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:"
> >-BRANCH = "ti-rt-linux-6.1.y"
> >+BRANCH ?= "ti-rt-linux-6.1.y"
> >-SRCREV = "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
> >+SRCREV ?= "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
>
> I may need Denys to weigh on these comments:
>
> You cannot use the ?= here. This recipe includes the
> linux-ti-staging_6.1.bb recipe which has the default lines already in
> there. And the ?= is a soft default which will only set the value IF
> it is not already set. So this will break RT builds.
>
> Bitbake also processes the = at the moment you see it. So the "last"
> time a variable is set with = it will be the value that wins.
>
> So for the RT recipe, you will likely need to move the include to
> AFTER the above BRANCH/SRCREV settings.
>
> Basically, I think you need:
>
> BRANCH = "ti-rt-linux-6.1.y"
>
> SRCREV = "eda9974e8513cdd2c5cc20c3c6b851f9977acd4d"
>
> include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if
> d.getVar('TI_EXTRAS') else ''}
>
>
> So this inclusion of the extra will need to be different in the RT
> recipe versus the non-RT recipe. All because the RT recipe includes
> the non-RT recipe.
Yes, this explanation is correct. Some re-ordering is required. Simply making those assignments as weak at the end of -rt recipe is incorrect - that will break -rt recipe regardless of whether ti-extras is enabled or not.
> > PV = "6.1.46+git${SRCPV}"
> >diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> >b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> >new file mode 100644
> >index 00000000..1fc40934
> >--- /dev/null
> >+++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
> >@@ -0,0 +1,11 @@
> >+
> >+# Use different commit, repo and branch for TI extras build # This
> >+will have priority over generic rt path
> >+
> >+COMPATIBLE_MACHINE = "am62xx"
> >+
> >+BRANCH = "ti-rt-linux-6.1.y"
> >+BRANCH:tie-jailhouse = "ti-rt-linux-6.1.y-jailhouse"
> >+
> >+SRCREV = "685e77152461bd6b791500f717bec62d17c1b36d"
> >+SRCREV:tie-jailhouse = "a74088b40b4d27478a2af5c20cdc0b4ec8ed9470"
>
> This file should be fine.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-11-08 2:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-07 16:05 [kirkstone][RFC] ti-extras: Add support for extra kernel features for RT Paresh Bhagat
2023-11-07 16:28 ` Ryan Eatmon
2023-11-07 20:30 ` [meta-ti] " Denys Dmytriyenko
2023-11-08 2:57 ` [EXTERNAL] " Bhagat, Paresh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.