[PATCH 4/4] rust: Enable for ppc64le

From: Michael Ellerman
Date: Mon Mar 22 2021 - 23:27:38 EST


All the pieces are in place now for us to enable building rust support
on ppc64le.

Only works with clang for now.

Signed-off-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
---
init/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/Kconfig b/init/Kconfig
index d73ac9de186d..ddc2fda1a22c 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -58,7 +58,7 @@ config LLD_VERSION
default 0

config HAS_RUST
- depends on ARM64 || X86_64
+ depends on ARM64 || X86_64 || (PPC64 && CPU_LITTLE_ENDIAN && CC_IS_CLANG)
def_bool $(success,$(RUSTC) --version)

config RUSTC_VERSION
--
2.25.1