Skip to content

Commit a5ef0e9

Browse files
dkrucesmcgrof
authored andcommitted
bootlinux: diy: add callback support to 9P build tasks
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]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent e47c3d9 commit a5ef0e9

File tree

1 file changed

+24
-0
lines changed
  • playbooks/roles/bootlinux/tasks/build

1 file changed

+24
-0
lines changed

playbooks/roles/bootlinux/tasks/build/9p.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
- target_linux_git is string and target_linux_git.startswith('/')
2626
run_once: true
2727
delegate_to: localhost
28+
vars:
29+
ansible_callback_diy_runner_on_ok_msg: |
30+
$ {{ ansible_callback_diy.result.output.cmd | join(' ') }}
31+
{{ ansible_callback_diy.result.output.stdout | default('') }}
2832
2933
- name: Check if target directory exists when using 9p and Linux CLI was set
3034
ansible.builtin.stat:
@@ -79,6 +83,10 @@
7983
- target_linux_extra_patch is defined
8084
run_once: true
8185
delegate_to: localhost
86+
vars:
87+
ansible_callback_diy_runner_on_ok_msg: |
88+
$ {{ ansible_callback_diy.result.output.cmd | join(' ') }}
89+
{{ ansible_callback_diy.result.output.stdout | default('') }}
8290
8391
- name: Variable values
8492
ansible.builtin.debug:
@@ -96,6 +104,10 @@
96104
- bootlinux_b4_am_this_host|bool
97105
run_once: true
98106
delegate_to: localhost
107+
vars:
108+
ansible_callback_diy_runner_on_ok_msg: |
109+
$ {{ ansible_callback_diy.result.output.cmd | join(' ') }}
110+
{{ ansible_callback_diy.result.output.stdout | default('') }}
99111
100112
- name: Copy configuration for Linux {{ target_linux_tree }} on the control node
101113
ansible.builtin.template:
@@ -111,6 +123,10 @@
111123
- (active_linux_localversion is defined and active_linux_localversion != "") or (target_linux_localversion is defined and target_linux_localversion != "")
112124
run_once: true
113125
delegate_to: localhost
126+
vars:
127+
ansible_callback_diy_runner_on_ok_msg: |
128+
$ {{ ansible_callback_diy.result.output.cmd | join(' ') }}
129+
{{ ansible_callback_diy.result.output.stdout | default('') }}
114130
115131
- name: Configure Linux {{ target_linux_tree }} on the control node
116132
ansible.builtin.shell: |
@@ -124,13 +140,21 @@
124140
executable: /bin/bash
125141
run_once: true
126142
delegate_to: localhost
143+
vars:
144+
ansible_callback_diy_runner_on_ok_msg: |
145+
$ {{ ansible_callback_diy.result.output.cmd | join(' ') }}
146+
{{ ansible_callback_diy.result.output.stdout | default('') }}
127147
128148
- name: Get nproc on the control node
129149
ansible.builtin.command: "{{ num_jobs }}"
130150
tags: ["build-linux", "cxl-build"]
131151
register: nproc_9p
132152
run_once: true
133153
delegate_to: localhost
154+
vars:
155+
ansible_callback_diy_runner_on_ok_msg: |
156+
$ {{ ansible_callback_diy.result.output.cmd | join(' ') }}
157+
{{ ansible_callback_diy.result.output.stdout | default('') }}
134158
135159
- name: Get kernelversion
136160
community.general.make:

0 commit comments

Comments
 (0)