[PATCH] Skip deprecated headers_check target

40 views
Skip to first unread message

Wadim Klincov

unread,
Aug 2, 2022, 8:57:49 AM8/2/22
to isar-...@googlegroups.com, Wadim Klincov
The `headers_check` target was deprecated with kernel version v5.4.24[0]
and has been completely removed after kernel version v5.15[1]. Building anything above kernel
v5.15 fails, but anything after v5.4.24 can skip `headers_check` already, since
it's just a no-op.

[0] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.4.24&id=ecd77a3261ab58bb07bc00cf3ca57f052764be5b
[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Makefile?h=v5.15.1#n1311

Signed-off-by: Wadim Klincov <wa...@klincov.com>
---
meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
index c6b5059..6ea50d0 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
@@ -196,7 +196,9 @@ kernel_headers() {
}

install_headers() {
- headers_check
+ if dpkg --compare-versions "${krel}" "lt" "5.4.24"; then
+ headers_check
+ fi
[ -z ${kern_pkgs["linux-libc-dev"]} ] || libc_headers
kernel_headers
}
--
2.37.1


Anton Mikanovich

unread,
Aug 10, 2022, 7:33:49 AM8/10/22
to Wadim Klincov, isar-...@googlegroups.com
02.08.2022 15:57, Wadim Klincov wrote:
> The `headers_check` target was deprecated with kernel version v5.4.24[0]
> and has been completely removed after kernel version v5.15[1]. Building anything above kernel
> v5.15 fails, but anything after v5.4.24 can skip `headers_check` already, since
> it's just a no-op.
>
> [0] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.4.24&id=ecd77a3261ab58bb07bc00cf3ca57f052764be5b
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Makefile?h=v5.15.1#n1311
>
> Signed-off-by: Wadim Klincov <wa...@klincov.com>

Applied to next, thanks.

Reply all
Reply to author
Forward
0 new messages