package/linux-headers: do not allow old kernel headers on Loongarch
PATCH 1/2 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)
--- package/linux-headers/Config.in.host | 6 ++++++ 1 file changed, 6 insertions(+)
package/linux-headers/Config.in.host +6 -0
@@ -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
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 linux: CIP 5.10 versions not available for Loongarch
Loongarch support was added upstream in Linux 5.19, so it is not available in the CIP versions that are based on 5.10. Prevent from selecting those kernel versions when Loongarch is used.
Fixes:
https://autobuild.buildroot.net/results/eebcf605f8f868a668960152f30c08f700405a4d/
--- linux/Config.in | 4 ++++ 1 file changed, 4 insertions(+)
linux/Config.in +4 -0
@@ -36,6 +36,8 @@ config BR2_LINUX_KERNEL_LATEST_VERSION config BR2_LINUX_KERNEL_LATEST_CIP_VERSION bool "Latest CIP SLTS version (5.10.162-cip24)" + # Support was introduced in Linux 5.19 + depends on !BR2_loongarch64 select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10 if BR2_KERNEL_HEADERS_AS_KERNEL help CIP launched in the spring of 2016 to address the needs of
@@ -56,6 +58,8 @@ config BR2_LINUX_KERNEL_LATEST_CIP_VERSION config BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION bool "Latest CIP RT SLTS version (5.10.162-cip24-rt10)" + # Support was introduced in Linux 5.19 + depends on !BR2_loongarch64 select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10 if BR2_KERNEL_HEADERS_AS_KERNEL help Same as the CIP version, but this is the PREEMPT_RT realtime
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Thomas, All,
Le 24/08/2025 à 11:02, Thomas Petazzoni via buildroot a écrit :
Quoted 6 lines
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.
Meh, I missed that while reviewing.
Series applied to master, thanks.
Best regards,
Romain
Quoted 27 lines
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 <[email protected]>--- package/linux-headers/Config.in.host | 6 ++++++ 1 file changed, 6 insertions(+)package/linux-headers/Config.in.host +3
-0@@ -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
package/linux-headers/Config.in.host config BR2_KERNEL_HEADERS_AS_KERNEL · line 45
Quoted 10 lines
package/linux-headers/Config.in.host +3
-0+ 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
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot