From 0e3ddc9dc85e29cd00338cc79ea4be1d634a75ba Mon Sep 17 00:00:00 2001 From: Arnout Vandecappelle Date: Mon, 2 Feb 2026 18:20:07 +0100 Subject: [PATCH] {linux, linux-headers}: split hash file in before and from 6.17 In linux 6.17, the license file LICENSES/preferred/GPL-2.0 was modified. As a result, also its hash changed, and the hash was duly updated in commit d6c0f0015b4d469cb8e4e590e44e221d8660424c. Of course, this is only valid for kernel versions from 6.17 - but at the time, we only set LINUX_LICENSE_FILES for the latest kernel version, not for any other kernel versions. Since commit 305a2d91731fade45f35c259cb012bdf17e8dbeb, we also set LINUX_LICENSE_FILES for all other versions, including e.g. the CIP versions. Similarly, we now set LICENSE_FILES for all linux-headers versions. Thus, the hash check of the license file fails for all older kernel versions. Fix this by splitting the hash file in two hash files: before-6.17 and from-6.17. We keep just two hash file rather than a separate one for each version to limit the number of files that need to be updated when bumping kernel versions. Create symlinks for all the CIP version in linux and for all supported versions in linux-headers. Include the CIP versions as well for linux-headers. They are used when the kernel is set to the CIP version and linux-headers to same-as-kernel. Signed-off-by: Arnout Vandecappelle --- linux/5.10.246-cip66 | 1 + linux/5.10.246-cip66-rt29/linux.hash | 1 + linux/6.18.8 | 1 + linux/before-6.17/linux-headers.hash | 1 + linux/{ => before-6.17}/linux.hash | 3 +-- linux/from-6.17/linux-headers.hash | 1 + linux/from-6.17/linux.hash | 7 +++++++ package/linux-headers/5.10.246-cip66 | 1 + package/linux-headers/5.10.246-cip66-rt29 | 1 + package/linux-headers/5.10.248 | 1 + package/linux-headers/5.15.198 | 1 + package/linux-headers/6.1.161 | 1 + package/linux-headers/6.12.68 | 1 + package/linux-headers/6.18.8 | 1 + package/linux-headers/6.6.112 | 1 + package/linux-headers/linux-headers.hash | 1 - 16 files changed, 21 insertions(+), 3 deletions(-) create mode 120000 linux/5.10.246-cip66 create mode 120000 linux/5.10.246-cip66-rt29/linux.hash create mode 120000 linux/6.18.8 create mode 120000 linux/before-6.17/linux-headers.hash rename linux/{ => before-6.17}/linux.hash (84%) create mode 120000 linux/from-6.17/linux-headers.hash create mode 100644 linux/from-6.17/linux.hash create mode 120000 package/linux-headers/5.10.246-cip66 create mode 120000 package/linux-headers/5.10.246-cip66-rt29 create mode 120000 package/linux-headers/5.10.248 create mode 120000 package/linux-headers/5.15.198 create mode 120000 package/linux-headers/6.1.161 create mode 120000 package/linux-headers/6.12.68 create mode 120000 package/linux-headers/6.18.8 create mode 120000 package/linux-headers/6.6.112 delete mode 120000 package/linux-headers/linux-headers.hash diff --git a/linux/5.10.246-cip66 b/linux/5.10.246-cip66 new file mode 120000 index 0000000000..16c27bbff3 --- /dev/null +++ b/linux/5.10.246-cip66 @@ -0,0 +1 @@ +before-6.17/ \ No newline at end of file diff --git a/linux/5.10.246-cip66-rt29/linux.hash b/linux/5.10.246-cip66-rt29/linux.hash new file mode 120000 index 0000000000..cde5626c0a --- /dev/null +++ b/linux/5.10.246-cip66-rt29/linux.hash @@ -0,0 +1 @@ +../before-6.17/linux.hash \ No newline at end of file diff --git a/linux/6.18.8 b/linux/6.18.8 new file mode 120000 index 0000000000..74e2b2d5b6 --- /dev/null +++ b/linux/6.18.8 @@ -0,0 +1 @@ +from-6.17 \ No newline at end of file diff --git a/linux/before-6.17/linux-headers.hash b/linux/before-6.17/linux-headers.hash new file mode 120000 index 0000000000..7c10ad0986 --- /dev/null +++ b/linux/before-6.17/linux-headers.hash @@ -0,0 +1 @@ +linux.hash \ No newline at end of file diff --git a/linux/linux.hash b/linux/before-6.17/linux.hash similarity index 84% rename from linux/linux.hash rename to linux/before-6.17/linux.hash index 2ba90714d3..4d5850641f 100644 --- a/linux/linux.hash +++ b/linux/before-6.17/linux.hash @@ -1,5 +1,4 @@ # From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc -sha256 37f0c5d5c242c1d604e87d48f08795e861a5a85f725b4ca11d0a538f12ff8cff linux-6.18.8.tar.xz sha256 d367c7504bd4da520dd01eb08125d2d0ac088bc8af4cd56d236f2074dd4225b7 linux-6.12.68.tar.xz sha256 d48e0d9de04bef2fb9740bdb0124548bcab8867cdca00ff9712c110282b299d6 linux-6.6.122.tar.xz sha256 b41666bda7223600386a07ebe1802f5029da2fe81f6a85d691b6ec6a707e5a29 linux-6.1.161.tar.xz @@ -12,5 +11,5 @@ sha256 b3454708b98016f02604433e41060be2c1feb595c2bddeb25292596f047f0915 linux- # Licenses hashes sha256 fb5a425bd3b3cd6071a3a9aff9909a859e7c1158d54d32e07658398cd67eb6a0 COPYING -sha256 8780e78a1a737e127f25a65f6d95269bffd36158dc261114de7859b490bfc5aa LICENSES/preferred/GPL-2.0 +sha256 f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79 LICENSES/preferred/GPL-2.0 sha256 8e378ab93586eb55135d3bc119cce787f7324f48394777d00c34fa3d0be3303f LICENSES/exceptions/Linux-syscall-note diff --git a/linux/from-6.17/linux-headers.hash b/linux/from-6.17/linux-headers.hash new file mode 120000 index 0000000000..7c10ad0986 --- /dev/null +++ b/linux/from-6.17/linux-headers.hash @@ -0,0 +1 @@ +linux.hash \ No newline at end of file diff --git a/linux/from-6.17/linux.hash b/linux/from-6.17/linux.hash new file mode 100644 index 0000000000..4d7f67daeb --- /dev/null +++ b/linux/from-6.17/linux.hash @@ -0,0 +1,7 @@ +# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc +sha256 37f0c5d5c242c1d604e87d48f08795e861a5a85f725b4ca11d0a538f12ff8cff linux-6.18.8.tar.xz + +# Licenses hashes +sha256 fb5a425bd3b3cd6071a3a9aff9909a859e7c1158d54d32e07658398cd67eb6a0 COPYING +sha256 8780e78a1a737e127f25a65f6d95269bffd36158dc261114de7859b490bfc5aa LICENSES/preferred/GPL-2.0 +sha256 8e378ab93586eb55135d3bc119cce787f7324f48394777d00c34fa3d0be3303f LICENSES/exceptions/Linux-syscall-note diff --git a/package/linux-headers/5.10.246-cip66 b/package/linux-headers/5.10.246-cip66 new file mode 120000 index 0000000000..6bdea03c2e --- /dev/null +++ b/package/linux-headers/5.10.246-cip66 @@ -0,0 +1 @@ +../../linux/before-6.17 \ No newline at end of file diff --git a/package/linux-headers/5.10.246-cip66-rt29 b/package/linux-headers/5.10.246-cip66-rt29 new file mode 120000 index 0000000000..6bdea03c2e --- /dev/null +++ b/package/linux-headers/5.10.246-cip66-rt29 @@ -0,0 +1 @@ +../../linux/before-6.17 \ No newline at end of file diff --git a/package/linux-headers/5.10.248 b/package/linux-headers/5.10.248 new file mode 120000 index 0000000000..6bdea03c2e --- /dev/null +++ b/package/linux-headers/5.10.248 @@ -0,0 +1 @@ +../../linux/before-6.17 \ No newline at end of file diff --git a/package/linux-headers/5.15.198 b/package/linux-headers/5.15.198 new file mode 120000 index 0000000000..6bdea03c2e --- /dev/null +++ b/package/linux-headers/5.15.198 @@ -0,0 +1 @@ +../../linux/before-6.17 \ No newline at end of file diff --git a/package/linux-headers/6.1.161 b/package/linux-headers/6.1.161 new file mode 120000 index 0000000000..6bdea03c2e --- /dev/null +++ b/package/linux-headers/6.1.161 @@ -0,0 +1 @@ +../../linux/before-6.17 \ No newline at end of file diff --git a/package/linux-headers/6.12.68 b/package/linux-headers/6.12.68 new file mode 120000 index 0000000000..6bdea03c2e --- /dev/null +++ b/package/linux-headers/6.12.68 @@ -0,0 +1 @@ +../../linux/before-6.17 \ No newline at end of file diff --git a/package/linux-headers/6.18.8 b/package/linux-headers/6.18.8 new file mode 120000 index 0000000000..a4e1d3ec9c --- /dev/null +++ b/package/linux-headers/6.18.8 @@ -0,0 +1 @@ +../../linux/from-6.17 \ No newline at end of file diff --git a/package/linux-headers/6.6.112 b/package/linux-headers/6.6.112 new file mode 120000 index 0000000000..6bdea03c2e --- /dev/null +++ b/package/linux-headers/6.6.112 @@ -0,0 +1 @@ +../../linux/before-6.17 \ No newline at end of file diff --git a/package/linux-headers/linux-headers.hash b/package/linux-headers/linux-headers.hash deleted file mode 120000 index 04970e97c1..0000000000 --- a/package/linux-headers/linux-headers.hash +++ /dev/null @@ -1 +0,0 @@ -../../linux/linux.hash \ No newline at end of file