diff options
author | California Sullivan <california.l.sullivan@intel.com> | 2016-09-16 16:48:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-21 21:58:05 +0100 |
commit | 0eacf03de18b7eeb3460a4d102dd5932cd73cd06 (patch) | |
tree | 5d5c9af207277dbfc1bd4cf42ea1e4f21d9531f5 /meta/recipes-kernel | |
parent | c2908e1d1f170f4b588c070e912449c3537f8fb2 (diff) | |
download | poky-0eacf03de18b7eeb3460a4d102dd5932cd73cd06.tar.gz |
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].
(From OE-Core rev: ec467cfaea5c8cf22c61daa8845c2e4e96449512)
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index 98a48ec44a..d979662a50 100644 --- a/meta/recipes-kernel/linux/linux-yocto.inc +++ b/meta/recipes-kernel/linux/linux-yocto.inc | |||
@@ -55,6 +55,7 @@ do_install_append(){ | |||
55 | } | 55 | } |
56 | 56 | ||
57 | # extra tasks | 57 | # extra tasks |
58 | addtask kernel_version_sanity_check after do_kernel_checkout before do_compile | ||
58 | addtask kernel_link_images after do_compile before do_install | 59 | addtask kernel_link_images after do_compile before do_install |
59 | addtask validate_branches before do_patch after do_kernel_checkout | 60 | addtask validate_branches before do_patch after do_kernel_checkout |
60 | addtask kernel_configcheck after do_configure before do_compile | 61 | addtask kernel_configcheck after do_configure before do_compile |