1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-25 00:41:53 +03:00
mobile-nixos/devices/pine64-pinephone/kernel/default.nix

26 lines
635 B
Nix
Raw Normal View History

{
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/
'';
}