mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-26 21:09:43 +01:00
firmware: Add missing firmware for bluetooth
This commit is contained in:
parent
7e36d3cc96
commit
8c8105d093
1 changed files with 22 additions and 13 deletions
|
@ -1,26 +1,35 @@
|
|||
{ stdenv
|
||||
, fetchFromGitLab
|
||||
, runCommandNoCC
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "pinebookpro-firmware";
|
||||
version = "2019-12-04";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
let
|
||||
pinebook-firmware = fetchFromGitLab {
|
||||
domain = "gitlab.manjaro.org";
|
||||
owner = "tsys";
|
||||
repo = "pinebook-firmware";
|
||||
rev = "937f0d52d27d7712da6a008d35fd7c2819e2b077";
|
||||
sha256 = "0qldxxlxk6f3gymkljphwy7dz3cl1gxsnijhng2l7rkrh7h6wgi2";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/firmware/
|
||||
cp -rv brcm $out/lib/firmware/brcm
|
||||
cp -rv rockchip $out/lib/firmware/rockchip
|
||||
'';
|
||||
|
||||
ap6256-firmware = fetchFromGitLab {
|
||||
domain = "gitlab.manjaro.org";
|
||||
owner = "manjaro-arm";
|
||||
repo = "packages%2Fcommunity%2Fap6256-firmware";
|
||||
rev = "a30bf312b268eab42d38fab0cc3ed3177895ff5d";
|
||||
sha256 = "14gyb99j85xw07wrr9lilb1jz68y6r0n0b6x4ldl7d6igs988qwb";
|
||||
};
|
||||
in
|
||||
runCommandNoCC "pinebookpro-firmware-2020-02-08" {
|
||||
meta = with stdenv.lib; {
|
||||
license = licenses.unfreeRedistributable;
|
||||
};
|
||||
}
|
||||
} ''
|
||||
(PS4=" $ "; set -x
|
||||
mkdir -p $out/lib/firmware/{brcm,rockchip}
|
||||
(cd ${ap6256-firmware}
|
||||
cp -fv *.hcd *blob *.bin *.txt $out/lib/firmware/brcm/
|
||||
)
|
||||
cp -fv ${pinebook-firmware}/brcm/* $out/lib/firmware/brcm/
|
||||
cp -fv ${pinebook-firmware}/rockchip/* $out/lib/firmware/rockchip/
|
||||
)
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue