From 98018cce2c85bf73b651e608ab797c9d96b9d737 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Fri, 10 Sep 2021 14:42:17 -0700 Subject: linuxPackages.bbswitch: use kernel's make flags We should be using whatever makeflags were used to build the kernel itself, otherwise clang-built kernels cannot use the module. --- pkgs/os-specific/linux/bbswitch/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/os-specific/linux/bbswitch') diff --git a/pkgs/os-specific/linux/bbswitch/default.nix b/pkgs/os-specific/linux/bbswitch/default.nix index a64e1297ea0..fbd34afdaf8 100644 --- a/pkgs/os-specific/linux/bbswitch/default.nix +++ b/pkgs/os-specific/linux/bbswitch/default.nix @@ -36,6 +36,8 @@ stdenv.mkDerivation { --replace "/lib/modules" "${kernel.dev}/lib/modules" ''; + makeFlags = kernel.makeFlags; + installPhase = '' mkdir -p $out/lib/modules/${kernel.modDirVersion}/misc cp bbswitch.ko $out/lib/modules/${kernel.modDirVersion}/misc -- cgit 1.4.1