Skip to contentSkip to conversation

package/rustc: Add BR2_riscv_g to condition of tier2 host tools

PATCH In review Yu Chien Peter Lin 1 participant 2 messages Nov 12, 2022 – Nov 13, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rustc: Add BR2_riscv_g to condition of tier2 host tools

BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS should be enabled when BR2_riscv_g is selected, otherwise the packages depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS need to enable BR2_RISCV_ISA_CUSTOM_RV{M,A,F,D,C} explicitly to make rustc available.

---
 package/rustc/Config.in.host | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/rustc/Config.in.host +2 -2
index 822de68dbb..143425f1cd 100644
@@ -61,9 +61,9 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS
 	default y if BR2_powerpc64le && BR2_TOOLCHAIN_USES_GLIBC
 	# riscv64gc-unknown-linux-gnu
 	# "g" stands for imafd, and we also need "c".
-	default y if BR2_RISCV_64 && BR2_RISCV_ISA_RVI && BR2_RISCV_ISA_RVM && \
+	default y if BR2_RISCV_64 && (BR2_riscv_g || BR2_RISCV_ISA_RVI && BR2_RISCV_ISA_RVM && \
 			BR2_RISCV_ISA_RVA && BR2_RISCV_ISA_RVF && \
-			BR2_RISCV_ISA_RVD && BR2_RISCV_ISA_RVC && \
+			BR2_RISCV_ISA_RVD && BR2_RISCV_ISA_RVC) && \
 			BR2_TOOLCHAIN_USES_GLIBC
 	# s390x-unknown-linux-gnu
 	default y if BR2_s390x && BR2_TOOLCHAIN_USES_GLIBC
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 4 lines · Yu Chien Peter Lin

BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS should be enabled when BR2_riscv_g is selected, otherwise the packages depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS need to enable BR2_RISCV_ISA_CUSTOM_RV{M,A,F,D,C} explicitly to make rustc available.

Sorry, I need to enable RVC for rustc, please revoke this patch.

Peter Lin

Quoted 25 lines
---
 package/rustc/Config.in.host | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/rustc/Config.in.host +2 -2
index 822de68dbb..143425f1cd 100644
@@ -61,9 +61,9 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS
 	default y if BR2_powerpc64le && BR2_TOOLCHAIN_USES_GLIBC
 	# riscv64gc-unknown-linux-gnu
 	# "g" stands for imafd, and we also need "c".
-	default y if BR2_RISCV_64 && BR2_RISCV_ISA_RVI && BR2_RISCV_ISA_RVM && \
+	default y if BR2_RISCV_64 && (BR2_riscv_g || BR2_RISCV_ISA_RVI && BR2_RISCV_ISA_RVM && \
 			BR2_RISCV_ISA_RVA && BR2_RISCV_ISA_RVF && \
-			BR2_RISCV_ISA_RVD && BR2_RISCV_ISA_RVC && \
+			BR2_RISCV_ISA_RVD && BR2_RISCV_ISA_RVC) && \
 			BR2_TOOLCHAIN_USES_GLIBC
 	# s390x-unknown-linux-gnu
 	default y if BR2_s390x && BR2_TOOLCHAIN_USES_GLIBC
Signature · 1 line
2.34.1

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