Skip to contentSkip to conversation

ref-manual: document variable and task for kernel version check

PATCH In review Robert P. J. Day 3 participants 5 messages Jul 3 – Jul 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ref-manual: document variable and task for kernel version check

Add the associated variable and task for kernel version checking:

- do_kernel_version_sanity_check()
- KERNEL_VERSION_SANITY_SKIP

---

documentation/ref-manual/tasks.rst +8 -0
index e1db2d5ed..5744d47dc 100644
@@ -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``
documentation/ref-manual/variables.rst +4 -0
index c92b195ff..e99b623ea 100644
@@ -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.
#1 lore raw

Hi,

Quoted 15 lines · Robert P. J. Day

Add the associated variable and task for kernel version checking:

- do_kernel_version_sanity_check()
- KERNEL_VERSION_SANITY_SKIP

---

documentation/ref-manual/tasks.rst +0 -0
index e1db2d5ed..5744d47dc 100644

documentation/ref-manual/tasks.rst which can then be applied by subsequent tasks such as · line 795

Quoted 9 lines
documentation/ref-manual/tasks.rst +6 -0
@@ -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

#2 lore raw
Quoted 21 lines · Antonin Godard via lists.yoctoproject.org

Hi,

Quoted 18 lines · Robert P. J. Day

Add the associated variable and task for kernel version checking:

- do_kernel_version_sanity_check()
- KERNEL_VERSION_SANITY_SKIP

---

documentation/ref-manual/tasks.rst +0 -0
index e1db2d5ed..5744d47dc 100644
@@ -787,6 +787,14 @@ which can then be applied by subsequent tasks such as
 :ref:`ref-tasks-patch` and
 :ref:`ref-tasks-kernel_configme`.
 
Quoted 8 lines

documentation/ref-manual/tasks.rst which can then be applied by subsequent tasks such as

Quoted 6 lines
documentation/ref-manual/tasks.rst +6 -0
+.. _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

#3 lore raw

Hi,

Quoted 32 lines · Robert P. J. Day via lists.yoctoproject.org
Quoted 21 lines · Antonin Godard via lists.yoctoproject.org

Hi,

Quoted 18 lines · Robert P. J. Day

Add the associated variable and task for kernel version checking:

- do_kernel_version_sanity_check()
- KERNEL_VERSION_SANITY_SKIP

---

documentation/ref-manual/tasks.rst +0 -0
index e1db2d5ed..5744d47dc 100644
@@ -787,6 +787,14 @@ which can then be applied by subsequent tasks such as
  :ref:`ref-tasks-patch` and
  :ref:`ref-tasks-kernel_configme`.
 
Quoted 8 lines

documentation/ref-manual/tasks.rst which can then be applied by subsequent tasks such as

Quoted 6 lines
documentation/ref-manual/tasks.rst +6 -0
+.. _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.

Quoted 3 lines

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

#4 lore raw
In reply to Antonin Godard
Quoted 21 lines · Antonin Godard

Hi,

Quoted 18 lines · Robert P. J. Day

Add the associated variable and task for kernel version checking:

- do_kernel_version_sanity_check()
- KERNEL_VERSION_SANITY_SKIP

---

documentation/ref-manual/tasks.rst +0 -0
index e1db2d5ed..5744d47dc 100644
@@ -787,6 +787,14 @@ which can then be applied by subsequent tasks such as
 :ref:`ref-tasks-patch` and
 :ref:`ref-tasks-kernel_configme`.
 
Quoted 8 lines

documentation/ref-manual/tasks.rst which can then be applied by subsequent tasks such as

Quoted 6 lines
documentation/ref-manual/tasks.rst +6 -0
+.. _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