[PATCH 3/5] bootlinux: Integrate Rust toolchain dependencies

Luis Chamberlain <[email protected]> Fri, 17 Oct 2025 19:32:15 -0700
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
Integrate the generic install-rust-deps role into bootlinux to ensure
Rust toolchain is available for kernel builds that may need it.

This enables kernel configurations that use Rust support, ensuring the
necessary build dependencies (cargo, rustc, pkg-config) are installed
before attempting kernel compilation.

Generated-by: Claude AI
Signed-off-by: Luis Chamberlain <[email protected]>
---
 playbooks/roles/bootlinux/tasks/main.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/playbooks/roles/bootlinux/tasks/main.yml b/playbooks/roles/bootlinux/tasks/main.yml
index eff6fb6b..da42612e 100644
--- a/playbooks/roles/bootlinux/tasks/main.yml
+++ b/playbooks/roles/bootlinux/tasks/main.yml
@@ -16,6 +16,13 @@
   when:
     - not workflow_linux_packaged|bool
 
+# Install generic Rust toolchain dependencies
+- name: Install Rust build dependencies
+  ansible.builtin.include_role:
+    name: install-rust-deps
+  when:
+    - not workflow_linux_packaged|bool
+
 # Distro specific
 - name: Install dependencies to build and install the Linux kernel
   ansible.builtin.import_tasks:
-- 
2.51.0