]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass: Add kernel_version_sanity_check function
authorCalifornia Sullivan <california.l.sullivan@intel.com>
Fri, 16 Sep 2016 23:48:24 +0000 (16:48 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Sep 2016 19:18:32 +0000 (20:18 +0100)
commitec467cfaea5c8cf22c61daa8845c2e4e96449512
tree8e05712ee7fb90cdad78184fae1d4e030ed638a8
parent4c9fe10f3aaa4ee6e8fee52816298896b18cdb60
kernel.bbclass: Add kernel_version_sanity_check function

The kernel being built should match what the recipe claims it is
building. This function ensures that happens by comparing the version
information in the kernel's Makefile to the PV the recipe is using.

v2 changes:
* Match against PV instead of LINUX_VERSION
* Match against EXTRAVERSION as well (e.g., -rc4)
* Cleaned up version string building

Fixes [YOCTO #6767].

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass
meta/recipes-kernel/linux/linux-yocto.inc