@@ -5,6 +5,7 @@ config BR2_PACKAGE_GLIBC_ARCH_SUPPORTS
default y if BR2_aarch64
default y if BR2_aarch64_be
default y if BR2_i386
+ default y if BR2_loongarch64
default y if BR2_m68k_m68k
default y if BR2_mips
default y if BR2_mipsel
@@ -34,6 +35,7 @@ config BR2_PACKAGE_GLIBC_SUPPORTS
# toolchain/toolchain-buildroot/Config.in
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || !BR2_powerpc64le
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19 || !BR2_loongarch64
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 || !BR2_MIPS_NAN_2008
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4 || !BR2_RISCV_32
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 || !BR2_RISCV_64
@@ -5,6 +5,7 @@ config BR2_PACKAGE_MUSL_ARCH_SUPPORTS
default y if BR2_arm
default y if BR2_armeb
default y if BR2_i386
+ default y if BR2_loongarch64
default y if BR2_m68k_m68k
default y if BR2_microblaze
default y if BR2_mips
@@ -48,6 +48,10 @@ comment "glibc needs a toolchain w/ kernel headers >= 3.2"
depends on BR2_PACKAGE_GLIBC_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
+comment "glibc on LoongArch64 needs a toolchain w/ headers >= 5.19"
+ depends on BR2_loongarch64
+ depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19
+
# glibc >= 2.26 require kernel headers >= 3.10 on powerpc64le.
comment "glibc on powerpc64le needs a toolchain w/ headers >= 3.10"
depends on BR2_powerpc64le
Both musl and glibc have proper LoongArch support. They all require kernel header from at least 5.19 to build. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> --- package/glibc/Config.in | 2 ++ package/musl/Config.in | 1 + toolchain/toolchain-buildroot/Config.in | 4 ++++ 3 files changed, 7 insertions(+)