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