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-23 05:51:37 +03:00
|
|
|
version = "5.9.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-08-23 05:51:37 +03:00
|
|
|
# orange-pi-5.9
|
|
|
|
rev = "e98db7f114d7602c6b847d76e183787f0c97cf5b";
|
|
|
|
sha256 = "007j5r0ygy7sfs7d49qx623irl8a9rl7ppl9159jj419izplrzyf";
|
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
|
|
|
}
|