public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Skip deprecated headers_check target
@ 2022-08-02 12:57 Wadim Klincov
  2022-08-10 11:33 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: Wadim Klincov @ 2022-08-02 12:57 UTC (permalink / raw)
  To: isar-users; +Cc: 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 <wadim@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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-10 11:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 12:57 [PATCH] Skip deprecated headers_check target Wadim Klincov
2022-08-10 11:33 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox