[Buildroot] [PATCH] package/rustc: Add BR2_riscv_g to condition of tier2 host tools
Yu-Chien Peter Lin
peterlin at andestech.com
Sun Nov 13 10:38:26 UTC 2022
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 at 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
>
More information about the buildroot
mailing list