Skip to contentSkip to conversation

linux: always select host-uboot-tools for mips

Buildroot Rapha��l M��lotte via buildroot 1 participant 1 message Oct 16

lore
Share & tools
lore
#0 lore raw

commit: https://gitlab.com/buildroot.org/buildroot/-/commit/a9295cc3e4028ac46840fc209eb6f2be9d9f7cab
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/2026.08.x

Since Buildroot commit 40e266ccb9 [1], host-uboot-tools was always selected for the latest Linux kernel. This change is intended for autobuilders, and was introduced in Buildroot while the latest kernel was 6.12.

However, further investigation seem to indicate that itb images were generated for mips for a much longer time. Linux commit eed0eabd12 [2] seem to enable that image format, and was released in Linux 4.9.

This version being EOL for quite some time, we can therefore assume any "not so old" Linux for mips will need host-uboot-tools to finalize this image, and therefore we should select it when building Linux.

[1] linux: select host-uboot-tools with FIT on mips

    https://gitlab.com/buildroot.org/buildroot/-/commit/40e266ccb9
[2] MIPS: generic: Introduce generic DT-based board support
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eed0eabd12ef061821cbfa20d903476e07645320
(cherry picked from commit 0f7c08d8fb36e6e12522ce6f8012c91ace520204)
[raphael: resolve conflicts]
---
 linux/Config.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
linux/Config.in +3 -3
index 401f2828cb..de1ad9b9a9 100644
@@ -4,6 +4,9 @@ config BR2_LINUX_KERNEL
 	bool "Linux Kernel"
 	select BR2_PACKAGE_HOST_KMOD # Unconditional, even if modules not enabled
 	select BR2_PACKAGE_HOST_IMAGEMAGICK if BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH != ""
+	# mips always generates an ITB image
+	select BR2_PACKAGE_HOST_UBOOT_TOOLS if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
+	select BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
 	help
 	  Enable this option if you want to build a Linux kernel for
 	  your embedded device
@@ -32,9 +35,6 @@ choice
 config BR2_LINUX_KERNEL_LATEST_VERSION
 	bool "Latest version (7.1)"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_7_1 if BR2_KERNEL_HEADERS_AS_KERNEL
-	# mips always generates an ITB image
-	select BR2_PACKAGE_HOST_UBOOT_TOOLS if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
-	select BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
 
 config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
 	bool "Latest CIP SLTS version (5.10.254-cip72)"

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot