use Linux kernel sources associated with openwrt by default

This commit is contained in:
Arnout Engelen
2024-12-17 20:24:14 +01:00
committed by Daniel Barlow
parent f3fadd5cd7
commit a89f866bf0
9 changed files with 14 additions and 40 deletions

View File

@@ -29,6 +29,17 @@ let
'';
in {
inherit src;
# The kernel sources typically used with this version of openwrt
# You can find this in `include/kernel-5.15` or similar in the
# openwrt sources
kernelSrc = pkgsBuildBuild.fetchurl {
name = "linux.tar.gz";
url = "https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.137.tar.gz";
hash = "sha256-PkdzUKZ0IpBiWe/RS70J76JKnBFzRblWcKlaIFNxnHQ=";
};
kernelVersion = "5.15.137";
applyPatches.ath79 = doPatch "ath79";
applyPatches.ramips = doPatch "ramips";
applyPatches.mediatek = doPatch "mediatek"; # aarch64