aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-09-09 12:25:54 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-09-09 12:41:13 +0200
commit37567324a4c0378b10a8db3c14ada4af178d41f6 (patch)
tree57735c618c3242562649d3bd5a6a57e2c83b04b3
parent806928f0d9c7e77a6123e255a1fe834e129056c4 (diff)
downloadbuildroot-37567324a4c0378b10a8db3c14ada4af178d41f6.tar.gz
buildroot-37567324a4c0378b10a8db3c14ada4af178d41f6.tar.bz2
package/linux-headers: the latest headers are 5.7
In commit c2009e9f757fe759c74406f1025967b7b8e77f0a ("package/linux-headers: license files hashes only valid for latest version"), we introduced BR2_KERNEL_HEADERS_LATEST, which should only be set for the most recent kernel headers versions. Indeed, the COPYING file of Linux has changed before/after Linux 5.6, causing its hash file to be different. Since linux-headers uses linux/linux.hash as the hash file, and this hash file contains the COPYING hash of Linux >= 5.6, we cannot use that hash for Linux versions older than 5.6. When newer versions of the headers than 5.4 were added, this BR2_KERNEL_HEADERS_LATEST was not moved as it should have been. We fix this, which fixes a legal-info failure happening when Linux kernel headers 5.4 are used: >>> linux-headers 5.4.61 Patching >>> linux-headers 5.4.61 Collecting legal info ERROR: COPYING has wrong sha256 hash: ERROR: expected: fb5a425bd3b3cd6071a3a9aff9909a859e7c1158d54d32e07658398cd67eb6a0 ERROR: got : ee5808b032a67f587d3541099d46de34f5bec8cd5976114ba07f1299ee6001ff ERROR: Incomplete download, or man-in-the-middle (MITM) attack make: *** [package/linux-headers/linux-headers.mk:158: linux-headers-legal-info] Error 1 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/linux-headers/Config.in.host2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
index a04866d8cb..833b81f79f 100644
--- a/package/linux-headers/Config.in.host
+++ b/package/linux-headers/Config.in.host
@@ -53,11 +53,11 @@ config BR2_KERNEL_HEADERS_4_19
config BR2_KERNEL_HEADERS_5_4
bool "Linux 5.4.x kernel headers"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
- select BR2_KERNEL_HEADERS_LATEST
config BR2_KERNEL_HEADERS_5_7
bool "Linux 5.7.x kernel headers"
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
+ select BR2_KERNEL_HEADERS_LATEST
config BR2_KERNEL_HEADERS_VERSION
bool "Manually specified Linux version"