linux-megous: build WITHOUT modem_power module, for better eg25-manager compatibility
This commit is contained in:
parent
db99043753
commit
7b70b5ec86
|
@ -1,5 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildLinux
|
, buildLinux
|
||||||
|
, fetchpatch
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkgs
|
, pkgs
|
||||||
# something inside nixpkgs calls `override` on the kernel and passes in extra arguments
|
# something inside nixpkgs calls `override` on the kernel and passes in extra arguments
|
||||||
|
@ -40,6 +41,9 @@ let
|
||||||
SCHED_DEBUG = lib.mkForce no; # determines /sys/kernel/debug/sched
|
SCHED_DEBUG = lib.mkForce no; # determines /sys/kernel/debug/sched
|
||||||
# SUNRPC_DEBUG = lib.mkForce no; # i use NFS though
|
# SUNRPC_DEBUG = lib.mkForce no; # i use NFS though
|
||||||
|
|
||||||
|
# modem_power is incompatible with eg25-manager: <https://gitlab.com/mobian1/eg25-manager/-/issues/38>
|
||||||
|
MODEM_POWER = no;
|
||||||
|
|
||||||
# taken from mobile-nixos config?? or upstream megous config??
|
# taken from mobile-nixos config?? or upstream megous config??
|
||||||
RTL8723CS = module;
|
RTL8723CS = module;
|
||||||
BT_HCIUART_3WIRE = yes;
|
BT_HCIUART_3WIRE = yes;
|
||||||
|
@ -107,6 +111,15 @@ let
|
||||||
pkgs.kernelPatches.bridge_stp_helper
|
pkgs.kernelPatches.bridge_stp_helper
|
||||||
pkgs.kernelPatches.request_key_helper
|
pkgs.kernelPatches.request_key_helper
|
||||||
# (patchDefconfig kernelConfig)
|
# (patchDefconfig kernelConfig)
|
||||||
|
{
|
||||||
|
# Drop modem-power from DT to allow eg25-manager to have full control.
|
||||||
|
# source: <https://github.com/NixOS/mobile-nixos/pull/573>
|
||||||
|
name = "remove-modem-power-from-devicetree";
|
||||||
|
patch = fetchpatch {
|
||||||
|
url = "https://gitlab.com/postmarketOS/pmaports/-/raw/164e9f010dcf56642d8e6f422a994b927ae23f38/device/main/linux-postmarketos-allwinner/0007-dts-pinephone-drop-modem-power-node.patch";
|
||||||
|
sha256 = "nYCoaYj8CuxbgXfy5q43Xb/ebe5DlJ1Px571y1/+lfQ=";
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user