package/linux-headers: do not allow old kernel headers on Loongarch

Loongarch support was added to the upstream Linux kernel in version
5.19, so when versions 5.4, 5.10 or 5.15 are selected, the "build" of
the kernel headers fails:

Makefile:717: arch/loongarch/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/loongarch/Makefile'.  Stop.

Fixes:

  https://autobuild.buildroot.net/results/b27fc299d14b7bc59dab5dae6deb9cc8bd400a3d/ (5.15)
  https://autobuild.buildroot.net/results/1621e9de1170acc5229f99568b35155b6c668b05/ (5.10)
  https://autobuild.buildroot.net/results/2a28e37ee8500d165137c14945000770346e9541/ (5.4)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Thomas Petazzoni
2025-08-24 11:02:42 +02:00
committed by Romain Naour
parent ad75a5d478
commit d402ffe276

View File

@@ -26,14 +26,20 @@ config BR2_KERNEL_HEADERS_AS_KERNEL
config BR2_KERNEL_HEADERS_5_4
bool "Linux 5.4.x kernel headers"
# Support was introduced in Linux 5.19
depends on !BR2_loongarch64
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
config BR2_KERNEL_HEADERS_5_10
bool "Linux 5.10.x kernel headers"
# Support was introduced in Linux 5.19
depends on !BR2_loongarch64
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
config BR2_KERNEL_HEADERS_5_15
bool "Linux 5.15.x kernel headers"
# Support was introduced in Linux 5.19
depends on !BR2_loongarch64
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
config BR2_KERNEL_HEADERS_6_1