Skip to content

Commit

Permalink
DLPX-88183 Generate BTF data for ZFS kernel module during git-zfs-make (
Browse files Browse the repository at this point in the history
  • Loading branch information
sdimitro authored Oct 4, 2023
1 parent 0bdff1c commit 118ab7f
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,18 @@
delay: 30
register: result
until: result is succeeded

- shell: ls /lib/modules
register: kernel_versions

#
# In order to generate BTF data when building the ZFS kernel module
# through git-zfs-make we need to provide a symlink of our vmlinux
# (with debug info) in the kernel header source directory which is
# referenced during the kernel module's compilation.
#
- ansible.builtin.file:
src: '/usr/lib/debug/boot/vmlinux-{{ item }}'
dest: '/usr/src/linux-headers-{{ item }}/vmlinux'
state: link
loop: '{{ kernel_versions.stdout_lines }}'

0 comments on commit 118ab7f

Please sign in to comment.