initial snapshot
This commit is contained in:
commit
24b41c4faf
16 changed files with 452 additions and 0 deletions
53
lancom-kernel.nix
Normal file
53
lancom-kernel.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
# 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;
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue