Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion asus/flow/gv302x/shared.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ let
mkEnableOption
mkIf
mkMerge
version
versionAtLeast
;

Expand Down
18 changes: 9 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -424,16 +424,16 @@
common-cpu-amd-zenpower = import ./common/cpu/amd/zenpower.nix;
common-cpu-amd-raphael-igpu = import ./common/cpu/amd/raphael/igpu.nix;
common-cpu-intel = import ./common/cpu/intel;
common-gpu-intel-comet-lake =
deprecated "992" "common-gpu-intel-comet-lake"
(import ./common/gpu/intel/comet-lake);
common-gpu-intel-comet-lake = deprecated "992" "common-gpu-intel-comet-lake" (
import ./common/gpu/intel/comet-lake
);
common-cpu-intel-cpu-only = import ./common/cpu/intel/cpu-only.nix;
common-gpu-intel-kaby-lake =
deprecated "992" "common-gpu-intel-kaby-lake"
(import ./common/gpu/intel/kaby-lake);
common-gpu-intel-sandy-bridge =
deprecated "992" "common-gpu-intel-sandy-bridge"
(import ./common/gpu/intel/sandy-bridge);
common-gpu-intel-kaby-lake = deprecated "992" "common-gpu-intel-kaby-lake" (
import ./common/gpu/intel/kaby-lake
);
common-gpu-intel-sandy-bridge = deprecated "992" "common-gpu-intel-sandy-bridge" (
import ./common/gpu/intel/sandy-bridge
);
common-gpu-amd = import ./common/gpu/amd;
common-gpu-amd-sea-islands = import ./common/gpu/amd/sea-islands;
common-gpu-amd-southern-islands = import ./common/gpu/amd/southern-islands;
Expand Down
3 changes: 3 additions & 0 deletions kobol/helios4/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ let
# A patch to get both PWM fans working
# the patch has been successfully applied to 5.15 and 5.19
{
name = "mvebu-gpio-remove-hardcoded-timer-assignment";
patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/92-mvebu-gpio-remove-hardcoded-timer-assignment.patch";
sha256 = "sha256-eQqMp0+MZd30zkl8DE89oB7czvyqCkfwF2k0EZ69jr0=";
};
}
# support for Wake-On-Lan
{
name = "mvebu-gpio-add-wake-on-gpio-support";
patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/92-mvebu-gpio-add_wake_on_gpio_support.patch";
sha256 = "sha256-OrvnVCU55P0U78jdoxGRJvl29i+Rvq8AdEGSCCpxa2I=";
};
}
{
name = "helios4-dts-add-wake-on-lan-support";
patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/94-helios4-dts-add-wake-on-lan-support.patch";
sha256 = "sha256-ai4161bTC22023eaVVWsvbk6fQKjkv0P4DQ4DA1Zgow=";
Expand Down
29 changes: 17 additions & 12 deletions mnt/reform/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,23 @@ let
hash = "sha256-XiTuH40b3VJqzwygZzU0FcvMDj41Rq6IsMbm+3+QxDY=";
};

kernelPatches =
(map (patch: { inherit patch; }) (
lib.filesystem.listFilesRecursive "${reformDebianPackages}/linux/patches${lib.versions.majorMinor modDirVersion}"
))
++ [
{
patch = callPackage ./dtsPatch.nix {
inherit reformDebianPackages;
kernelSource = src;
};
}
];
# Use postPatch to apply patches from a directory without IFD
postPatch = ''
for patch in ${reformDebianPackages}/linux/patches${lib.versions.majorMinor modDirVersion}/*/*.patch; do
echo "Applying patch: $patch"
patch -p1 < "$patch"
done
'';

kernelPatches = [
{
name = "reform-dts";
patch = callPackage ./dtsPatch.nix {
inherit reformDebianPackages;
kernelSource = src;
};
}
];

structuredExtraConfig = with lib.kernel; {
# configuration options from https://source.mnt.re/reform/reform-debian-packages/-/blob/7f31ba3a6742d60d8d502c1d86e63ef5df3916bf/linux/config
Expand Down
7 changes: 6 additions & 1 deletion pine64/star64/linux-5.15.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,24 @@ let
defconfig = "pine64_star64_defconfig";
kernelPatches = [
{
name = "keys-dh-fix";
patch = fetchpatch {
url = "https://github.com/torvalds/linux/commit/215bebc8c6ac438c382a6a56bd2764a2d4e1da72.diff";
hash = "sha256-1ZqmVOkgcDBRkHvVRPH8I5G1STIS1R/l/63PzQQ0z0I=";
includes = [ "security/keys/dh.c" ];
};
}
{
name = "starfive-vin-sensor-fix";
patch = fetchpatch {
url = "https://github.com/starfive-tech/linux/pull/108/commits/9ae8cb751c4d1fd2146b279a8e67887590e9d07a.diff";
hash = "sha256-EY0lno+HkY5mradBUPII3qqu0xh+BVQRzveCQcaht0M=";
};
}
{ patch = ./irq-desc-to-data.patch; }
{
name = "irq-desc-to-data";
patch = ./irq-desc-to-data.patch;
}
]
++ kernelPatches;

Expand Down
10 changes: 5 additions & 5 deletions purism/librem/5r4/u-boot/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
stdenv,
gcc11Stdenv,
buildUBoot,
fetchurl,
fetchFromGitLab,
Expand Down Expand Up @@ -28,7 +27,7 @@ let
meta.license = lib.licenses.unfree;
});

arm-trusted-firmware-imx8mq = gcc11Stdenv.mkDerivation (_fa: {
arm-trusted-firmware-imx8mq = stdenv.mkDerivation (_fa: {
pname = "arm-trusted-firmware-bl31";
version = "unstable-2020-07-08";
src = fetchFromGitLab {
Expand All @@ -40,6 +39,7 @@ let
};
enableParallelBuilding = true;
hardeningDisable = [ "all" ];
NIX_CFLAGS_COMPILE = "-Wno-error=array-bounds";
NIX_LDFLAGS = "--no-warn-rwx-segments";
buildFlags = [
"PLAT=imx8mq"
Expand All @@ -53,14 +53,14 @@ let
});

ubootLibrem5 = buildUBoot {
version = "unstable-2022-12-15";
version = "unstable-2025-03-25";
defconfig = "librem5_defconfig";
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
repo = "uboot-imx";
rev = "956aa590c93977992743b41c45d3c7ee5a024915"; # this is the latest commit on the upstream/librem5 branch
hash = "sha256-MsIIlarN+WFFEzc0ptLAgS7BwJ6Cosy42xo0EwPn1AU=";
rev = "72fcd4ee36e0874daac734c1195263cd9ce9d981"; # this is the latest commit on the upstream/librem5 branch
hash = "sha256-ymqZPuyyZoFTaCMQIJnuNs1fV0uVwJhyQdnGwv9m9lE=";
};
patches = [ ];
BL31 = "${arm-trusted-firmware-imx8mq}/bl31.bin";
Expand Down
18 changes: 9 additions & 9 deletions tests/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def run_eval_test(gcroot_dir: Path, jobs: int) -> list[str]:
failed_profiles = []
cmd = [
"nix-eval-jobs",
"--no-instantiate",
"--extra-experimental-features", "flakes",
"--option", "eval-cache", "false",
"--gc-roots-dir",
Expand Down