Fix linux build issues in the autobuilders
cover Fix linux build issues in the autobuilders
Hello,
The four patches in this series aim at fixing recurring issues in our autobuilders affecting the linux kernel package.
Thomas
Thomas Petazzoni (4):
linux: select host-uboot-tools with FIT on mips
linux: select host-uboot-tools on nios2
linux: select proper defconfig on PowerPC
linux: select proper defconfig on ARC 750d/770d
linux/Config.in | 5 +++++ linux/linux.mk | 6 ++++++ 2 files changed, 11 insertions(+)
Signature · 6 lines
2.47.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/4 linux: select host-uboot-tools with FIT on mips
In the latest kernel, FIT images are always generated when building a kernel for MIPS. Note that we build the kernel with:
make all
make <selected-image>
so the selected image through Buildroot options doesn't matter: a FIT image is always generated.
Therefore, in order to fix autobuilder issues, make sure host-uboot-tools with FIT image are always selected when building the latest kernel version. We do not select it in general as custom versions may be different.
Fixes:
http://autobuild.buildroot.net/results/24bd5ae44f4097c374fe43b263254a985e2989d2 (mips)
http://autobuild.buildroot.net/results/d18b458a600f1f4bd7008d13ad2a56cb22ce8a73 (mips64el)
--- linux/Config.in | 3 +++ 1 file changed, 3 insertions(+)
linux/Config.in +3 -0
@@ -30,6 +30,9 @@ choice config BR2_LINUX_KERNEL_LATEST_VERSION bool "Latest version (6.12)" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_12 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.162-cip24)"
Signature · 6 lines
2.47.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/4] linux: select host-uboot-tools with FIT on mips
Quoted 14 lines · Thomas Petazzoni via buildroot
In the latest kernel, FIT images are always generated when building a kernel for MIPS. Note that we build the kernel with:
make all
make <selected-image>so the selected image through Buildroot options doesn't matter: a FIT image is always generated.
Therefore, in order to fix autobuilder issues, make sure host-uboot-tools with FIT image are always selected when building the latest kernel version. We do not select it in general as custom versions may be different.
Quoted 8 lines
Fixes:
http://autobuild.buildroot.net/results/24bd5ae44f4097c374fe43b263254a985e2989d2 (mips)
http://autobuild.buildroot.net/results/d18b458a600f1f4bd7008d13ad2a56cb22ce8a73 (mips64el)
Signed-off-by Thomas Petazzoni <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/4] linux: select host-uboot-tools with FIT on mips
In reply to Thomas Petazzoni via buildrootQuoted 14 lines · Thomas Petazzoni
In the latest kernel, FIT images are always generated when building a kernel for MIPS. Note that we build the kernel with:
make all
make <selected-image>so the selected image through Buildroot options doesn't matter: a FIT image is always generated.
Therefore, in order to fix autobuilder issues, make sure host-uboot-tools with FIT image are always selected when building the latest kernel version. We do not select it in general as custom versions may be different.
Quoted 6 lines
Fixes:
http://autobuild.buildroot.net/results/24bd5ae44f4097c374fe43b263254a985e2989d2 (mips) http://autobuild.buildroot.net/results/d18b458a600f1f4bd7008d13ad2a56cb22ce8a73 (mips64el)Signed-off-by Thomas Petazzoni <[email protected]>
Looks to also happen with 6.11.x, so committed to 2024.11.x - thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/4 linux: select host-uboot-tools on nios2
In reply to Thomas PetazzoniIn the latest kernel, U-Boot images are always generated when building a kernel for NIOS2. Note that we build the kernel with:
make all
make <selected-image>
so the selected image through Buildroot options doesn't matter: a U-Boot image is always generated.
Therefore, in order to fix autobuilder issues, make sure host-uboot-tools are always selected when building the latest kernel version. We do not select it in general as custom versions may be different.
Fixes:
http://autobuild.buildroot.net/results/1d4c249887bdd78dab40152ad3a4fcef16458a1a/
--- linux/Config.in | 2 ++ 1 file changed, 2 insertions(+)
linux/Config.in +2 -0
@@ -33,6 +33,8 @@ config BR2_LINUX_KERNEL_LATEST_VERSION # 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 + # nios2 always generates a U-Boot image + select BR2_PACKAGE_HOST_UBOOT_TOOLS if BR2_nios2 config BR2_LINUX_KERNEL_LATEST_CIP_VERSION bool "Latest CIP SLTS version (5.10.162-cip24)"
Signature · 6 lines
2.47.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/4] linux: select host-uboot-tools on nios2
Quoted 14 lines · Thomas Petazzoni
In the latest kernel, U-Boot images are always generated when building a kernel for NIOS2. Note that we build the kernel with:
make all
make <selected-image>so the selected image through Buildroot options doesn't matter: a U-Boot image is always generated.
Therefore, in order to fix autobuilder issues, make sure host-uboot-tools are always selected when building the latest kernel version. We do not select it in general as custom versions may be different.
Quoted 5 lines
Fixes:
http://autobuild.buildroot.net/results/1d4c249887bdd78dab40152ad3a4fcef16458a1a/Signed-off-by Thomas Petazzoni <[email protected]>
Committed to 2024.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/4 linux: select proper defconfig on PowerPC
In reply to Thomas PetazzoniThe handling of BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG is currently not doing a proper job: it is selecting ppc64le_defconfig if BR2_powerpc64le, and using the default of "defconfig" for everything else.
However:
- Since upstream commit 22f17b02f88b48c01d3ac38d40d2b0b695ab2d10, which landed in Linux 6.8, the default defconfig is ppc64le_defconfig and no longer ppc64_defconfig. This means that despite the condition in linux.mk, we are in fact now always building ppc64le_defconfig.
- It doesn't handle the 32-bit case, as a 64-bit defconfig gets used by default. This causes build failures in the autobuilders.
To fix this we explicitly handle BR2_powerpc64le, BR2_powerpc64 and BR2_powerpc, and use appropriate defconfigs for each case.
Fixes:
http://autobuild.buildroot.net/results/c15eaf2e7455aa265cc045e6d8be7cac5348d925/ (powerpc)
--- linux/linux.mk | 4 ++++ 1 file changed, 4 insertions(+)
linux/linux.mk +4 -0
@@ -343,6 +343,10 @@ LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig else ifeq ($(BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG),y) ifeq ($(BR2_powerpc64le),y) LINUX_KCONFIG_DEFCONFIG = ppc64le_defconfig +else ifeq ($(BR2_powerpc64),y) +LINUX_KCONFIG_DEFCONFIG = ppc64_defconfig +else ifeq ($(BR2_powerpc),y) +LINUX_KCONFIG_DEFCONFIG = ppc_defconfig else LINUX_KCONFIG_DEFCONFIG = defconfig endif
Signature · 6 lines
2.47.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/4] linux: select proper defconfig on PowerPC
Quoted 16 lines · Thomas Petazzoni
The handling of
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIGis currently not doing a proper job: it is selectingppc64le_defconfigifBR2_powerpc64le, and using the default of "defconfig" for everything else.However:
- Since upstream commit
22f17b02f88b48c01d3ac38d40d2b0b695ab2d10, which landed in Linux 6.8, the default defconfig isppc64le_defconfigand no longerppc64_defconfig. This means that despite the condition in linux.mk, we are in fact now always buildingppc64le_defconfig.- It doesn't handle the 32-bit case, as a 64-bit defconfig gets used by default. This causes build failures in the autobuilders.
Quoted 8 lines
To fix this we explicitly handle
BR2_powerpc64le,BR2_powerpc64andBR2_powerpc, and use appropriate defconfigs for each case.Fixes:
http://autobuild.buildroot.net/results/c15eaf2e7455aa265cc045e6d8be7cac5348d925/ (powerpc)Signed-off-by Thomas Petazzoni <[email protected]>
Committed to 2024.02.x and 2024.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/4 linux: select proper defconfig on ARC 750d/770d
In reply to Thomas PetazzoniThe Linux kernel "defconfig" on ARC is haps_hs_smp_defconfig, which cannot be built on ARC 750d/770d targets, so let's use a kernel defconfig that works properly on ARC 750d/770d.
Fixes:
http://autobuild.buildroot.net/results/2913e5958cd6b20dbfdcdad304a5f5a0f8030d8d/
--- linux/linux.mk | 2 ++ 1 file changed, 2 insertions(+)
linux/linux.mk +2 -0
@@ -347,6 +347,8 @@ else ifeq ($(BR2_powerpc64),y) LINUX_KCONFIG_DEFCONFIG = ppc64_defconfig else ifeq ($(BR2_powerpc),y) LINUX_KCONFIG_DEFCONFIG = ppc_defconfig +else ifeq ($(BR2_arc750d)$(BR2_arc770d),y) +LINUX_KCONFIG_DEFCONFIG = axs101_defconfig else LINUX_KCONFIG_DEFCONFIG = defconfig endif
Signature · 6 lines
2.47.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 4/4] linux: select proper defconfig on ARC 750d/770d
Quoted 9 lines · Thomas Petazzoni
The Linux kernel "defconfig" on ARC is
haps_hs_smp_defconfig, which cannot be built on ARC 750d/770d targets, so let's use a kernel defconfig that works properly on ARC 750d/770d.Fixes:
http://autobuild.buildroot.net/results/2913e5958cd6b20dbfdcdad304a5f5a0f8030d8d/Signed-off-by Thomas Petazzoni <[email protected]>
Committed to 2024.02.x and 2024.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot