Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
zfs: fix kernel module cross-compile #65490
Motivation for this change
Allows the ZFS kernel module to be cross-compiled. This enables the use of cross compiled kernels on systems using ZFS.
Some dependencies were removed from the kernel module build (they were only needed by the userspace tools) to avoid having to fix more cross issues than necessary. In the process of working on this PR I fixed the cross-build of
I also cleaned up some of the patching commands in
At some point in the past, kernel module compression was enabled, which prevents Nix from picking up dependencies of the kernel modules. To fix this, I manually created a file to reference the missing dependencies.
I have been successfully running this on an aarch64 machine for several months.