From bc28c3df6fb6a812de689a25d0d2dea1388b4b9d Mon Sep 17 00:00:00 2001 From: Jiaxun Yang Date: Thu, 31 Jul 2025 15:44:01 +0200 Subject: [PATCH] arch/loongarch: Mark lp64f and lp64s as broken Toolchain failed to bootstrap with LP64F and LP64S ABIs. As reported by Julien in [1]: Testing the "lp64f" ABI with commands: cat >.config <.config < Cc: Xi Ruoyao Signed-off-by: Jiaxun Yang [Julien: - add link to mailing list discussion - add configuration to reproduce issues to help future investigations - add links to autobuilder failures in commit log - mark BR2_LOONGARCH_FPU_{32,NONE} as broken ] Reviewed-by: Jiaxun Yang Signed-off-by: Julien Olivain --- arch/Config.in.loongarch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/Config.in.loongarch b/arch/Config.in.loongarch index fa1b13bc52..4b50b98710 100644 --- a/arch/Config.in.loongarch +++ b/arch/Config.in.loongarch @@ -38,12 +38,16 @@ config BR2_LOONGARCH_FPU_64 config BR2_LOONGARCH_FPU_32 bool "32" + # Only supported by lp64s and lp64f ABIs which are marked as broken + depends on BR2_BROKEN help Allow the use of hardware floating-point instructions for 32-bit operations only. config BR2_LOONGARCH_FPU_NONE bool "none" + # Only supported by lp64s ABI which is marked as broken + depends on BR2_BROKEN help Prevent the use of hardware floating-point instructions. endchoice @@ -87,11 +91,15 @@ config BR2_LOONGARCH_ABI_LP64D config BR2_LOONGARCH_ABI_LP64F bool "lp64f" depends on BR2_ARCH_IS_64 + # Failed to build host GCC initial, pending investigation + depends on BR2_BROKEN depends on BR2_LOONGARCH_FPU_64 || BR2_LOONGARCH_FPU_32 config BR2_LOONGARCH_ABI_LP64S bool "lp64s" depends on BR2_ARCH_IS_64 + # GCC can't find libraries, pending investigation + depends on BR2_BROKEN endchoice config BR2_ARCH