[PATCH 7/9] bootlinux: diy: add callback support to 9P build tasks
Daniel Gomez <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
From: Daniel Gomez <[email protected]> Adds DIY callback variables to 9P build process tasks to display executed commands and output: - Git configuration: Shows git safe directory setup - Patch application: Shows git am commands for kernel patches - B4 patch series: Shows b4 am pipeline for applying patch sets - Local version: Shows echo commands for kernel version customization - Kernel config: Shows make oldconfig process and responses - CPU detection: Shows nproc command for build parallelization This improves visibility into the 9P kernel build workflow by showing: - Git operations for patch management - Build configuration process - Patch application from mailing lists via b4 - Kernel configuration and build preparation steps Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]> --- playbooks/roles/bootlinux/tasks/build/9p.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/playbooks/roles/bootlinux/tasks/build/9p.yml b/playbooks/roles/bootlinux/tasks/build/9p.yml index 7474b9d0..acd69dc2 100644 --- a/playbooks/roles/bootlinux/tasks/build/9p.yml +++ b/playbooks/roles/bootlinux/tasks/build/9p.yml @@ -25,6 +25,10 @@ - target_linux_git is string and target_linux_git.startswith('/') run_once: true delegate_to: localhost + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Check if target directory exists when using 9p and Linux CLI was set ansible.builtin.stat: @@ -79,6 +83,10 @@ - target_linux_extra_patch is defined run_once: true delegate_to: localhost + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Variable values ansible.builtin.debug: @@ -96,6 +104,10 @@ - bootlinux_b4_am_this_host|bool run_once: true delegate_to: localhost + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Copy configuration for Linux {{ target_linux_tree }} on the control node ansible.builtin.template: @@ -111,6 +123,10 @@ - (active_linux_localversion is defined and active_linux_localversion != "") or (target_linux_localversion is defined and target_linux_localversion != "") run_once: true delegate_to: localhost + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Configure Linux {{ target_linux_tree }} on the control node ansible.builtin.shell: | @@ -124,6 +140,10 @@ executable: /bin/bash run_once: true delegate_to: localhost + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Get nproc on the control node ansible.builtin.command: "{{ num_jobs }}" @@ -131,6 +151,10 @@ register: nproc_9p run_once: true delegate_to: localhost + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Get kernelversion community.general.make: -- 2.50.1