mirror of
https://github.com/samueldr/wip-pinebook-pro.git
synced 2024-11-27 05:19:44 +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
|
{ stdenv
|
||||||
, fetchFromGitLab
|
, fetchFromGitLab
|
||||||
|
, runCommandNoCC
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
let
|
||||||
pname = "pinebookpro-firmware";
|
pinebook-firmware = fetchFromGitLab {
|
||||||
version = "2019-12-04";
|
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
|
||||||
domain = "gitlab.manjaro.org";
|
domain = "gitlab.manjaro.org";
|
||||||
owner = "tsys";
|
owner = "tsys";
|
||||||
repo = "pinebook-firmware";
|
repo = "pinebook-firmware";
|
||||||
rev = "937f0d52d27d7712da6a008d35fd7c2819e2b077";
|
rev = "937f0d52d27d7712da6a008d35fd7c2819e2b077";
|
||||||
sha256 = "0qldxxlxk6f3gymkljphwy7dz3cl1gxsnijhng2l7rkrh7h6wgi2";
|
sha256 = "0qldxxlxk6f3gymkljphwy7dz3cl1gxsnijhng2l7rkrh7h6wgi2";
|
||||||
};
|
};
|
||||||
|
ap6256-firmware = fetchFromGitLab {
|
||||||
installPhase = ''
|
domain = "gitlab.manjaro.org";
|
||||||
mkdir -p $out/lib/firmware/
|
owner = "manjaro-arm";
|
||||||
cp -rv brcm $out/lib/firmware/brcm
|
repo = "packages%2Fcommunity%2Fap6256-firmware";
|
||||||
cp -rv rockchip $out/lib/firmware/rockchip
|
rev = "a30bf312b268eab42d38fab0cc3ed3177895ff5d";
|
||||||
'';
|
sha256 = "14gyb99j85xw07wrr9lilb1jz68y6r0n0b6x4ldl7d6igs988qwb";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
runCommandNoCC "pinebookpro-firmware-2020-02-08" {
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
license = licenses.unfreeRedistributable;
|
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