[PATCH 15/16] UBUNTU: SAUCE: enforce rust availability only on x86_64

Andrea Righi andrea.righi at canonical.com
Thu Mar 16 09:05:28 UTC 2023


When cross-compiling for architectures different than x86_64 we may
incorrectly think that rust is available by checking the host rust
toolchain.

Make sure to enforce CONFIG_RUST_IS_AVAILABLE to be off on architectures
different than x86_64.

Signed-off-by: Andrea Righi <andrea.righi at canonical.com>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init/Kconfig b/init/Kconfig
index 4a1d2bfdcaad..7c0d75c7284e 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -62,6 +62,7 @@ config LLD_VERSION
 
 config RUST_IS_AVAILABLE
 	def_bool $(success,$(srctree)/scripts/rust_is_available.sh)
+	depends on X86_64
 	help
 	  This shows whether a suitable Rust toolchain is available (found).
 
-- 
2.39.2




More information about the kernel-team mailing list