summary refs log tree commit diff
path: root/pkgs/os-specific/linux/bbswitch
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2021-09-10 14:42:17 -0700
committerBernardo Meurer <bernardo@meurer.org>2021-09-10 14:42:17 -0700
commit98018cce2c85bf73b651e608ab797c9d96b9d737 (patch)
tree8df3ee447736f032088074ec32d2bdada7ebe159 /pkgs/os-specific/linux/bbswitch
parent6e4c36b3f7ec1400bd92ef42567b687f20f3c3c4 (diff)
downloadnixpkgs-98018cce2c85bf73b651e608ab797c9d96b9d737.tar
nixpkgs-98018cce2c85bf73b651e608ab797c9d96b9d737.tar.gz
nixpkgs-98018cce2c85bf73b651e608ab797c9d96b9d737.tar.bz2
nixpkgs-98018cce2c85bf73b651e608ab797c9d96b9d737.tar.lz
nixpkgs-98018cce2c85bf73b651e608ab797c9d96b9d737.tar.xz
nixpkgs-98018cce2c85bf73b651e608ab797c9d96b9d737.tar.zst
nixpkgs-98018cce2c85bf73b651e608ab797c9d96b9d737.zip
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.
Diffstat (limited to 'pkgs/os-specific/linux/bbswitch')
-rw-r--r--pkgs/os-specific/linux/bbswitch/default.nix2
1 files changed, 2 insertions, 0 deletions
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