[1/1] rustc: enable on powerpc64le architecture

Message ID abf9f60bdc49092eeebebd1be616cc29f6dd54e7.1526452144.git.sbobroff@linux.ibm.com
State Accepted
Headers show
Series
  • [1/1] rustc: enable on powerpc64le architecture
Related show

Commit Message

Sam Bobroff May 16, 2018, 6:29 a.m.
Rust supports powerpc64le to the same level as powerpc64, so allow it.

Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
---
Hi Buildroot,

I've tested this on a powerpc64le Power8 machine using the pre-built toolchain
(it is available for this arch), and it works fine. Also, thanks to Eric Le
Bihan for the inital work!

Cheers,
Sam.

 package/rustc/Config.in.host | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Eric Le Bihan May 16, 2018, 6:49 p.m. | #1
Hi!

On 2018-05-16 16:29, Sam Bobroff wrote:
> Rust supports powerpc64le to the same level as powerpc64, so allow it.
>
> Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
> ---
> Hi Buildroot,
>
> I've tested this on a powerpc64le Power8 machine using the pre-built toolchain
> (it is available for this arch), and it works fine. Also, thanks to Eric Le
> Bihan for the inital work!

Tested OK with pre-built and full rustc variants using
qemu_ppc64le_pseries_defconfig.

Tested-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Acked-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>

Regards,

--
ELB
Thomas Petazzoni May 19, 2018, 12:18 p.m. | #2
Hello,

On Wed, 16 May 2018 16:29:09 +1000, Sam Bobroff wrote:
> Rust supports powerpc64le to the same level as powerpc64, so allow it.
> 
> Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
> ---
> Hi Buildroot,

Applied to next, thanks.

Thomas

Patch

diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
index 1c79eededc..84a8e0f90b 100644
--- a/package/rustc/Config.in.host
+++ b/package/rustc/Config.in.host
@@ -7,7 +7,7 @@  config BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
 	default y if BR2_aarch64
 	default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 \
 	        && !(BR2_ARM_CPU_ARMV7A && BR2_ARM_EABI)
-	default y if BR2_powerpc || BR2_powerpc64
+	default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
 	default y if (BR2_mips || BR2_mipsel) && !BR2_MIPS_CPU_MIPS32R6
 	default y if (BR2_mips64 || BR2_mips64el) && !BR2_MIPS_CPU_MIPS64R6 \
 		&& BR2_MIPS_NABI64