* [Buildroot] [PATCH] package/rustc: Add BR2_riscv_g to condition of tier2 host tools
@ 2022-11-12 12:51 Yu Chien Peter Lin
2022-11-13 10:38 ` Yu-Chien Peter Lin
0 siblings, 1 reply; 2+ messages in thread
From: Yu Chien Peter Lin @ 2022-11-12 12:51 UTC (permalink / raw)
To: buildroot; +Cc: peterlin
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.
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
---
package/rustc/Config.in.host | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
index 822de68dbb..143425f1cd 100644
--- a/package/rustc/Config.in.host
+++ b/package/rustc/Config.in.host
@@ -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
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] package/rustc: Add BR2_riscv_g to condition of tier2 host tools
2022-11-12 12:51 [Buildroot] [PATCH] package/rustc: Add BR2_riscv_g to condition of tier2 host tools Yu Chien Peter Lin
@ 2022-11-13 10:38 ` Yu-Chien Peter Lin
0 siblings, 0 replies; 2+ messages in thread
From: Yu-Chien Peter Lin @ 2022-11-13 10:38 UTC (permalink / raw)
To: buildroot
On Sat, Nov 12, 2022 at 08:51:13PM +0800, Yu Chien Peter Lin wrote:
> 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
>
> Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
> ---
> package/rustc/Config.in.host | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
> index 822de68dbb..143425f1cd 100644
> --- a/package/rustc/Config.in.host
> +++ b/package/rustc/Config.in.host
> @@ -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
> --
> 2.34.1
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-13 2:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-12 12:51 [Buildroot] [PATCH] package/rustc: Add BR2_riscv_g to condition of tier2 host tools Yu Chien Peter Lin
2022-11-13 10:38 ` Yu-Chien Peter Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox