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-12-25 23:45:44 +03:00
|
|
|
version = "5.10.0";
|
2020-03-11 23:54:09 +03:00
|
|
|
configfile = ./config.aarch64;
|
2020-08-15 07:20:10 +03:00
|
|
|
src = fetchFromGitHub {
|
2020-08-23 05:51:37 +03:00
|
|
|
# https://github.com/megous/linux
|
|
|
|
owner = "megous";
|
2020-03-11 23:54:09 +03:00
|
|
|
repo = "linux";
|
2020-12-25 23:45:44 +03:00
|
|
|
# orange-pi-5.10
|
|
|
|
rev = "cf48c321c3ebd42d33234bf5fc1b7f8b4de86c95";
|
|
|
|
sha256 = "0p6gnxc80m7l3mw89fljpysayf269b09xk88z4nyfv92z0gn6yiv";
|
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-15 05:42:23 +03:00
|
|
|
|
|
|
|
isCompressed = false;
|
2020-10-01 09:17:09 +03:00
|
|
|
}
|