* [PATCH] ref-manual: document variable and task for kernel version check
@ 2026-07-03 13:25 Robert P. J. Day
2026-07-03 14:03 ` [docs] " Antonin Godard
0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2026-07-03 13:25 UTC (permalink / raw)
To: YP docs mailing list
Add the associated variable and task for kernel version checking:
- do_kernel_version_sanity_check()
- KERNEL_VERSION_SANITY_SKIP
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
---
diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst
index e1db2d5ed..5744d47dc 100644
--- a/documentation/ref-manual/tasks.rst
+++ b/documentation/ref-manual/tasks.rst
@@ -787,6 +787,14 @@ which can then be applied by subsequent tasks such as
:ref:`ref-tasks-patch` and
:ref:`ref-tasks-kernel_configme`.
+.. _ref-tasks-kernel_version_sanity_check:
+
+``do_kernel_version_sanity_check``
+----------------------------------
+
+Validate the version of the kernel; skip this check by assigning the
+value "1" to :term:`KERNEL_VERSION_SANITY_SKIP`.
+
.. _ref-tasks-menuconfig:
``do_menuconfig``
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index c92b195ff..e99b623ea 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -5748,6 +5748,10 @@ system and gives an overview of their function and contents.
configured. Consequently, attempting to refer to this variable in
contexts prior to configuration will not work.
+ :term:`KERNEL_VERSION_SANITY_SKIP`
+ If set to "1", skip the
+ :ref:`ref-tasks-kernel_version_sanity_check` task.
+
:term:`KERNELDEPMODDEPEND`
Specifies whether the data referenced through
:term:`PKGDATA_DIR` is needed or not.
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [docs] [PATCH] ref-manual: document variable and task for kernel version check
2026-07-03 13:25 [PATCH] ref-manual: document variable and task for kernel version check Robert P. J. Day
@ 2026-07-03 14:03 ` Antonin Godard
2026-07-03 14:34 ` Robert P. J. Day
2026-07-04 16:17 ` Robert P. J. Day
0 siblings, 2 replies; 5+ messages in thread
From: Antonin Godard @ 2026-07-03 14:03 UTC (permalink / raw)
To: Robert P. J. Day, YP docs mailing list
Hi,
On Fri Jul 3, 2026 at 3:25 PM CEST, Robert P. J. Day wrote:
>
> Add the associated variable and task for kernel version checking:
>
> - do_kernel_version_sanity_check()
> - KERNEL_VERSION_SANITY_SKIP
>
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>
> ---
>
> diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst
> index e1db2d5ed..5744d47dc 100644
> --- a/documentation/ref-manual/tasks.rst
> +++ b/documentation/ref-manual/tasks.rst
> @@ -787,6 +787,14 @@ which can then be applied by subsequent tasks such as
> :ref:`ref-tasks-patch` and
> :ref:`ref-tasks-kernel_configme`.
>
> +.. _ref-tasks-kernel_version_sanity_check:
> +
> +``do_kernel_version_sanity_check``
> +----------------------------------
> +
> +Validate the version of the kernel
This doesn't explain what this task does.
Antonin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [docs] [PATCH] ref-manual: document variable and task for kernel version check
2026-07-03 14:03 ` [docs] " Antonin Godard
@ 2026-07-03 14:34 ` Robert P. J. Day
2026-07-20 15:30 ` Quentin Schulz
2026-07-04 16:17 ` Robert P. J. Day
1 sibling, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2026-07-03 14:34 UTC (permalink / raw)
To: antonin.godard; +Cc: YP docs mailing list
On Fri, 3 Jul 2026, Antonin Godard via lists.yoctoproject.org wrote:
> Hi,
>
> On Fri Jul 3, 2026 at 3:25 PM CEST, Robert P. J. Day wrote:
> >
> > Add the associated variable and task for kernel version checking:
> >
> > - do_kernel_version_sanity_check()
> > - KERNEL_VERSION_SANITY_SKIP
> >
> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >
> > ---
> >
> > diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst
> > index e1db2d5ed..5744d47dc 100644
> > --- a/documentation/ref-manual/tasks.rst
> > +++ b/documentation/ref-manual/tasks.rst
> > @@ -787,6 +787,14 @@ which can then be applied by subsequent tasks such as
> > :ref:`ref-tasks-patch` and
> > :ref:`ref-tasks-kernel_configme`.
> >
> > +.. _ref-tasks-kernel_version_sanity_check:
> > +
> > +``do_kernel_version_sanity_check``
> > +----------------------------------
> > +
> > +Validate the version of the kernel
>
> This doesn't explain what this task does.
Have you *seen* the RE/pattern checking in that task? I'm open to a
meaningful one-line descriptor.
rday
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [docs] [PATCH] ref-manual: document variable and task for kernel version check
2026-07-03 14:34 ` Robert P. J. Day
@ 2026-07-20 15:30 ` Quentin Schulz
0 siblings, 0 replies; 5+ messages in thread
From: Quentin Schulz @ 2026-07-20 15:30 UTC (permalink / raw)
To: rpjday, antonin.godard; +Cc: YP docs mailing list
Hi,
On 7/3/26 4:34 PM, Robert P. J. Day via lists.yoctoproject.org wrote:
> On Fri, 3 Jul 2026, Antonin Godard via lists.yoctoproject.org wrote:
>
>> Hi,
>>
>> On Fri Jul 3, 2026 at 3:25 PM CEST, Robert P. J. Day wrote:
>>>
>>> Add the associated variable and task for kernel version checking:
>>>
>>> - do_kernel_version_sanity_check()
>>> - KERNEL_VERSION_SANITY_SKIP
>>>
>>> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>>>
>>> ---
>>>
>>> diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst
>>> index e1db2d5ed..5744d47dc 100644
>>> --- a/documentation/ref-manual/tasks.rst
>>> +++ b/documentation/ref-manual/tasks.rst
>>> @@ -787,6 +787,14 @@ which can then be applied by subsequent tasks such as
>>> :ref:`ref-tasks-patch` and
>>> :ref:`ref-tasks-kernel_configme`.
>>>
>>> +.. _ref-tasks-kernel_version_sanity_check:
>>> +
>>> +``do_kernel_version_sanity_check``
>>> +----------------------------------
>>> +
>>> +Validate the version of the kernel
>>
>> This doesn't explain what this task does.
>
> Have you *seen* the RE/pattern checking in that task? I'm open to a
> meaningful one-line descriptor.
>
It makes sure that the PV of the kernel recipe matches the value stored
in the root Makefile in the kernel sources (SUBLEVEL may be ignored if 0).
This task also only exists if the kernel.bbclass is inherited, so this
needs to be made explicit in the task description. And it is only called
if kernel-yocto.bbclass is inherited, otherwise it is simply a function
(it is not added in the task tree in kernel.bbclass).
Also, why would you want to disable the version sanity check... I'm not
sure. I guess you could say something along the lines of "may be used
for a rolling version of the kernel that is often rebased, e.g.
linux-yocto-dev. This should typically not be set to 1 as it may mislead
the user as to which version of the kernel is actually being built or
installed."
Cheers,
Quentin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [docs] [PATCH] ref-manual: document variable and task for kernel version check
2026-07-03 14:03 ` [docs] " Antonin Godard
2026-07-03 14:34 ` Robert P. J. Day
@ 2026-07-04 16:17 ` Robert P. J. Day
1 sibling, 0 replies; 5+ messages in thread
From: Robert P. J. Day @ 2026-07-04 16:17 UTC (permalink / raw)
To: Antonin Godard; +Cc: YP docs mailing list
On Fri, 3 Jul 2026, Antonin Godard wrote:
> Hi,
>
> On Fri Jul 3, 2026 at 3:25 PM CEST, Robert P. J. Day wrote:
> >
> > Add the associated variable and task for kernel version checking:
> >
> > - do_kernel_version_sanity_check()
> > - KERNEL_VERSION_SANITY_SKIP
> >
> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >
> > ---
> >
> > diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst
> > index e1db2d5ed..5744d47dc 100644
> > --- a/documentation/ref-manual/tasks.rst
> > +++ b/documentation/ref-manual/tasks.rst
> > @@ -787,6 +787,14 @@ which can then be applied by subsequent tasks such as
> > :ref:`ref-tasks-patch` and
> > :ref:`ref-tasks-kernel_configme`.
> >
> > +.. _ref-tasks-kernel_version_sanity_check:
> > +
> > +``do_kernel_version_sanity_check``
> > +----------------------------------
> > +
> > +Validate the version of the kernel
>
> This doesn't explain what this task does.
again, i'm open to a collection of words that accurately describes
what that task is doing.
rday
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-07-20 15:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03 13:25 [PATCH] ref-manual: document variable and task for kernel version check Robert P. J. Day
2026-07-03 14:03 ` [docs] " Antonin Godard
2026-07-03 14:34 ` Robert P. J. Day
2026-07-20 15:30 ` Quentin Schulz
2026-07-04 16:17 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox