[Buildroot] [PATCH 1/1] toolchain/toolchain-buildroot: PPC64 support in musl requires ALTIVEC
Romain Naour
romain.naour at smile.fr
Fri Jan 31 14:55:55 UTC 2020
Hi Vincent,
Le 31/01/2020 à 15:41, Vincent Fazio a écrit :
> musl assumes all PPC64(LE) CPUs support ALTIVEC instructions. However,
> the e5500 does not support ALTIVEC so builds targeting this CPU using
> musl will generate illegal instructions.
>
> Disable musl if the PPC64(LE) CPU does not support ALTIVEC instructions.
Thanks for this patch.
Can you add these two links from my toolchains-builder instance:
https://gitlab.com/kubu93/toolchains-builder/-/jobs/418092743
https://gitlab.com/kubu93/toolchains-builder/-/jobs/418092744
Also I'm adding Matt in Cc:
Best regards,
Romain
>
> Signed-off-by: Vincent Fazio <vfazio at xes-inc.com>
> ---
> toolchain/toolchain-buildroot/Config.in | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
> index a980f766ac..09a46822c9 100644
> --- a/toolchain/toolchain-buildroot/Config.in
> +++ b/toolchain/toolchain-buildroot/Config.in
> @@ -83,8 +83,10 @@ config BR2_TOOLCHAIN_BUILDROOT_MUSL
> bool "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_RISCV_64 || BR2_sh || BR2_x86_64
> + BR2_mips64el || BR2_or1k || BR2_powerpc || BR2_RISCV_64 || \
> + BR2_sh || BR2_x86_64 || \
> + ((BR2_powerpc64 || BR2_powerpc64le) && BR2_POWERPC_CPU_HAS_ALTIVEC)
> + # musl assumes all PPC64 targets support ALTIVEC instructions
> 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.
>
More information about the buildroot
mailing list