3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #167059 from squalus/b43cross

b43Firmware: support cross compile
This commit is contained in:
Guillaume Girol 2022-04-04 19:20:23 +00:00 committed by GitHub
commit 09fa2fb9e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -11,7 +11,10 @@ stdenv.mkDerivation rec {
patches = [ ./no-root-install.patch ];
makeFlags = [ "PREFIX=$(out)" ];
makeFlags = [
"PREFIX=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"
];
meta = {
description = "Firmware extractor for cards supported by the b43 kernel module";

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation {
sha256 = "0vz4ka8gycf72gmnaq61k8rh8y17j1wm2k3fidxvcqjvmix0drzi";
};
buildInputs = [ b43FirmwareCutter ];
nativeBuildInputs = [ b43FirmwareCutter ];
installPhase = ''
mkdir -p $out/lib/firmware

View file

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "0baw6gcnrhxbb447msv34xg6rmlcj0gm3ahxwvdwfcvq4xmknz50";
};
buildInputs = [ b43FirmwareCutter ];
nativeBuildInputs = [ b43FirmwareCutter ];
sourceRoot = ".";