[Buildroot] [PATCH 2/2] toolchain: enable musl for riscv

Mark Corbin mark.corbin at embecosm.com
Tue Jul 30 14:28:00 UTC 2019


On 30/07/2019 11:23, Jörg Krause wrote:
> Since version 1.1.23 musl supports the RISC-V architecture.
>
> Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> ---
>  toolchain/toolchain-buildroot/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
> index d9f16e2a3a..b4168bd40c 100644
> --- a/toolchain/toolchain-buildroot/Config.in
> +++ b/toolchain/toolchain-buildroot/Config.in
> @@ -84,7 +84,7 @@ config BR2_TOOLCHAIN_BUILDROOT_MUSL
>  	depends on BR2_aarch64	   || BR2_arm   || BR2_armeb   || BR2_i386 || \
>  		   BR2_microblaze  || BR2_mips  || BR2_mipsel  || BR2_mips64 || \
>  		   BR2_mips64el    || BR2_or1k  || BR2_powerpc || BR2_powerpc64 || \
> -		   BR2_powerpc64le || BR2_sh    || BR2_x86_64
> +		   BR2_powerpc64le || BR2_riscv || BR2_sh      || BR2_x86_64
>  	depends on !BR2_powerpc_SPE # not supported, build breaks
>  	# sh2 nommu is supported by musl, but we don't have support
>  	# for it in Buildroot.

Successfully builds 'qemu_riscv64_virt_defconfig' and boots under qemu
3.1.0 to a working system.

Tested-by: Mark Corbin <mark.corbin at embecosm.com>

-- 
Mark Corbin
Embecosm Ltd.
https://www.embecosm.com


More information about the buildroot mailing list