2020-03-11 23:54:09 +03:00
|
|
|
{
|
|
|
|
mobile-nixos
|
2020-08-15 07:20:10 +03:00
|
|
|
, fetchFromGitHub
|
2020-03-11 23:54:09 +03:00
|
|
|
}:
|
|
|
|
|
2020-10-01 09:17:09 +03:00
|
|
|
mobile-nixos.kernel-builder {
|
2020-08-15 07:20:10 +03:00
|
|
|
version = "5.8.0";
|
2020-03-11 23:54:09 +03:00
|
|
|
configfile = ./config.aarch64;
|
2020-08-15 07:20:10 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mobile-nixos";
|
2020-03-11 23:54:09 +03:00
|
|
|
repo = "linux";
|
2020-08-15 07:20:10 +03:00
|
|
|
rev = "555692adddc0e74946e6f0a32fee1b0cd21bbbc3";
|
|
|
|
sha256 = "0njq3r1g39rh1xgrk9bgscqx9cj6nvs7y8jjcdqjkb6pbrc3kfmy";
|
2020-03-11 23:54:09 +03:00
|
|
|
};
|
|
|
|
patches = [
|
2020-07-20 02:17:49 +03:00
|
|
|
./0001-dts-pinephone-Setup-default-on-and-panic-LEDs.patch
|
2020-03-11 23:54:09 +03:00
|
|
|
];
|
2020-10-01 09:17:09 +03:00
|
|
|
|
|
|
|
# Install *only* the desired FDTs
|
|
|
|
postInstall = ''
|
|
|
|
echo ":: Installing FDTs"
|
2020-03-11 23:54:09 +03:00
|
|
|
mkdir -p "$out/dtbs/allwinner"
|
2020-07-19 06:40:20 +03:00
|
|
|
cp -v $buildRoot/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-*.dtb $out/dtbs/allwinner/
|
2020-03-11 23:54:09 +03:00
|
|
|
'';
|
2020-10-01 09:17:09 +03:00
|
|
|
}
|