HomeFreeBSD

Support for cross-compiling kernel modules

Description

Support for cross-compiling kernel modules

In order to correctly cross-compile, one has to pass ARCH and
CROSS_COMPILE make flags to kernel module build calls. Facilitate this
in the same way as for custom CC flag by recognizing KERNEL_-prefixed
configure environment variables of same name.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Closes #16924

Details

Provenance
n0-1 <p.github@nwl.cc>Authored on Jan 6 2025, 1:27 AM
Tony Hutter <hutter2@llnl.gov>Committed on May 27 2025, 9:54 PM
Parents
rG92ae463715cd: fix: block incompatible kernel from being installed
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGf86e7140685c: Support for cross-compiling kernel modules (authored by n0-1 <p.github@nwl.cc>).May 27 2025, 9:54 PM