2024-01-22 18:47:25 +01:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
sources = import ../npins;
|
|
|
|
|
|
|
|
linux_x13s_pkg =
|
2024-02-20 14:43:19 +01:00
|
|
|
{ version, buildLinux, ... }@args:
|
2024-01-22 18:47:25 +01:00
|
|
|
buildLinux (
|
|
|
|
args
|
|
|
|
// {
|
2024-02-20 14:43:19 +01:00
|
|
|
modDirVersion = version;
|
2024-01-22 18:47:25 +01:00
|
|
|
|
2024-02-20 14:43:19 +01:00
|
|
|
kernelPatches = (args.kernelPatches or [ ]) ++ [ ];
|
2024-01-22 18:47:25 +01:00
|
|
|
extraMeta.branch = lib.versions.majorMinor version;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
in
|
|
|
|
rec {
|
2024-03-11 18:08:19 +01:00
|
|
|
linux_jhovold = linux_jhovold_6_8;
|
|
|
|
|
|
|
|
linux_jhovold_6_8 = pkgs.callPackage linux_x13s_pkg {
|
2024-02-20 14:43:19 +01:00
|
|
|
src = sources.linux-jhovold;
|
2024-03-11 18:08:19 +01:00
|
|
|
version = "6.8.0";
|
2024-02-20 14:43:19 +01:00
|
|
|
defconfig = "johan_defconfig";
|
|
|
|
};
|
|
|
|
|
2024-02-25 11:30:25 +01:00
|
|
|
linux_jhovold_6_7 = pkgs.callPackage linux_x13s_pkg {
|
|
|
|
src = sources.linux-jhovold-6_7;
|
|
|
|
version = "6.7.0";
|
|
|
|
defconfig = "johan_defconfig";
|
|
|
|
};
|
|
|
|
|
2024-02-20 14:43:19 +01:00
|
|
|
linux_steev = pkgs.callPackage linux_x13s_pkg {
|
|
|
|
src = sources.linux-steev;
|
2024-03-05 16:16:28 +01:00
|
|
|
version = "6.7.7";
|
2024-02-20 14:43:19 +01:00
|
|
|
defconfig = "laptop_defconfig";
|
2024-02-20 16:25:09 +01:00
|
|
|
|
|
|
|
# fix build using extra config from
|
|
|
|
# https://github.com/boletus-edulis/hydra-test/blob/fffbd42c511e7384be76dc88ea246bc7064d7b49/pkgs/linux_x13s.nix
|
|
|
|
structuredExtraConfig = with lib.kernel; {
|
|
|
|
VIDEO_AR1337 = no;
|
|
|
|
AUDIT = yes;
|
|
|
|
ARM64_SME = yes;
|
|
|
|
MAC80211_LEDS = yes;
|
|
|
|
FW_LOADER_USER_HELPER = yes;
|
|
|
|
QCOM_EBI2 = yes;
|
|
|
|
EFI_CAPSULE_LOADER = yes;
|
|
|
|
SRAM = yes;
|
|
|
|
KEYBOARD_GPIO = yes;
|
|
|
|
SERIAL_QCOM_GENI = yes;
|
|
|
|
PINCTRL_QCOM_SPMI_PMIC = yes;
|
|
|
|
PINCTRL_SC8280XP_LPASS_LPI = module;
|
|
|
|
QCOM_TSENS = yes;
|
|
|
|
BACKLIGHT_CLASS_DEVICE = yes;
|
|
|
|
VIRTIO_MENU = yes;
|
|
|
|
VHOST_MENU = yes;
|
|
|
|
SC_GCC_8280XP = yes;
|
|
|
|
SC_GPUCC_8280XP = yes;
|
|
|
|
QCOM_Q6V5_ADSP = module;
|
|
|
|
QCOM_STATS = yes;
|
|
|
|
QCOM_CPR = yes;
|
|
|
|
QCOM_RPMHPD = yes;
|
|
|
|
QCOM_RPMPD = yes;
|
|
|
|
PHY_QCOM_QMP_PCIE_8996 = yes;
|
|
|
|
NVMEM_QCOM_QFPROM = yes;
|
|
|
|
CRYPTO_AES_ARM64_CE_BLK = yes;
|
|
|
|
CRYPTO_AES_ARM64_BS = yes;
|
|
|
|
CRYPTO_AES_ARM64_CE_CCM = yes;
|
|
|
|
CONFIG_CRYPTO_DEV_CCREE = module;
|
|
|
|
};
|
2024-02-20 14:43:19 +01:00
|
|
|
};
|
|
|
|
|
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 { };
|
|
|
|
}
|