diff mbox series

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

Message ID 20230316090529.199884-16-andrea.righi@canonical.com
State New
Headers show
Series [01/16] UBUNTU: [Packaging] propagate makefile variables to kernelconfig | expand

Commit Message

Andrea Righi March 16, 2023, 9:05 a.m. UTC
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@canonical.com>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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).