rtl88x2bu: pass makeFlags from kernel

This commit is contained in:
Nick Cao 2022-02-10 10:40:05 +08:00
parent 86ec7c438c
commit 271699dcc5
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "pic" ];
nativeBuildInputs = [ bc ];
buildInputs = kernel.moduleBuildDependencies;
nativeBuildInputs = [ bc ] ++ kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags;
prePatch = ''
prePatch = ''
substituteInPlace ./Makefile \
--replace /lib/modules/ "${kernel.dev}/lib/modules/" \
--replace '$(shell uname -r)' "${kernel.modDirVersion}" \