1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/devices/pine64-pinephone/kernel/default.nix
Johnny Kirchman a047bdda03
pinephone-braveheart: Generalize Pinephone devices
* Remove braveheart specific naming
2020-10-06 21:27:01 -04:00

26 lines
635 B
Nix

{
mobile-nixos
, fetchFromGitHub
}:
mobile-nixos.kernel-builder {
version = "5.8.0";
configfile = ./config.aarch64;
src = fetchFromGitHub {
owner = "mobile-nixos";
repo = "linux";
rev = "555692adddc0e74946e6f0a32fee1b0cd21bbbc3";
sha256 = "0njq3r1g39rh1xgrk9bgscqx9cj6nvs7y8jjcdqjkb6pbrc3kfmy";
};
patches = [
./0001-dts-pinephone-Setup-default-on-and-panic-LEDs.patch
];
# Install *only* the desired FDTs
postInstall = ''
echo ":: Installing FDTs"
mkdir -p "$out/dtbs/allwinner"
cp -v $buildRoot/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-*.dtb $out/dtbs/allwinner/
'';
}