53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
# see https://discourse.nixos.org/t/port-nixos-to-ppc32/11965/13
|
|
|
|
{
|
|
buildLinux,
|
|
fetchFromGitHub,
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
...
|
|
}@args:
|
|
lib.overrideDerivation
|
|
(buildLinux (
|
|
args
|
|
// {
|
|
version = "6.13.0-rc4";
|
|
src = fetchFromGitHub {
|
|
owner = "neuschaefer";
|
|
repo = "linux";
|
|
rev = "sha256-Mbbw+P8Fv1OL+sN4nZ/lc/ONibkEOivLx5QVXjVO7KU="; # mpc83xx branch
|
|
hash = "sha256-Mbbw+P8Fv1OL+sN4nZ/lc/ONibkEOivLx5QVXjVO7KU=";
|
|
};
|
|
|
|
kernelPatches = [ ];
|
|
|
|
features = {
|
|
efiBootStub = false;
|
|
iwlwifi = false;
|
|
needsCifsUtils = false;
|
|
};
|
|
|
|
autoModules = false;
|
|
|
|
# enable nvme, disable kprobes because it takes too long at boot
|
|
structuredExtraConfig = with lib.kernel; {
|
|
BLK_DEV_NVME = yes;
|
|
KPROBES = lib.mkForce no;
|
|
FTRACE = lib.mkForce no;
|
|
RC_CORE = lib.mkForce no;
|
|
KEYRING = lib.mkForce no;
|
|
|
|
DEFAULT_UIMAGE = yes;
|
|
};
|
|
defconfig = "mpc83xx_defconfig";
|
|
}
|
|
))
|
|
(old: {
|
|
postInstall =
|
|
''
|
|
cp arch/powerpc/boot/uImage $out/
|
|
# lancom-nwapp2.dts ?
|
|
''
|
|
+ old.postInstall;
|
|
})
|