mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-14 18:21:41 +03:00
pine64-pinephone-braveheart: Add firmware package
The firmware is limited to bluetooth only, nothing else (for now) requires a discrete firmware file. It looks like the touchscreen can get one, but it is not required, and seemingly no one provides one.
This commit is contained in:
parent
f68c78cacb
commit
d41b3750fd
@ -29,6 +29,9 @@
|
||||
];
|
||||
|
||||
mobile.system.type = "u-boot";
|
||||
|
||||
mobile.device.firmware = pkgs.callPackage ./firmware {};
|
||||
|
||||
mobile.quirks.u-boot.package = pkgs.callPackage ./u-boot {};
|
||||
mobile.quirks.u-boot.additionalCommands = ''
|
||||
# Yellow LED.
|
||||
|
18
devices/pine64-pinephone-braveheart/firmware/default.nix
Normal file
18
devices/pine64-pinephone-braveheart/firmware/default.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ lib
|
||||
, runCommandNoCC
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
# The minimum set of firmware files required for the device.
|
||||
runCommandNoCC "pine64-pinephone-braveheart-firmware" {
|
||||
src = fetchFromGitHub {
|
||||
owner = "anarsoul";
|
||||
repo = "rtl8723bt-firmware";
|
||||
rev = "28ad3584927c0fe1f321176f73a7fd42cccec56f";
|
||||
sha256 = "0ccdifninnqpvrqg4f4b5vgy3d5g7n6xx6qny7by9aramsd94l17";
|
||||
};
|
||||
meta.license = lib.licenses.unfreeRedistributable;
|
||||
} ''
|
||||
mkdir -p "$out/lib/firmware"
|
||||
cp -vrf "$src/rtl_bt" $out/lib/firmware/
|
||||
''
|
Loading…
Reference in New Issue
Block a user