2023-08-15 23:36:16 +02:00
|
|
|
{ lib
|
|
|
|
, buildLinux
|
|
|
|
, fetchFromGitLab
|
|
|
|
, ...
|
|
|
|
} @ args:
|
|
|
|
buildLinux (args
|
|
|
|
// rec {
|
|
|
|
defconfig = "librem5_defconfig";
|
2024-06-05 23:13:35 +02:00
|
|
|
version = "6.6.29-librem5";
|
2023-08-15 23:36:16 +02:00
|
|
|
modDirVersion = version;
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "source.puri.sm";
|
|
|
|
owner = "Librem5";
|
|
|
|
repo = "linux";
|
2024-06-05 23:13:35 +02:00
|
|
|
rev = "pureos/6.6.29pureos1";
|
|
|
|
hash = "sha256-i8HSAJ1/Z2Ux2s3Srse+L0S1Zd/70ldpGBhIgEZ6nBw=";
|
2023-08-15 23:36:16 +02:00
|
|
|
};
|
|
|
|
kernelPatches = [ ];
|
|
|
|
structuredExtraConfig = with lib.kernel; {
|
|
|
|
# buildLinux overrides this and defaults to 32, so go back to the value defined librem5_defconfig
|
|
|
|
# this is required for millipixels to take photos, otherwise the VIDIOC_REQ_BUFS ioctl returns ENOMEM
|
|
|
|
CMA_SIZE_MBYTES = lib.mkForce (freeform "320");
|
|
|
|
};
|
|
|
|
}
|
|
|
|
// args.argsOverride or { })
|