Unverified Commit af5dd576 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

zfs: pass kernel build flags correctly

ZFS's autoconf scripts recognize KERNEL_CC, KERNEL_CROSS_COMPILE,
KERNEL_ARCH, etc.  This avoids the need to separately give them as
Make flags, although I'm not sure what the original intention behind
giving the unprefixed flags to configure was — the commit adding that
doesn't say, except that it was to fix cross, which still works after
this change.

This fixes the ZFS kernel module build after the change to use
unwrapped compilers for building the kernel, which previously resulted
in CC etc. being clobbered for the ZFS build, even for non-kernel
parts like the "compiler works" Autoconf check.
parent c8327c22
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -221,11 +221,9 @@ let
          "--with-linux=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
          "--with-linux-obj=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
        ]
        ++ kernelModuleMakeFlags
        ++ map (f: "KERNEL_${f}") kernelModuleMakeFlags
      );

      makeFlags = optionals buildKernel kernelModuleMakeFlags;

      enableParallelBuilding = true;

      doInstallCheck = true;