diff options
author | Paul Barker <pbarker.renesas@gmail.com> | 2024-03-13 17:28:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-18 12:21:45 +0000 |
commit | aec64781fe89026567e91395504e1a1a4f255a7a (patch) | |
tree | fe69f78c487fce32de2f433b22b3e867940438c1 /meta/classes-recipe/kernel.bbclass | |
parent | 88eaffee1e1db1d96a4c944b6281fea202a1c778 (diff) | |
download | poky-aec64781fe89026567e91395504e1a1a4f255a7a.tar.gz |
kernel: Fix check_oldest_kernel
The check_oldest_kernel() function requires utsrelease.h to be
generated. This file is generated during do_compile, so we need to delay
calling check_oldest_kernel() until after this.
With this change in place, I now see the expected warning when building
Linux 5.10.y.
(From OE-Core rev: 525019b30e83ea65021ca4874605589ccd2daf80)
Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/kernel.bbclass')
-rw-r--r-- | meta/classes-recipe/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass index db4461e551..b084d6d69d 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass | |||
@@ -645,7 +645,7 @@ python check_oldest_kernel() { | |||
645 | } | 645 | } |
646 | 646 | ||
647 | check_oldest_kernel[vardepsexclude] += "OLDEST_KERNEL KERNEL_VERSION" | 647 | check_oldest_kernel[vardepsexclude] += "OLDEST_KERNEL KERNEL_VERSION" |
648 | do_configure[prefuncs] += "check_oldest_kernel" | 648 | do_compile[postfuncs] += "check_oldest_kernel" |
649 | 649 | ||
650 | KERNEL_LOCALVERSION ??= "" | 650 | KERNEL_LOCALVERSION ??= "" |
651 | 651 | ||