]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
kernel: Fix check_oldest_kernel
authorPaul Barker <pbarker.renesas@gmail.com>
Wed, 13 Mar 2024 17:28:41 +0000 (17:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Mar 2024 12:20:59 +0000 (12:20 +0000)
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.

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/kernel.bbclass

index db4461e551e46acf25ff52db48f3bce7ce77ce2b..b084d6d69dc15116f5c78e543b13b2672c9331e6 100644 (file)
@@ -645,7 +645,7 @@ python check_oldest_kernel() {
 }
 
 check_oldest_kernel[vardepsexclude] += "OLDEST_KERNEL KERNEL_VERSION"
-do_configure[prefuncs] += "check_oldest_kernel"
+do_compile[postfuncs] += "check_oldest_kernel"
 
 KERNEL_LOCALVERSION ??= ""