59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
# see https://discourse.nixos.org/t/port-nixos-to-ppc32/11965/13
|
|
|
|
{
|
|
buildLinux,
|
|
fetchFromGitLab,
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
...
|
|
}@args:
|
|
lib.overrideDerivation
|
|
(buildLinux (
|
|
args
|
|
// {
|
|
version = "6.6.80-wiiu";
|
|
src = fetchFromGitLab {
|
|
owner = "linux-wiiu";
|
|
repo = "linux-wiiu";
|
|
rev = "ba5cdf7b6862f51f76cdd6f8a51e54be58a1de85"; # rewrite-6.6
|
|
hash = "sha256-2PnH2BkcDv8hn0t6AwG+Lxtr924TGd2b6QzIpWFuPgc=";
|
|
};
|
|
|
|
autoModules = false;
|
|
|
|
features = {
|
|
efiBootStub = false;
|
|
iwlwifi = false;
|
|
needsCifsUtils = false;
|
|
};
|
|
|
|
kernelPatches = [
|
|
{
|
|
name = "fix-mem0";
|
|
patch = ./wiiu-disable-mem0.patch;
|
|
}
|
|
];
|
|
|
|
enableCommonConfig = false;
|
|
#structuredExtraConfig = import ./stripped-config.nix {
|
|
# version = "6.6.75-wiiu";
|
|
# inherit lib stdenv ;
|
|
# rustAvailable = true;
|
|
# features = {}; # Ensure we know of all extra patches, etc.
|
|
#};
|
|
|
|
structuredExtraConfig = with lib.kernel; {
|
|
PPC_EARLY_DEBUG_DEFUSE = yes;
|
|
};
|
|
|
|
defconfig = "wiiu_defconfig";
|
|
}
|
|
))
|
|
(old: {
|
|
postInstall =
|
|
''
|
|
cp arch/powerpc/boot/dtbImage.wiiu $out/
|
|
''
|
|
+ old.postInstall;
|
|
})
|