linux-postmarketos: add an option for building *with* modem power feature
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
, features ? null
|
, features ? null
|
||||||
, kernelPatches ? null
|
, kernelPatches ? null
|
||||||
, randstructSeed ? ""
|
, randstructSeed ? ""
|
||||||
|
, withModemPower ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# keep in sync with linux-megous
|
# keep in sync with linux-megous
|
||||||
@@ -67,6 +68,8 @@ let
|
|||||||
#
|
#
|
||||||
CONFIG_SECURITY_LANDLOCK=y
|
CONFIG_SECURITY_LANDLOCK=y
|
||||||
CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,bpf";
|
CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,bpf";
|
||||||
|
'' + lib.optionalString withModemPower ''
|
||||||
|
CONFIG_MODEM_POWER=y
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in linuxManualConfig {
|
in linuxManualConfig {
|
||||||
@@ -82,6 +85,7 @@ in linuxManualConfig {
|
|||||||
# this forces me to include the Kconfig inline, instead of fetching it the way i do all the other pmOS kernel stuff.
|
# this forces me to include the Kconfig inline, instead of fetching it the way i do all the other pmOS kernel stuff.
|
||||||
config = parseKconfig KconfigStr;
|
config = parseKconfig KconfigStr;
|
||||||
|
|
||||||
|
# these likely aren't *all* required for pinephone: pmOS kernel is shared by many devices
|
||||||
kernelPatches = [
|
kernelPatches = [
|
||||||
(pmPatch {
|
(pmPatch {
|
||||||
name = "0001-dts-add-dontbeevil-pinephone-devkit";
|
name = "0001-dts-add-dontbeevil-pinephone-devkit";
|
||||||
@@ -99,10 +103,12 @@ in linuxManualConfig {
|
|||||||
name = "0004-dts-pinetab-make-audio-routing-consistent-with-pinep";
|
name = "0004-dts-pinetab-make-audio-routing-consistent-with-pinep";
|
||||||
hash = "sha256-0R69silFsQkkgNIcSo4iKjhFzXTGQLma6fZSwAwSj3s=";
|
hash = "sha256-0R69silFsQkkgNIcSo4iKjhFzXTGQLma6fZSwAwSj3s=";
|
||||||
})
|
})
|
||||||
|
] ++ lib.optionals (!withModemPower) [
|
||||||
(pmPatch {
|
(pmPatch {
|
||||||
name = "0005-dts-pinephone-drop-modem-power-node";
|
name = "0005-dts-pinephone-drop-modem-power-node";
|
||||||
hash = "sha256-59PdMo3hTfSh12pTIG/VzTSrsDQdK18nh+oCtnxvo50=";
|
hash = "sha256-59PdMo3hTfSh12pTIG/VzTSrsDQdK18nh+oCtnxvo50=";
|
||||||
})
|
})
|
||||||
|
] ++ [
|
||||||
(pmPatch {
|
(pmPatch {
|
||||||
name = "0006-drm-panel-simple-Add-Hannstar-TQTM070CB501";
|
name = "0006-drm-panel-simple-Add-Hannstar-TQTM070CB501";
|
||||||
hash = "sha256-KysfuhXwpSBUgdD2xd1IqbFdNz0GiGtFbP1xD5BeBPI=";
|
hash = "sha256-KysfuhXwpSBUgdD2xd1IqbFdNz0GiGtFbP1xD5BeBPI=";
|
||||||
|
Reference in New Issue
Block a user