linux-postmarketos-allwinner: update; add option to build w/o pmos patches (just the megi kernel + pmos defconfig)
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
kernelPatches ? null,
|
||||
randstructSeed ? "",
|
||||
withModemPower ? false,
|
||||
withPmosPatches ? true,
|
||||
}:
|
||||
|
||||
# to update:
|
||||
@@ -26,8 +27,8 @@ let
|
||||
pmaports = fetchFromGitLab {
|
||||
owner = "postmarketOS";
|
||||
repo = "pmaports";
|
||||
rev = "43d3b604c44881f78203353a40e2df62b5490abe";
|
||||
hash = "sha256-6odymUb3Xxu851YWwLpQyDWFbBlx+Eb2pUh/cUVuSWI=";
|
||||
rev = "3c55399f10808efec83a265d3d11fcd30eeff070"; #< 2024-08-30: device/*: enable new options for community kconfig check (MR 5544)
|
||||
hash = "sha256-fbTyDjxBe4K3UMc5ofIriuMdRQyyHcEwMHE9aEAOzQM=";
|
||||
};
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
@@ -79,14 +80,14 @@ in (linuxManualConfig {
|
||||
config = sane-kernel-tools.parseDefconfig defconfigStr;
|
||||
|
||||
# these likely aren't *all* required for pinephone: pmOS kernel is shared by many devices
|
||||
kernelPatches = [
|
||||
kernelPatches = lib.optionals withPmosPatches [
|
||||
(pmPatch "0001-dts-add-dontbeevil-pinephone-devkit")
|
||||
(pmPatch "0002-dts-add-pinetab-dev-old-display-panel")
|
||||
(pmPatch "0003-dts-pinetab-add-missing-ohci1")
|
||||
(pmPatch "0004-dts-pinetab-make-audio-routing-consistent-with-pinep")
|
||||
] ++ lib.optionals (!withModemPower) [
|
||||
] ++ lib.optionals (withPmosPatches && !withModemPower) [
|
||||
(pmPatch "0005-dts-pinephone-drop-modem-power-node")
|
||||
] ++ [
|
||||
] ++ lib.optionals withPmosPatches [
|
||||
(pmPatch "0006-drm-panel-simple-Add-Hannstar-TQTM070CB501")
|
||||
(pmPatch "0007-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet")
|
||||
(pmPatch "0008-drm-panel-simple-Add-Hannstar-HSD070IDW1-A")
|
||||
@@ -94,6 +95,7 @@ in (linuxManualConfig {
|
||||
(pmPatch "0010-eMMC-workaround")
|
||||
(pmPatch "0011-arm64-dts-allwinner-orangepi-3-fix-ethernet")
|
||||
(pmPatch "0012-ARM-dts-allwinner-sun5i-a13-pocketbook-614-plus-Add-")
|
||||
] ++ [
|
||||
{
|
||||
name = "pinephone-1.2b-add-af8133j-magnetometer";
|
||||
patch = linux-megous.passthruPatches.af8133j;
|
||||
|
Reference in New Issue
Block a user