mio-ops/hardware/odroid-hc4/overlays/kernel/overlay.nix

17 lines
580 B
Nix
Raw Normal View History

2021-10-20 06:22:09 +00:00
final: prev: {
linux_hardkernel = final.callPackage ./kernel.nix {
kernelPatches = [
# The kernel fails to cross-compile due to:
# 1. warnings caused by different interpretation of function pointers
# 2. NR_CPUS causing stack overflows when allocating cpu_topology
# 3. The IRBLASTER module not registering syscalls correctly
# The following patch makes the above warnings non-errors, decreases NR_CPUS to 4 and disables the IRBLASTER module.
2021-11-16 04:57:23 +00:00
({
name = "hardkernel-patches";
patch = ./kernel.diff;
})
2021-10-20 06:22:09 +00:00
];
};
}