@@ -263,8 +263,11 @@ class Toolchain:
# glibc doesn't support static only configuration
depends.append("!BR2_STATIC_LIBS")
selects.append("BR2_TOOLCHAIN_EXTERNAL_GLIBC")
- # all glibc toolchains have RPC support
- selects.append("BR2_TOOLCHAIN_HAS_NATIVE_RPC")
+
+ # riscv32 has been merged into glibc 2.33 where RPC support has been removed.
+ if not self.arch.startswith("riscv32"):
+ # all glibc < 2.32 toolchains have RPC support
+ selects.append("BR2_TOOLCHAIN_HAS_NATIVE_RPC")
elif frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL"):
# musl needs mmu support
depends.append("BR2_USE_MMU")
riscv32 has been merged into glibc 2.33 where RPC support has been removed [1]. Add a special handling for the riscv32 Bootlin bleeding-edge 2020.08-1 toolchain since it used a re-2.33 glibc version where RPC support has been removed [2]. Other glibc Bootlin toolchain use glibc 2.31 with RPC support enabled. This special handling must be removed when all Bootlin toolchain has been rebuild with glibc > 2.32. [1] https://sourceware.org/pipermail/libc-announce/2020/000029.html [2] https://git.buildroot.net/buildroot/commit/?id=a4889545aa653e7f001f212eda169e7d676aefc0 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> --- support/scripts/gen-bootlin-toolchains | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)