From b2fdc16c479b7d430cda57df10371c80dddb56ca Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 21 Sep 2024 18:32:57 +0200 Subject: [PATCH] package/linux-headers: default to old kernel version Currently, there is no default value in the choice for the custom kernel version, and the latest version is at the top of the list. This means tha a defconfig that uses the latest version does not get the symbol written in it, and thus when a newer version is latter added, the defconfig is then incorrect. To kinda-workaround the issue, make the oldest, pre-3.0 version the default: this is always going to be the oldest version, we're not going to add anything older than that, so defconfigs that use that version will not have it written but that will always yield it back. Conversely, all other defconfigs will get the kernel version written in them, so it will stick even when we add newer versions. Reported-by: Edgar Bonet Signed-off-by: Yann E. MORIN Signed-off-by: Arnout Vandecappelle --- package/linux-headers/Config.in.host | 1 + 1 file changed, 1 insertion(+) diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host index 067c3b96aa..eac93ce1ce 100644 --- a/package/linux-headers/Config.in.host +++ b/package/linux-headers/Config.in.host @@ -113,6 +113,7 @@ endif choice bool "Custom kernel headers series" + default BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_REALLY_OLD depends on !BR2_LINUX_KERNEL_LATEST_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL depends on !BR2_LINUX_KERNEL_LATEST_CIP_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL depends on !BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL