summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Brun <lorenz@brun.one>2023-11-25 15:00:49 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-12-02 02:29:04 +0000
commit5d2504d224c3e9053cb74ded47a61b210b80aa6e (patch)
tree3330b9f00498d3fa8c75d1443d60478d4eff859f
parentMerge pull request #271128 from NixOS/backport-271055-to-release-23.11 (diff)
downloadnixpkgs-origin/backport-269898-to-release-23.11.tar.gz
kernel: enable support for MT798Xorigin/backport-269898-to-release-23.11
This adds two kernel config settings, one to make MediaTek network modules visible (so the modules get built) and one to support the SoC-integrated MT7915E variant in the module. This gets the MT798X series of SoCs working with a stock NixOS kernel. (cherry picked from commit 4915a2e7821a29dd68dcdfe8de4ab16653acd69b)
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 2954ee8f78b9..4b38ffc5069c 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -275,6 +275,12 @@ let
INFINIBAND = module;
INFINIBAND_IPOIB = module;
INFINIBAND_IPOIB_CM = yes;
+ } // optionalAttrs (stdenv.hostPlatform.system == "aarch64-linux") {
+ # Not enabled by default, hides modules behind it
+ NET_VENDOR_MEDIATEK = yes;
+ # Enable SoC interface for MT7915 module, required for MT798X.
+ MT7986_WMAC = whenBetween "5.18" "6.6" yes;
+ MT798X_WMAC = whenAtLeast "6.6" yes;
};
wireless = {