HomeFreeBSD

linux: Fix out-of-src builds

Description

linux: Fix out-of-src builds

The linux kernel modules haven't been building successfully when the
build occurs in a separate directory than the source code, which is a
common build pattern in Linux. Was not able to determine the root cause,
but the %.o targets in subdirectories are no longer being matched by the
pattern targets in the Linux Kbuild system. This change fixes the issue
by dynamically creating the missing ones inside our Kbuild.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #17517

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Jul 24 2025, 10:38 PM
GitHub <noreply@github.com>Committed on Jul 24 2025, 10:38 PM
Parents
rG00ce064d8f9c: spa: update blkptr diagram to include vdev padding on encrypted blocks
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG5a9b9c7f8789: linux: Fix out-of-src builds (authored by Coleman Kane <ckane@colemankane.org>).Jul 24 2025, 10:38 PM