2024-01-22 18:47:25 +01:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
sources = import ../npins;
|
|
|
|
|
|
|
|
linux_x13s_pkg =
|
|
|
|
{ buildLinux, ... }@args:
|
|
|
|
let
|
2024-02-19 17:43:18 +01:00
|
|
|
version = "6.8.0-rc5";
|
2024-01-22 18:47:25 +01:00
|
|
|
modDirVersion = "${version}";
|
|
|
|
in
|
|
|
|
buildLinux (
|
|
|
|
args
|
|
|
|
// {
|
|
|
|
inherit version modDirVersion;
|
|
|
|
|
2024-01-26 16:21:16 +01:00
|
|
|
src = sources.linux;
|
2024-01-22 18:47:25 +01:00
|
|
|
|
2024-02-07 15:39:52 +01:00
|
|
|
kernelPatches = (args.kernelPatches or [ ]) ++ [
|
|
|
|
{
|
|
|
|
# fix resets when reading EFI vars
|
|
|
|
name = "qcom-shm-bridge-tz";
|
|
|
|
patch = (
|
|
|
|
pkgs.fetchurl {
|
|
|
|
url = "https://lore.kernel.org/lkml/20240205182810.58382-1-brgl@bgdev.pl/t.mbox.gz";
|
2024-02-19 17:43:18 +01:00
|
|
|
hash = "sha256-kplvgUGE70eVivaN59Ozj7/utgnPEkVUjC8nemyM4vU=";
|
2024-02-07 15:39:52 +01:00
|
|
|
}
|
|
|
|
);
|
|
|
|
extraStructuredConfig = {
|
|
|
|
QCOM_TZMEM_MODE_SHMBRIDGE = lib.kernel.yes;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2024-01-22 18:47:25 +01:00
|
|
|
extraMeta.branch = lib.versions.majorMinor version;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
"x13s/linux" = pkgs.callPackage linux_x13s_pkg { defconfig = "johan_defconfig"; };
|
|
|
|
"x13s/alsa-ucm-conf" = pkgs.alsa-ucm-conf.overrideAttrs (
|
2024-02-07 22:28:42 +01:00
|
|
|
_: {
|
|
|
|
version = sources.alsa-ucm-conf.version;
|
2024-01-22 18:47:25 +01:00
|
|
|
src = sources.alsa-ucm-conf;
|
2024-02-07 22:28:42 +01:00
|
|
|
patches = [ ];
|
2024-01-22 18:47:25 +01:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
pd-mapper = pkgs.callPackage ./pd-mapper { inherit qrtr; };
|
|
|
|
qrtr = pkgs.callPackage ./qrtr { };
|
|
|
|
|
|
|
|
"x13s/extra-firmware" = pkgs.callPackage ./extra-firmware.nix { };
|
|
|
|
}
|